Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"description": "Sets exclude pattern(s) that will disable tracing for Camel processors that matches the pattern. Multiple patterns can be separated by comma.",
"sourceType": "org.apache.camel.micrometer.observability.starter.MicrometerObservabilityConfigurationProperties"
},
{
"name": "camel.micrometer.observability.include-patterns",
"type": "java.lang.String",
"description": "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.",
"sourceType": "org.apache.camel.micrometer.observability.starter.MicrometerObservabilityConfigurationProperties"
},
{
"name": "camel.micrometer.observability.trace-processors",
"type": "java.lang.Boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ MicrometerObservabilityTracer micrometerObservationTracer(
if (config.getExcludePatterns() != null) {
micrometerObservationTracer.setExcludePatterns(config.getExcludePatterns());
}
if (config.getIncludePatterns() != null) {
micrometerObservationTracer.setIncludePatterns(config.getIncludePatterns());
}
if (config.isTraceProcessors()) {
micrometerObservationTracer.setTraceProcessors(config.isTraceProcessors());;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public class MicrometerObservabilityConfigurationProperties {
* can be separated by comma.
*/
private String excludePatterns;
/**
* 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.
*/
private String includePatterns;
/**
* Setting this to true will create new telemetry spans for each Camel custom Processors. Use the excludePattern
* property to filter out Processors.
Expand All @@ -44,6 +49,14 @@ public void setExcludePatterns(String excludePatterns) {
this.excludePatterns = excludePatterns;
}

public String getIncludePatterns() {
return includePatterns;
}

public void setIncludePatterns(String includePatterns) {
this.includePatterns = includePatterns;
}

public boolean isTraceProcessors() {
return traceProcessors;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"description": "Sets exclude pattern(s) that will disable tracing for Camel processors that matches the pattern. Multiple patterns can be separated by comma.",
"sourceType": "org.apache.camel.opentelemetry2.starter.OpenTelemetry2ConfigurationProperties"
},
{
"name": "camel.opentelemetry2.include-patterns",
"type": "java.lang.String",
"description": "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.",
"sourceType": "org.apache.camel.opentelemetry2.starter.OpenTelemetry2ConfigurationProperties"
},
{
"name": "camel.opentelemetry2.trace-processors",
"type": "java.lang.Boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ OpenTelemetryTracer openTelemetryEventNotifier(CamelContext camelContext,
if (config.getExcludePatterns() != null) {
ottracer.setExcludePatterns(config.getExcludePatterns());
}
if (config.getIncludePatterns() != null) {
ottracer.setIncludePatterns(config.getIncludePatterns());
}
if (config.getTraceProcessors() != null ) {
ottracer.setTraceProcessors(config.getTraceProcessors());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public class OpenTelemetry2ConfigurationProperties {
* can be separated by comma.
*/
private String excludePatterns;
/**
* 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.
*/
private String includePatterns;
/**
* Setting this to true will create new telemetry spans for each Camel custom Processors. Use the excludePattern
* property to filter out Processors.
Expand Down Expand Up @@ -59,4 +64,12 @@ public String getExcludePatterns() {
public void setExcludePatterns(String excludePatterns) {
this.excludePatterns = excludePatterns;
}

public String getIncludePatterns() {
return includePatterns;
}

public void setIncludePatterns(String includePatterns) {
this.includePatterns = includePatterns;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"description": "Sets exclude pattern(s) that will disable tracing for Camel processors that matches the pattern. Multiple patterns can be separated by comma.",
"sourceType": "org.apache.camel.telemetrydev.starter.TelemetryDevConfigurationProperties"
},
{
"name": "camel.telemetrydev.include-patterns",
"type": "java.lang.String",
"description": "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.",
"sourceType": "org.apache.camel.telemetrydev.starter.TelemetryDevConfigurationProperties"
},
{
"name": "camel.telemetrydev.trace-format",
"type": "java.lang.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ TelemetryDevTracer openTelemetryEventNotifier(CamelContext camelContext,
if (config.getExcludePatterns() != null) {
devTracer.setExcludePatterns(config.getExcludePatterns());
}
if (config.getIncludePatterns() != null) {
devTracer.setIncludePatterns(config.getIncludePatterns());
}
if (config.getTraceProcessors() != null && config.getTraceProcessors()) {
devTracer.setTraceProcessors(config.getTraceProcessors());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public class TelemetryDevConfigurationProperties {
* can be separated by comma.
*/
private String excludePatterns;
/**
* 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.
*/
private String includePatterns;
/**
* Setting this to true will create new telemetry spans for each Camel custom Processors. Use the excludePattern
* property to filter out Processors.
Expand Down Expand Up @@ -76,6 +81,14 @@ public void setExcludePatterns(String excludePatterns) {
this.excludePatterns = excludePatterns;
}

public String getIncludePatterns() {
return includePatterns;
}

public void setIncludePatterns(String includePatterns) {
this.includePatterns = includePatterns;
}

public String getTraceFormat() {
return traceFormat;
}
Expand Down
Loading