Table of Contents

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

TracerProvider

Methods

GetTracer(string, string)

Gets a tracer with given name and version.

public Tracer GetTracer(string name, string version = null)

Parameters

name string

Name identifying the instrumentation library.

version string

Version of the instrumentation library.

Returns

Tracer

Tracer instance.