public class OpenTelemetryTracer extends Object implements com.azure.core.implementation.tracing.Tracer
DIAGNOSTIC_ID_KEY, ENTITY_PATH, HOST_NAME, OPENTELEMETRY_SPAN_KEY, OPENTELEMETRY_SPAN_NAME_KEY, SPAN_CONTEXT| Constructor and Description |
|---|
OpenTelemetryTracer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(Context eventContext) |
void |
end(int responseCode,
Throwable throwable,
Context context) |
void |
end(String statusMessage,
Throwable throwable,
Context context) |
Context |
extractContext(String diagnosticId,
Context context) |
void |
setAttribute(String key,
String value,
Context context) |
Context |
setSpanName(String spanName,
Context context) |
Context |
start(String methodName,
Context context) |
Context |
start(String spanName,
Context context,
com.azure.core.implementation.tracing.ProcessKind processKind) |
public Context start(String methodName, Context context)
start in interface com.azure.core.implementation.tracing.Tracerpublic Context start(String spanName, Context context, com.azure.core.implementation.tracing.ProcessKind processKind)
start in interface com.azure.core.implementation.tracing.Tracerpublic void end(int responseCode,
Throwable throwable,
Context context)
end in interface com.azure.core.implementation.tracing.Tracerpublic void setAttribute(String key, String value, Context context)
setAttribute in interface com.azure.core.implementation.tracing.Tracerpublic Context setSpanName(String spanName, Context context)
setSpanName in interface com.azure.core.implementation.tracing.Tracerpublic void end(String statusMessage, Throwable throwable, Context context)
end in interface com.azure.core.implementation.tracing.Tracerpublic void addLink(Context eventContext)
addLink in interface com.azure.core.implementation.tracing.Tracerpublic Context extractContext(String diagnosticId, Context context)
extractContext in interface com.azure.core.implementation.tracing.TracerCopyright © 2019 Microsoft Corporation. All rights reserved.