Class TracerProvider
- Namespace
- OpenTelemetry.Trace
- Assembly
- OpenTelemetry.Api.dll
TracerProvider is the entry point of the OpenTelemetry API. It provides access to Tracer.
public class TracerProvider : BaseProvider, IDisposable
- Inheritance
-
TracerProvider
- Implements
- Inherited Members
Constructors
TracerProvider()
Initializes a new instance of the TracerProvider class.
protected TracerProvider()
Properties
Default
Gets the default TracerProvider.
public static TracerProvider Default { get; }
Property Value
Methods
GetTracer(string, string)
Gets a tracer with given name and version.
public Tracer GetTracer(string name, string version = null)
Parameters
name
stringName identifying the instrumentation library.
version
stringVersion of the instrumentation library.
Returns
- Tracer
Tracer instance.