Skip to content

Commit 4f89eca

Browse files
committed
Updated XRay sampler documentation for .Net Instrumentation
1 parent 1d0abf8 commit 4f89eca

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/docs/getting-started/dotnet-sdk/auto-instr.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,16 @@ You can use CloudWatch Application Signals to automatically instrument your appl
7171

7272
The ADOT .NET Auto-Instrumentation can be configured to use [X-Ray remote sampling](https://docs.aws.amazon.com/xray/latest/devguide/xray-console-sampling.html)
7373
by setting the environment variable `OTEL_TRACES_SAMPLER=xray`. You will also need to [configure the OpenTelemetry collector](/docs/getting-started/remote-sampling)
74-
to allow the application to fetch sampling configuration. By default the sampler sends requests to `http://localhost:2000`. By setting `OTEL_TRACES_SAMPLER_ARG`
74+
to allow the application to fetch sampling configuration.
75+
76+
You can further configure the Sampler by setting the `OTEL_TRACES_SAMPLER_ARG` environment variable. You can update the endpoint and the polling rate as follows:
77+
```
78+
OTEL_TRACES_SAMPLER_ARG=endpoint=<ENDPOINT>,polling_interval=<INTERVAL_IN_SECS>
79+
```
80+
81+
By default the sampler sends requests to `http://localhost:2000` and has a polling rate of `300 seconds`. By setting `OTEL_TRACES_SAMPLER_ARG`
7582
environment variable you can change the endpoint the sampler talks with when getting sampling configuration from AWS X-Ray Console. For example setting
76-
`OTEL_TRACES_SAMPLER_ARG=endpoint=http://localhost:4000` would configure the sampler to communicate with `http://localhost:4000`.
83+
`OTEL_TRACES_SAMPLER_ARG=endpoint=http://localhost:4000,polling_interval=60` would configure the sampler to communicate with `http://localhost:4000` and poll the sampling rules every `60 seconds`.
7784

7885
## Using Manual Instrumentation
7986

0 commit comments

Comments
 (0)