fix(revisions): add trace id sampler

This commit is contained in:
Karol Sójko 2023-10-09 11:18:52 +02:00
parent 6abdd73a31
commit bf9072dbd4
No known key found for this signature in database
GPG key ID: C2F813669419D05F
2 changed files with 1 additions and 0 deletions

View file

@ -176,6 +176,7 @@ export class ContainerConfigLoader {
if (!isConfiguredForHomeServerOrSelfHosting) {
const sdk = new OpenTelemetrySDK.NodeSDK({
sampler: new OpenTelemetrySDK.tracing.TraceIdRatioBasedSampler(0.01),
textMapPropagator: new AWSXRayPropagator(),
instrumentations: [
new HttpInstrumentation(),