Skip to content

Added custom sampler support based on action in request (#10136)

Codecov / codecov/patch succeeded Feb 7, 2024 in 1s

75.36% of diff hit (target 71.09%)

View this Pull Request on Codecov

75.36% of diff hit (target 71.09%)

Annotations

Check warning on line 136 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/OTelTelemetrySettings.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/OTelTelemetrySettings.java#L135-L136

Added lines #L135 - L136 were not covered by tests

Check warning on line 84 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java#L84

Added line #L84 was not covered by tests

Check warning on line 86 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java#L86

Added line #L86 was not covered by tests

Check warning on line 88 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java#L88

Added line #L88 was not covered by tests

Check warning on line 93 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/OTelSamplerFactory.java#L92-L93

Added lines #L92 - L93 were not covered by tests

Check warning on line 87 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticSampler.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticSampler.java#L87

Added line #L87 was not covered by tests

Check warning on line 83 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticTransportActionSampler.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticTransportActionSampler.java#L83

Added line #L83 was not covered by tests

Check warning on line 92 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticTransportActionSampler.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticTransportActionSampler.java#L92

Added line #L92 was not covered by tests

Check warning on line 97 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticTransportActionSampler.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/ProbabilisticTransportActionSampler.java#L97

Added line #L97 was not covered by tests

Check warning on line 54 in plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/RequestSampler.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/sampler/RequestSampler.java#L54

Added line #L54 was not covered by tests