java.lang.Object
io.opentelemetry.instrumentation.spring.autoconfigure.internal.properties.ConfigPropertiesBridge
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig

public final class ConfigPropertiesBridge extends Object implements io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
Support for ConfigProperties in InstrumentationConfig.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Constructor Details

    • ConfigPropertiesBridge

      public ConfigPropertiesBridge(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties)
  • Method Details

    • getString

      @Nullable public String getString(String name)
      Specified by:
      getString in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getString

      public String getString(String name, String defaultValue)
      Specified by:
      getString in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getBoolean

      public boolean getBoolean(String name, boolean defaultValue)
      Specified by:
      getBoolean in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getInt

      public int getInt(String name, int defaultValue)
      Specified by:
      getInt in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getLong

      public long getLong(String name, long defaultValue)
      Specified by:
      getLong in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getDouble

      public double getDouble(String name, double defaultValue)
      Specified by:
      getDouble in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getDuration

      public Duration getDuration(String name, Duration defaultValue)
      Specified by:
      getDuration in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getList

      public List<String> getList(String name, List<String> defaultValue)
      Specified by:
      getList in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig
    • getMap

      public Map<String,String> getMap(String name, Map<String,String> defaultValue)
      Specified by:
      getMap in interface io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig