| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private OpenTelemetry | |
| private static boolean | |
| private WeakHashMap | |
| private Tracer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLinkTarget(TelemetrySpan
the span)TelemetrySpan to be registered as a link target for subsequent new spansOverrides default com. Registers the specified |
| public static boolean | |
| public void | propagateContext(BiConsumer<String, String>
the consumer that will process the telemetry context propagation information traceparentConsumer)Overrides default com. Injects telemetry context propagation information into the specified consumer. |
| public void | removeLinkTarget(TelemetrySpan
the span)TelemetrySpan to be removed from the list of registered link targetsOverrides default com. Removes the specified span from the list of registered link targets. |
| public TelemetrySpan | startSpan(TelemetrySpanName
the span name that identifies this telemetry span spanName, Object... arguments used for interpolating the specified span name via args)String#format(String, Object.Implements com. Start a telemetry span. |
| linkTargets | back to summary |
|---|---|
| private List<Span> linkTargets | |
| openTelemetry | back to summary |
|---|---|
| private OpenTelemetry openTelemetry | |
| otelApiAvaliable | back to summary |
|---|---|
| private static boolean otelApiAvaliable | |
| spans | back to summary |
|---|---|
| private WeakHashMap<TelemetrySpan, Span> spans | |
| tracer | back to summary |
|---|---|
| private Tracer tracer | |
| OpenTelemetryHandler | back to summary |
|---|---|
| public OpenTelemetryHandler() | |
| addLinkTarget | back to summary |
|---|---|
| public void addLinkTarget(TelemetrySpan span) Overrides default com. Doc from com. Registers the specified
| |
| isOpenTelemetryApiAvailable | back to summary |
|---|---|
| public static boolean isOpenTelemetryApiAvailable() | |
| propagateContext | back to summary |
|---|---|
| public void propagateContext(BiConsumer<String, String> traceparentConsumer) Overrides default com. Doc from com. Injects telemetry context propagation information into the specified consumer.
| |
| removeLinkTarget | back to summary |
|---|---|
| public void removeLinkTarget(TelemetrySpan span) Overrides default com. Doc from com. Removes the specified span from the list of registered link targets.
| |
| startSpan | back to summary |
|---|---|
| public TelemetrySpan startSpan(TelemetrySpanName spanName, Object... args) Implements com. Doc from com. Start a telemetry span. Additionally, the returned
| |