Class OpenTelemetryOperations


  • public class OpenTelemetryOperations
    extends Object
    • Constructor Detail

      • OpenTelemetryOperations

        public OpenTelemetryOperations()
    • 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 - OpenTelemetryConnection provided by the SDK
        tags - 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