diff --git a/content/en/docs/languages/go/getting-started.md b/content/en/docs/languages/go/getting-started.md index 0488b961bd52..0294d82c718e 100644 --- a/content/en/docs/languages/go/getting-started.md +++ b/content/en/docs/languages/go/getting-started.md @@ -117,7 +117,6 @@ go get "go.opentelemetry.io/otel" \ "go.opentelemetry.io/otel/sdk/metric" \ "go.opentelemetry.io/otel/sdk/resource" \ "go.opentelemetry.io/otel/sdk/trace" \ - "go.opentelemetry.io/otel/semconv/v1.24.0" \ "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"\ "go.opentelemetry.io/contrib/bridges/otelslog" ``` @@ -391,7 +390,7 @@ import ( "go.opentelemetry.io/otel/metric" ) -const name = "rolldice" +const name = "go.opentelemetry.io/otel/example/dice" var ( tracer = otel.Tracer(name) diff --git a/content/en/docs/languages/go/instrumentation.md b/content/en/docs/languages/go/instrumentation.md index 98c871e0b7c5..634e83b6fd66 100644 --- a/content/en/docs/languages/go/instrumentation.md +++ b/content/en/docs/languages/go/instrumentation.md @@ -86,7 +86,7 @@ func main() { otel.SetTracerProvider(tp) // Finally, set the tracer that can be used for this package. - tracer = tp.Tracer("ExampleService") + tracer = tp.Tracer("example.io/package/name") } ``` @@ -432,7 +432,7 @@ acquire a meter. For example: ```go import "go.opentelemetry.io/otel" -var meter = otel.Meter("my-service-meter") +var meter = otel.Meter("example.io/package/name") ``` ### Synchronous and asynchronous instruments