Skip to main content

GetTracerProvider

Returns the tracer provider for the given service name.

def GetTracerProvider(
serviceName: string
) - > rawtrace.TracerProvider

Returns the tracer provider for the given service name. Callers use this to obtain the appropriate tracer provider for a specific service, ensuring that tracing operations are correctly routed.

Parameters

NameTypeDescription
serviceNamestringThe name of the service for which to retrieve the tracer provider.

Returns

TypeDescription
rawtrace.TracerProviderThe tracer provider associated with the service name, or a no-op tracer provider if no specific provider is found for the service.