You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/getting-started/js-sdk/trace-manual-instr.mdx
+56
Original file line number
Diff line number
Diff line change
@@ -229,6 +229,62 @@ const sdk = new opentelemetry.NodeSDK({
229
229
230
230
<SubSectionSeparator />
231
231
232
+
### Using X-Ray Remote Sampling
233
+
The `@opentelemetry/sampler-aws-xray` package provides `Sampler` implementation for use with [X-Ray remote sampling](https://docs.aws.amazon.com/xray/latest/devguide/xray-console-sampling.html).
234
+
235
+
236
+
```shell
237
+
npm install @opentelemetry/sampler-aws-xray
238
+
```
239
+
240
+
When initializing the `TracerProvider`, register the `AWSXRayRemoteSampler`. Moreover, you can configure the following attributes for the sampler.
Please note that you will also need to [configure the OpenTelemetry collector](/docs/getting-started/remote-sampling) to allow the application to fetch sampling configuration for AWS X-Ray service.
0 commit comments