Class HelidonOpenTelemetry.AgentDetector

java.lang.Object
io.helidon.tracing.providers.opentelemetry.HelidonOpenTelemetry.AgentDetector
Enclosing class:
HelidonOpenTelemetry

public static final class HelidonOpenTelemetry.AgentDetector extends Object
Check if OpenTelemetry is present by indirect properties. This class does best explicit check if OTEL_AGENT_PRESENT_PROPERTY config property is set and uses its value to set the behaviour of OpenTelemetry producer. If the value is not explicitly set, the detector does best effort to estimate indirect means if the agent is present. This detector may stop working if OTEL changes the indirect indicators.
  • Method Details

    • isAgentPresent

      public static boolean isAgentPresent(Config config)
      Check if the OTEL Agent is present.
      Parameters:
      config - Configuration
      Returns:
      boolean