If using the OpenTelemetry SDK, you may want to instantiate the OpenTelemetry to
provide configuration, for example of Resource or Sampler. See OpenTelemetrySdk and OpenTelemetrySdk.builder for information on how to construct the
SDK OpenTelemetry.
TracerProvider, ContextPropagators
| Modifier and Type | Method and Description |
|---|---|
| public default LoggerProvider | |
| public default Meter | Returns: a Meter instance.A name uniquely identifying the instrumentation scope, such as
the instrumentation library, package, or fully qualified class name. Must not be null. instrumentationScopeName)Gets or creates a named meter instance from the |
| public default MeterProvider | |
| public ContextPropagators | |
| public default Tracer | Returns: a tracer instance.A name uniquely identifying the instrumentation scope, such as
the instrumentation library, package, or fully qualified class name. Must not be null. instrumentationScopeName)Gets or creates a named tracer instance from the |
| public default Tracer | Returns: a tracer instance.A name uniquely identifying the instrumentation scope, such as
the instrumentation library, package, or fully qualified class name. Must not be null. instrumentationScopeName, String The version of the instrumentation scope (e.g., "1.0.0"). instrumentationScopeVersion)Gets or creates a named and versioned tracer instance from the |
| public TracerProvider | |
| public default MeterBuilder | Returns: a MeterBuilder instance.A name uniquely identifying the instrumentation scope, such as
the instrumentation library, package, or fully qualified class name. Must not be null. instrumentationScopeName)Creates a |
| public static OpenTelemetry | |
| public static OpenTelemetry | propagating(ContextPropagators propagators)
Returns an |
| public default TracerBuilder | Returns: a TracerBuilder instance.A name uniquely identifying the instrumentation scope, such as
the instrumentation library, package, or fully qualified class name. Must not be null. instrumentationScopeName)Creates a |
| getLogsBridge | back to summary |
|---|---|
| public default LoggerProvider getLogsBridge() Returns the The OpenTelemetry logs bridge API exists to enable bridging logs from other log frameworks (e.g. SLF4J, Log4j, JUL, Logback, etc) into OpenTelemetry and is NOT a replacement log API.
| |
| getMeter | back to summary |
|---|---|
| public default Meter getMeter(String instrumentationScopeName) Gets or creates a named meter instance from the | |
| getMeterProvider | back to summary |
|---|---|
| public default MeterProvider getMeterProvider() Returns the
| |
| getPropagators | back to summary |
|---|---|
| public ContextPropagators getPropagators() Returns the | |
| getTracer | back to summary |
|---|---|
| public default Tracer getTracer(String instrumentationScopeName) Gets or creates a named tracer instance from the | |
| getTracer | back to summary |
|---|---|
| public default Tracer getTracer(String instrumentationScopeName, String instrumentationScopeVersion) Gets or creates a named and versioned tracer instance from the
| |
| getTracerProvider | back to summary |
|---|---|
| public TracerProvider getTracerProvider() Returns the | |
| meterBuilder | back to summary |
|---|---|
| public default MeterBuilder meterBuilder(String instrumentationScopeName) Creates a
| |
| noop | back to summary |
|---|---|
| public static OpenTelemetry noop() Returns a completely no-op | |
| propagating | back to summary |
|---|---|
| public static OpenTelemetry propagating(ContextPropagators propagators) Returns an | |
| tracerBuilder | back to summary |
|---|---|
| public default TracerBuilder tracerBuilder(String instrumentationScopeName) Creates a
| |