package sdk
Import Path
go.opentelemetry.io/auto/sdk (on go.dev)
Dependency Relation
imports 19 packages, and imported by one package
Involved Source Files
Package sdk provides an auto-instrumentable OpenTelemetry SDK.
An [go.opentelemetry.io/auto.Instrumentation] can be configured to target the
process running this SDK. In that case, all telemetry the SDK produces will be
processed and handled by that [go.opentelemetry.io/auto.Instrumentation].
By default, if there is no [go.opentelemetry.io/auto.Instrumentation] set to
auto-instrument the SDK, the SDK will not generate any telemetry.
limit.go
span.go
tracer.go
tracer_provider.go
Code Examples
{
tracer := TracerProvider().Tracer("my.pkg/name")
_, span := tracer.Start(context.Background(), "do.work")
defer span.End()
}
Package-Level Functions (only one)
TracerProvider returns an auto-instrumentable [trace.TracerProvider].
If an [go.opentelemetry.io/auto.Instrumentation] is configured to instrument
the process using the returned TracerProvider, all of the telemetry it
produces will be processed and handled by that Instrumentation. By default,
if no Instrumentation instruments the TracerProvider it will not generate
any trace telemetry.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |