public class OpenTelemetryUtil extends Object
| Constructor and Description |
|---|
OpenTelemetryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addGlobalConfigSystemAttributes(String configName,
Map<String,String> tags,
Map<String,String> sourceMap)
Extract any attributes defined via system properties (see
System.getProperties()) for provided configName. |
static String |
getEventTransactionId(org.mule.runtime.api.event.Event event)
This method uses
EventContext.getId() for extracting the unique id
for current event processing. |
static String |
getEventTransactionId(String eventId)
Creates a unique id for current event processing.
|
public static void addGlobalConfigSystemAttributes(String configName, Map<String,String> tags, Map<String,String> sourceMap)
Extract any attributes defined via system properties (seeSystem.getProperties()) for providedconfigName. It uses `{configName}.otel.{attributeKey}` pattern to identify relevant system properties. Key matching is case-insensitive.
public static String getEventTransactionId(org.mule.runtime.api.event.Event event)
EventContext.getId() for extracting the unique id
for current event processing.event - Event to extract id fromCopyright © 2024 AVIO Consulting. All rights reserved.