Package io.helidon.tracing.opentelemetry
Class HelidonOpenTelemetry.AgentDetector
java.lang.Object
io.helidon.tracing.opentelemetry.HelidonOpenTelemetry.AgentDetector
- Enclosing class:
- HelidonOpenTelemetry
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 Summary
Modifier and TypeMethodDescriptionstatic boolean
isAgentPresent
(Config config) Check if the OTEL Agent is present.
-
Method Details
-
isAgentPresent
Check if the OTEL Agent is present.- Parameters:
config
- Configuration- Returns:
- boolean
-