diff --git a/_examples/instrumentation/apmelasticsearch.go b/_examples/instrumentation/apmelasticsearch.go index 85fe1b171d..56d2867fef 100644 --- a/_examples/instrumentation/apmelasticsearch.go +++ b/_examples/instrumentation/apmelasticsearch.go @@ -80,7 +80,7 @@ func main() { // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< }) if err != nil { - log.Fatal("ERROR: %s", err) + log.Fatalf("ERROR: %s", err) } // Set up the "done" channel diff --git a/_examples/instrumentation/expvar.go b/_examples/instrumentation/expvar.go index 42f4fdc60b..b39662fc39 100644 --- a/_examples/instrumentation/expvar.go +++ b/_examples/instrumentation/expvar.go @@ -101,7 +101,7 @@ func main() { // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< }) if err != nil { - log.Fatal("ERROR: %s", err) + log.Fatalf("ERROR: %s", err) } // Publish client metrics to expvar >>>>>>>>>>>>>>>>> diff --git a/_examples/instrumentation/opencensus.go b/_examples/instrumentation/opencensus.go index eb16a1247e..bddad490cc 100644 --- a/_examples/instrumentation/opencensus.go +++ b/_examples/instrumentation/opencensus.go @@ -139,7 +139,7 @@ func main() { // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< }) if err != nil { - log.Fatal("ERROR: %s", err) + log.Fatalf("ERROR: %s", err) } // Set up the "done" channel @@ -171,7 +171,7 @@ func main() { ochttp.ClientRoundtripLatencyDistribution, ochttp.ClientCompletedCount, ); err != nil { - log.Fatal("ERROR: %s", err) + log.Fatalf("ERROR: %s", err) } // Report views to STDOUT once in a while