Class OpenTelemetryUtil


  • public class OpenTelemetryUtil
    extends Object
    • Constructor Detail

      • OpenTelemetryUtil

        public OpenTelemetryUtil()
    • Method Detail

      • addGlobalConfigSystemAttributes

        public 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.
        
         It uses `{configName}.otel.{attributeKey}` pattern to identify relevant system properties. Key matching is case-insensitive.
         
        Parameters:
        configName - String name of the component's global configuration element
        tags - Modifiable Map to populate any
        sourceMap - Map contains all properties to search in