Interface ConfigPropertySource

  • All Superinterfaces:
    Ordered

    public interface ConfigPropertySource
    extends Ordered
    A service provider that allows to override default OTel agent configuration. Properties returned by implementations of this interface will be used after the following methods fail to find a non-empty property value: system properties, environment variables, properties configuration file.

    This is a service provider interface that requires implementations to be registered in a provider-configuration file stored in the META-INF/services resource directory.

    • Method Detail

      • getProperties

        Map<String,​String> getProperties()
        Returns all properties whose default values are overridden by this property source. Key of the map is the propertyName (same as system property name, e.g. otel.traces.exporter), value is the property value.