Skip to content

Commit

Permalink
Merge branch 'main' into go-inst-semconv-v1.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored Jul 12, 2024
2 parents bfcf044 + 7fd0d2a commit e639100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions content/en/docs/languages/go/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Expand Down Expand Up @@ -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)
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 e639100

Please sign in to comment.