All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.javaagent.bootstrap.internal.EmptyInstrumentationConfig Maven / Gradle / Ivy

There is a newer version: 2.11.0-alpha
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.javaagent.bootstrap.internal;

import io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig;
import java.time.Duration;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;

final class EmptyInstrumentationConfig implements InstrumentationConfig {

  @Nullable
  @Override
  public String getString(String name) {
    return null;
  }

  @Override
  public String getString(String name, String defaultValue) {
    return defaultValue;
  }

  @Override
  public boolean getBoolean(String name, boolean defaultValue) {
    return defaultValue;
  }

  @Override
  public int getInt(String name, int defaultValue) {
    return defaultValue;
  }

  @Override
  public long getLong(String name, long defaultValue) {
    return defaultValue;
  }

  @Override
  public double getDouble(String name, double defaultValue) {
    return defaultValue;
  }

  @Override
  public Duration getDuration(String name, Duration defaultValue) {
    return defaultValue;
  }

  @Override
  public List getList(String name, List defaultValue) {
    return defaultValue;
  }

  @Override
  public Map getMap(String name, Map defaultValue) {
    return defaultValue;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy