Interface OpenTelemetryOwnershipStrategy
Strategy for contributing an application-wide OpenTelemetry runtime candidate.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this strategy should own the application-wide OpenTelemetry runtime for the current configuration.io.opentelemetry.api.OpenTelemetryCreates this strategy's OpenTelemetry runtime candidate.default booleanWhether the selected application-wideOpenTelemetryinstance should be published toGlobalOpenTelemetry.default voidInvoked once this strategy's runtime has been selected.serviceName(Config rootConfig) Service name configured for this ownership strategy.
-
Method Details
-
active
Whether this strategy should own the application-wide OpenTelemetry runtime for the current configuration.- Parameters:
rootConfig- root configuration- Returns:
- whether this strategy is active
-
serviceName
-
create
Creates this strategy's OpenTelemetry runtime candidate.- Parameters:
rootConfig- root configuration- Returns:
- OpenTelemetry runtime candidate
-
global
Whether the selected application-wideOpenTelemetryinstance should be published toGlobalOpenTelemetry.- Parameters:
rootConfig- root configuration- Returns:
- whether Helidon should publish the selected instance to the OpenTelemetry global
-
selected
Invoked once this strategy's runtime has been selected.- Parameters:
rootConfig- root configurationopenTelemetry- canonical OpenTelemetry runtime
-