Class OpenTelemetryOperations
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.OpenTelemetryOperations
-
public class OpenTelemetryOperations extends Object
-
-
Constructor Summary
Constructors Constructor Description OpenTelemetryOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomTags(Supplier<OpenTelemetryConnection> openTelemetryConnection, Map<String,String> tags, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)Add custom tags to an ongoing trace transaction.Map<String,String>getTraceContext(Supplier<OpenTelemetryConnection> openTelemetryConnection, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
-
-
-
Method Detail
-
getTraceContext
@DisplayName("Get Trace Context") @Alias("get-trace-context") public Map<String,String> getTraceContext(@Connection Supplier<OpenTelemetryConnection> openTelemetryConnection, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
-
addCustomTags
@DisplayName("Add Custom Tags") public void addCustomTags(@Connection Supplier<OpenTelemetryConnection> openTelemetryConnection, Map<String,String> tags, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)Add custom tags to an ongoing trace transaction. The tags will be added as attributes to the root span of this transaction. If the transaction's root span previously contained a mapping for the key, the old value is replaced by the new value.- Parameters:
openTelemetryConnection-OpenTelemetryConnectionprovided by the SDKtags-MapofStringKeys andStringValues containing the tags. Behavior of null values in the map is undefined and not recommended.correlationInfo-CorrelationInfofrom the runtime
-
-