sm-utility 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sm-utility",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "reusable utility codes for sm projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@opentelemetry/auto-instrumentations-node": "0.55.3",
|
|
31
31
|
"@opentelemetry/exporter-trace-otlp-http": "0.57.1",
|
|
32
32
|
"@opentelemetry/id-generator-aws-xray": "1.2.2",
|
|
33
|
+
"@opentelemetry/instrumentation-express": "0.47.0",
|
|
33
34
|
"@opentelemetry/propagator-aws-xray": "1.26.1",
|
|
34
35
|
"@opentelemetry/resources": "1.30.1",
|
|
35
36
|
"@opentelemetry/sdk-node": "0.57.1",
|
|
@@ -31,7 +31,16 @@ class OpenTelemetryTracer {
|
|
|
31
31
|
this.sdk = new sdk_node_1.NodeSDK({
|
|
32
32
|
resource,
|
|
33
33
|
spanProcessors: [spanProcessor],
|
|
34
|
-
instrumentations: [
|
|
34
|
+
instrumentations: [
|
|
35
|
+
(0, auto_instrumentations_node_1.getNodeAutoInstrumentations)({
|
|
36
|
+
"@opentelemetry/instrumentation-express": {
|
|
37
|
+
enabled: true,
|
|
38
|
+
...(finalConfig.ignoredPaths && {
|
|
39
|
+
ignoreIncomingPaths: finalConfig.ignoredPaths,
|
|
40
|
+
}),
|
|
41
|
+
},
|
|
42
|
+
}),
|
|
43
|
+
],
|
|
35
44
|
textMapPropagator: new propagator_aws_xray_1.AWSXRayPropagator(),
|
|
36
45
|
idGenerator: new id_generator_aws_xray_1.AWSXRayIdGenerator(),
|
|
37
46
|
sampler: new sdk_trace_base_1.TraceIdRatioBasedSampler(finalConfig.samplingRatio),
|