diff --git a/.pnp.cjs b/.pnp.cjs index dadd1fa7c..f5b8e8515 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -5185,6 +5185,35 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@opentelemetry/instrumentation-ioredis", [\ + ["npm:0.35.1", {\ + "packageLocation": "./.yarn/cache/@opentelemetry-instrumentation-ioredis-npm-0.35.1-f1bfc45bc2-8345ef7567.zip/node_modules/@opentelemetry/instrumentation-ioredis/",\ + "packageDependencies": [\ + ["@opentelemetry/instrumentation-ioredis", "npm:0.35.1"]\ + ],\ + "linkType": "SOFT"\ + }],\ + ["virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.35.1", {\ + "packageLocation": "./.yarn/__virtual__/@opentelemetry-instrumentation-ioredis-virtual-cdfc31255d/0/cache/@opentelemetry-instrumentation-ioredis-npm-0.35.1-f1bfc45bc2-8345ef7567.zip/node_modules/@opentelemetry/instrumentation-ioredis/",\ + "packageDependencies": [\ + ["@opentelemetry/instrumentation-ioredis", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.35.1"],\ + ["@opentelemetry/api", "npm:1.6.0"],\ + ["@opentelemetry/instrumentation", "virtual:615937aa81839b05262fb17b9798d2b03176d47c4f8dad05d5bcb050f95f724786e9efd2e9f8e96aeb0f4f2bd3253509727df5e270ef87443598047e1192e3e9#npm:0.41.2"],\ + ["@opentelemetry/redis-common", "npm:0.36.1"],\ + ["@opentelemetry/semantic-conventions", "npm:1.17.0"],\ + ["@types/ioredis4", [\ + "@types/ioredis",\ + "npm:4.28.10"\ + ]],\ + ["@types/opentelemetry__api", null]\ + ],\ + "packagePeers": [\ + "@opentelemetry/api",\ + "@types/opentelemetry__api"\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@opentelemetry/instrumentation-winston", [\ ["npm:0.32.1", {\ "packageLocation": "./.yarn/cache/@opentelemetry-instrumentation-winston-npm-0.32.1-4adcd85525-2292411336.zip/node_modules/@opentelemetry/instrumentation-winston/",\ @@ -5401,6 +5430,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@opentelemetry/redis-common", [\ + ["npm:0.36.1", {\ + "packageLocation": "./.yarn/cache/@opentelemetry-redis-common-npm-0.36.1-2ad15a6f4e-65962c6a9c.zip/node_modules/@opentelemetry/redis-common/",\ + "packageDependencies": [\ + ["@opentelemetry/redis-common", "npm:0.36.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@opentelemetry/resource-detector-aws", [\ ["npm:1.3.1", {\ "packageLocation": "./.yarn/cache/@opentelemetry-resource-detector-aws-npm-1.3.1-a531d502b9-05bcfda5a1.zip/node_modules/@opentelemetry/resource-detector-aws/",\ @@ -6756,6 +6794,7 @@ const RAW_RUNTIME_STATE = ["@opentelemetry/id-generator-aws-xray", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:1.2.1"],\ ["@opentelemetry/instrumentation-aws-sdk", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.36.0"],\ ["@opentelemetry/instrumentation-http", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.43.0"],\ + ["@opentelemetry/instrumentation-ioredis", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.35.1"],\ ["@opentelemetry/instrumentation-winston", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.32.1"],\ ["@opentelemetry/propagator-aws-xray", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:1.3.1"],\ ["@opentelemetry/resource-detector-aws", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:1.3.1"],\ @@ -7569,6 +7608,14 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@types/ioredis", [\ + ["npm:4.28.10", {\ + "packageLocation": "./.yarn/cache/@types-ioredis-npm-4.28.10-4bdbe26a79-c160dccab1.zip/node_modules/@types/ioredis/",\ + "packageDependencies": [\ + ["@types/ioredis", "npm:4.28.10"],\ + ["@types/node", "npm:20.2.5"]\ + ],\ + "linkType": "HARD"\ + }],\ ["npm:5.0.0", {\ "packageLocation": "./.yarn/cache/@types-ioredis-npm-5.0.0-6efa70abfa-0d0c020c88.zip/node_modules/@types/ioredis/",\ "packageDependencies": [\ diff --git a/.yarn/cache/@opentelemetry-instrumentation-ioredis-npm-0.35.1-f1bfc45bc2-8345ef7567.zip b/.yarn/cache/@opentelemetry-instrumentation-ioredis-npm-0.35.1-f1bfc45bc2-8345ef7567.zip new file mode 100644 index 000000000..575e5404e Binary files /dev/null and b/.yarn/cache/@opentelemetry-instrumentation-ioredis-npm-0.35.1-f1bfc45bc2-8345ef7567.zip differ diff --git a/.yarn/cache/@opentelemetry-redis-common-npm-0.36.1-2ad15a6f4e-65962c6a9c.zip b/.yarn/cache/@opentelemetry-redis-common-npm-0.36.1-2ad15a6f4e-65962c6a9c.zip new file mode 100644 index 000000000..626855f58 Binary files /dev/null and b/.yarn/cache/@opentelemetry-redis-common-npm-0.36.1-2ad15a6f4e-65962c6a9c.zip differ diff --git a/.yarn/cache/@types-ioredis-npm-4.28.10-4bdbe26a79-c160dccab1.zip b/.yarn/cache/@types-ioredis-npm-4.28.10-4bdbe26a79-c160dccab1.zip new file mode 100644 index 000000000..49340fd14 Binary files /dev/null and b/.yarn/cache/@types-ioredis-npm-4.28.10-4bdbe26a79-c160dccab1.zip differ diff --git a/packages/domain-events-infra/package.json b/packages/domain-events-infra/package.json index 7902411ac..32b438f37 100644 --- a/packages/domain-events-infra/package.json +++ b/packages/domain-events-infra/package.json @@ -32,6 +32,7 @@ "@opentelemetry/id-generator-aws-xray": "^1.2.1", "@opentelemetry/instrumentation-aws-sdk": "^0.36.0", "@opentelemetry/instrumentation-http": "^0.43.0", + "@opentelemetry/instrumentation-ioredis": "^0.35.1", "@opentelemetry/instrumentation-winston": "^0.32.1", "@opentelemetry/propagator-aws-xray": "^1.3.1", "@opentelemetry/resource-detector-aws": "^1.3.1", diff --git a/packages/domain-events-infra/src/Infra/OpenTelemetry/OpenTelemetrySDK.ts b/packages/domain-events-infra/src/Infra/OpenTelemetry/OpenTelemetrySDK.ts index 0d274cbbe..e58882a06 100644 --- a/packages/domain-events-infra/src/Infra/OpenTelemetry/OpenTelemetrySDK.ts +++ b/packages/domain-events-infra/src/Infra/OpenTelemetry/OpenTelemetrySDK.ts @@ -9,6 +9,7 @@ import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' import { AwsInstrumentation } from '@opentelemetry/instrumentation-aws-sdk' import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-proto' import { WinstonInstrumentation } from '@opentelemetry/instrumentation-winston' +import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis' import { OpenTelemetrySDKInterface } from './OpenTelemetrySDKInterface' @@ -49,6 +50,7 @@ export class OpenTelemetrySDK implements OpenTelemetrySDKInterface { }), new TypeormInstrumentation(), winstonInstrumentation, + new IORedisInstrumentation(), ], metricReader: metricReader, resource: otResource, diff --git a/yarn.lock b/yarn.lock index c9ed1f465..d5fd4c54c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4369,6 +4369,20 @@ __metadata: languageName: node linkType: hard +"@opentelemetry/instrumentation-ioredis@npm:^0.35.1": + version: 0.35.1 + resolution: "@opentelemetry/instrumentation-ioredis@npm:0.35.1" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.41.2" + "@opentelemetry/redis-common": "npm:^0.36.1" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + "@types/ioredis4": "npm:@types/ioredis@^4.28.10" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 8345ef7567128d674a1262ed64c03e6b7f7442564622ce680a98ebea038822209b1e829134df07eadf0cfdd3a368880e43ea7e3c9117980fc378c31a4bc044fd + languageName: node + linkType: hard + "@opentelemetry/instrumentation-winston@npm:^0.32.1": version: 0.32.1 resolution: "@opentelemetry/instrumentation-winston@npm:0.32.1" @@ -4506,6 +4520,13 @@ __metadata: languageName: node linkType: hard +"@opentelemetry/redis-common@npm:^0.36.1": + version: 0.36.1 + resolution: "@opentelemetry/redis-common@npm:0.36.1" + checksum: 65962c6a9cbcd77e653eb42dc00deecf4988cec4c20de4fa15b3817214147f92531c46e803aedcd561c016d777d015f750eeebe081741d39bbb9d23fcb886f3f + languageName: node + linkType: hard + "@opentelemetry/resource-detector-aws@npm:^1.3.1": version: 1.3.1 resolution: "@opentelemetry/resource-detector-aws@npm:1.3.1" @@ -6003,6 +6024,7 @@ __metadata: "@opentelemetry/id-generator-aws-xray": "npm:^1.2.1" "@opentelemetry/instrumentation-aws-sdk": "npm:^0.36.0" "@opentelemetry/instrumentation-http": "npm:^0.43.0" + "@opentelemetry/instrumentation-ioredis": "npm:^0.35.1" "@opentelemetry/instrumentation-winston": "npm:^0.32.1" "@opentelemetry/propagator-aws-xray": "npm:^1.3.1" "@opentelemetry/resource-detector-aws": "npm:^1.3.1" @@ -6815,6 +6837,15 @@ __metadata: languageName: node linkType: hard +"@types/ioredis4@npm:@types/ioredis@^4.28.10": + version: 4.28.10 + resolution: "@types/ioredis@npm:4.28.10" + dependencies: + "@types/node": "npm:*" + checksum: c160dccab11b9bdc49e753a8fb4c18ccd0dd97c9b5aa966514cdc3f3fb6cd007e421f1de6044565446acd59059b18c8d8f6ae878c013d623a24ed196adead6f3 + languageName: node + linkType: hard + "@types/ioredis@npm:^5.0.0": version: 5.0.0 resolution: "@types/ioredis@npm:5.0.0"