Skip to content

Commit

Permalink
Update Go example Tracer/Meter names (#4831)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
MrAlias and cartermp authored Jul 12, 2024
1 parent ba7f029 commit 7fd0d2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/languages/go/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,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)
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/languages/go/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7fd0d2a

Please sign in to comment.