Class OpenTelemetryConfigurationProperties
java.lang.Object
io.micronaut.tracing.opentelemetry.conf.OpenTelemetryConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,OpenTelemetryConfiguration
@ConfigurationProperties("micronaut.otel")
public class OpenTelemetryConfigurationProperties
extends Object
implements OpenTelemetryConfiguration
ConfigurationProperties
implementation of OpenTelemetryConfiguration
.- Since:
- 4.2.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) Sets whether the OpenTelemetry integration is enabled.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
OpenTelemetryConfigurationProperties
public OpenTelemetryConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Sets whether the OpenTelemetry integration is enabled. Default value (true).- Parameters:
enabled
- True if is enabled
-