Source File
tracer_provider.go
Belonging Package
go.opentelemetry.io/auto/sdk
// Copyright The OpenTelemetry Authors// SPDX-License-Identifier: Apache-2.0package sdkimport ()// 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.func () trace.TracerProvider { return tracerProviderInstance }var tracerProviderInstance = new(tracerProvider)type tracerProvider struct{ noop.TracerProvider }var _ trace.TracerProvider = tracerProvider{}func ( tracerProvider) ( string, ...trace.TracerOption) trace.Tracer {:= trace.NewTracerConfig(...)return tracer{name: ,version: .InstrumentationVersion(),schemaURL: .SchemaURL(),}}
![]() |
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. |