Class TracerProvider

Inheritance Relationships

Derived Types

Class Documentation

class TracerProvider

Creates new Tracer instances.

Subclassed by opentelemetry::sdk::trace::TracerProvider, opentelemetry::trace::NoopTracerProvider

Public Functions

virtual ~TracerProvider() = default
virtual nostd::shared_ptr<Tracer> GetTracer(nostd::string_view name, nostd::string_view version = "", nostd::string_view schema_url = "") noexcept = 0

Gets or creates a named tracer instance.

Optionally a version can be passed to create a named and versioned tracer instance.