public class OpenTelemetryOperations extends Object
| Constructor and Description |
|---|
OpenTelemetryOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomTags(OpenTelemetryExtensionConfiguration config,
org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> traceTransactionId,
Map<String,String> tags,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
Deprecated: Use addTransactionTags instead.
|
void |
addTransactionTags(OpenTelemetryExtensionConfiguration config,
Map<String,String> tags,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
Add custom tags to an ongoing trace transaction.
|
Map<String,String> |
getCurrentTraceContext(OpenTelemetryExtensionConfiguration config,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo,
org.mule.runtime.api.component.location.ComponentLocation location)
Get the trace context for current trace transaction.
|
Map<String,String> |
getTraceContext(OpenTelemetryExtensionConfiguration config,
org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> traceTransactionId,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
Deprecated: Use Get Current Trace Context instead.
|
@DisplayName(value="Get Trace Context")
@Alias(value="get-trace-context")
@Deprecated(message="Use Get Current Trace Context instead. When OTEL_TRACE_CONTEXT does not pre-exist, there is no way for users to get current transaction id.",
since="2.3.0",
toRemoveIn="3.0.0")
public Map<String,String> getTraceContext(@Config
OpenTelemetryExtensionConfiguration config,
@DisplayName(value="Trace Transaction Id") @Optional(defaultValue="#[vars.OTEL_TRACE_CONTEXT.TRACE_TRANSACTION_ID]")
org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> traceTransactionId,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
config - OpenTelemetryExtensionConfiguration InstancetraceTransactionId - provided by usercorrelationInfo - CorrelationInfo injected by runtime@DisplayName(value="Get Current Trace Context") @Alias(value="get-current-trace-context") @Summary(value="Gets the current trace context") public Map<String,String> getCurrentTraceContext(@Config OpenTelemetryExtensionConfiguration config, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, org.mule.runtime.api.component.location.ComponentLocation location)
config - OpenTelemetryExtensionConfiguration InstancecorrelationInfo - CorrelationInfo (injected by runtime) to extract the
current event id@DisplayName(value="Add Custom Tags")
@Deprecated(message="Use addTransactionTags instead. When OTEL_TRACE_CONTEXT does not pre-exist, there is no way for users to get current transaction id.",
since="2.3.0",
toRemoveIn="3.0.0")
public void addCustomTags(@Config
OpenTelemetryExtensionConfiguration config,
@DisplayName(value="Trace Transaction Id") @Optional(defaultValue="#[vars.OTEL_TRACE_CONTEXT.TRACE_TRANSACTION_ID]")
org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> traceTransactionId,
Map<String,String> tags,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
config - OpenTelemetryExtensionConfiguration provided by the SDKtags - Map of String Keys and String Values
containing the tags. Behavior of null values in the map is
undefined and not recommended.correlationInfo - CorrelationInfo from the runtime@DisplayName(value="Add Transaction Tags")
public void addTransactionTags(@Config
OpenTelemetryExtensionConfiguration config,
Map<String,String> tags,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
If the transaction's root span previously contained a mapping for the key, the old value is replaced by the new value.
config - OpenTelemetryExtensionConfiguration provided by the SDKtags - Map of String Keys and String Values
containing the tags. Behavior of null values in the map is
undefined and not recommended.correlationInfo - CorrelationInfo from the runtimeCopyright © 2024 AVIO Consulting. All rights reserved.