@saidsef/tracing-node 3.2.4 → 3.3.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.
@@ -34,4 +34,4 @@ spec:
34
34
  gitRepo:
35
35
  directory: "."
36
36
  repository: "https://github.com/saidsef/tracing-node.git"
37
- revision: "redis-connect"
37
+ revision: "redis-ioredis"
package/libs/index.mjs CHANGED
@@ -28,7 +28,7 @@ import {HttpInstrumentation} from '@opentelemetry/instrumentation-http';
28
28
  import {NodeTracerProvider} from '@opentelemetry/sdk-trace-node';
29
29
  import {OTLPTraceExporter} from '@opentelemetry/exporter-trace-otlp-grpc';
30
30
  import {PinoInstrumentation} from '@opentelemetry/instrumentation-pino';
31
- import {RedisInstrumentation} from '@opentelemetry/instrumentation-redis';
31
+ import {IORedisInstrumentation} from '@opentelemetry/instrumentation-ioredis';
32
32
  import {registerInstrumentations} from '@opentelemetry/instrumentation';
33
33
  import {defaultServiceName} from '@opentelemetry/resources';
34
34
  import {SemanticResourceAttributes} from '@opentelemetry/semantic-conventions';
@@ -114,13 +114,14 @@ export function setupTracing(options = {}) {
114
114
  registerInstrumentations({
115
115
  tracerProvider: tracerProvider,
116
116
  instrumentations: [
117
- new PinoInstrumentation({ logHook: (span, record) => { record['resource.service.name'] = tracerProvider.resource.attributes['service.name']; }, }),
117
+ new PinoInstrumentation(),
118
118
  new HttpInstrumentation({ requireParentforOutgoingSpans: false, requireParentforIncomingSpans: false, ignoreIncomingRequestHook, }),
119
+ new FastifyInstrumentation(),
119
120
  new ExpressInstrumentation({ ignoreIncomingRequestHook, }),
120
121
  new ConnectInstrumentation(),
121
122
  new AwsInstrumentation({ sqsExtractContextPropagationFromPayload: true, }),
122
123
  new DnsInstrumentation(),
123
- new RedisInstrumentation(),
124
+ new IORedisInstrumentation(),
124
125
  ],
125
126
  });
126
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saidsef/tracing-node",
3
- "version": "3.2.4",
3
+ "version": "3.3.1",
4
4
  "description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
5
5
  "main": "libs/index.mjs",
6
6
  "scripts": {
@@ -35,11 +35,11 @@
35
35
  "@opentelemetry/instrumentation": "^0.200.0",
36
36
  "@opentelemetry/instrumentation-aws-sdk": "^0.49.0",
37
37
  "@opentelemetry/instrumentation-connect": "^0.44.0",
38
- "@opentelemetry/instrumentation-dns": "^0.43.0",
38
+ "@opentelemetry/instrumentation-dns": "^0.44.0",
39
39
  "@opentelemetry/instrumentation-express": "^0.48.0",
40
40
  "@opentelemetry/instrumentation-http": "^0.200.0",
41
- "@opentelemetry/instrumentation-pino": "^0.46.0",
42
- "@opentelemetry/instrumentation-redis": "^0.47.0",
41
+ "@opentelemetry/instrumentation-ioredis": "^0.48.0",
42
+ "@opentelemetry/instrumentation-pino": "^0.47.0",
43
43
  "@opentelemetry/propagator-b3": "^1.28.0",
44
44
  "@opentelemetry/resources": "^2.0.0",
45
45
  "@opentelemetry/sdk-trace-base": "^2.0.0",