Registry / observability / otel
library1.44.0gogounverified

Package otel provides global access to the OpenTelemetry API.

go get go.opentelemetry.io/otel
INSTALL
IMPORT
SIG · OTEL
O
otel
observabilitygov1.44.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

otel
go.opentelemetry.io/otel

Create a trace span

package main import ( "context" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" ) func main() { tracer := otel.Tracer("example") ctx, span := tracer.Start(context.Background(), "operation") span.SetAttributes(attribute.String("key", "value")) span.End() _ = ctx }
Debug
Known issues
breakingMajor API changes between v0.x and v1.x
fix
Use v1.x stable API; check migration guides for breaking changes
affects: >=1.0.0
Upgrade
Version history
1.44.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Resources
otel — go get otel · libregistry