Class Otel2ConfigurationProperties
java.lang.Object
org.apache.camel.main.Otel2ConfigurationProperties
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable
@Configurer(extended=true)
public class Otel2ConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Global configuration for OpenTelemetry 2 (based on camel-telemetry)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()end()booleanbooleanbooleanbooleanvoidsetDisableCoreProcessors(Boolean disableCoreProcessors) Disable any inner core processors (any core DSL processor provided in the route, for example `bean`, `log`, ...).voidsetEnabled(boolean enabled) To enable OpenTelemetry 2voidsetEncoding(boolean encoding) Sets whether the header keys need to be encoded (connector specific) or not.voidsetExcludePatterns(String excludePatterns) Sets exclude pattern(s) that will disable tracing for Camel processors that matches the pattern.voidsetIncludePatterns(String includePatterns) Sets include pattern(s) that will explicitly enable tracing for Camel processors that matches the pattern.voidsetInstrumentationName(String instrumentationName) A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name.voidsetTraceProcessors(boolean traceProcessors) Setting this to true will create new telemetry spans for each Camel custom Processors.withEnabled(boolean enabled) To enable OpenTelemetrywithEncoding(boolean encoding) Sets whether the header keys need to be encoded (connector specific) or not.withExcludePatterns(String excludePatterns) Adds an exclude pattern that will disable tracing for Camel messages that matches the pattern.withInstrumentationName(String instrumentationName) A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name.withTraceProcessors(boolean traceProcessors) Setting this to true will create new OpenTelemetry Spans for each Camel Processors.
-
Constructor Details
-
Otel2ConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) To enable OpenTelemetry 2 -
getInstrumentationName
-
setInstrumentationName
A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null. -
isEncoding
public boolean isEncoding() -
setEncoding
public void setEncoding(boolean encoding) Sets whether the header keys need to be encoded (connector specific) or not. The value is a boolean. Dashes need for instances to be encoded for JMS property keys. -
getExcludePatterns
-
setExcludePatterns
Sets exclude pattern(s) that will disable tracing for Camel processors that matches the pattern. Multiple patterns can be separated by comma. -
getIncludePatterns
-
setIncludePatterns
Sets include pattern(s) that will explicitly enable tracing for Camel processors that matches the pattern. Multiple patterns can be separated by comma. All processors included by default if nothing is specified. -
isTraceProcessors
public boolean isTraceProcessors() -
setTraceProcessors
public void setTraceProcessors(boolean traceProcessors) Setting this to true will create new telemetry spans for each Camel custom Processors. Use the excludePattern property to filter out Processors. -
isDisableCoreProcessors
public boolean isDisableCoreProcessors() -
setDisableCoreProcessors
Disable any inner core processors (any core DSL processor provided in the route, for example `bean`, `log`, ...). -
withInstrumentationName
A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null. -
withEnabled
To enable OpenTelemetry -
withEncoding
Sets whether the header keys need to be encoded (connector specific) or not. The value is a boolean. Dashes need for instances to be encoded for JMS property keys. -
withExcludePatterns
Adds an exclude pattern that will disable tracing for Camel messages that matches the pattern. Multiple patterns can be separated by comma. -
withTraceProcessors
Setting this to true will create new OpenTelemetry Spans for each Camel Processors. Use the excludePattern property to filter out Processors.
-