Skip to content

Commit 0ca8cbc

Browse files
committed
Update sampler docs
1 parent 5809da0 commit 0ca8cbc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cel-sampler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The `CelBasedSampler` supports [declarative configuration](https://opentelemetry
77
To use:
88

99
* Add a dependency on `io.opentelemetry.contrib:opentelemetry-cel-sampler:<version>`
10+
* See the [extension documentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/examples/extension/README.md#build-and-add-extensions) for how to add extensions when using the java agent.
1011
* Follow the [instructions](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/incubator/README.md#declarative-configuration) to configure OpenTelemetry with declarative configuration.
1112
* Configure the `.tracer_provider.sampler` to include the `cel_based` sampler.
1213

samplers/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The following samplers support [declarative configuration](https://opentelemetry
99
To use:
1010

1111
* Add a dependency on `io.opentelemetry.contrib:opentelemetry-samplers:<version>`
12+
* NOTE: if using the java agent, this sampler is already included in versions 2.21+ and no additional dependency is required.
1213
* Follow the [instructions](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/incubator/README.md#declarative-configuration) to configure OpenTelemetry with declarative configuration.
1314
* Configure the `.tracer_provider.sampler` to include the `rule_based_routing` sampler.
1415

0 commit comments

Comments
 (0)