feat(domain-events-infra): add grpc opentelemetry instrumentation
This commit is contained in:
parent
a95b6d61e7
commit
99b8273e2d
5 changed files with 46 additions and 5 deletions
35
.pnp.cjs
generated
35
.pnp.cjs
generated
|
@ -3890,10 +3890,10 @@ const RAW_RUNTIME_STATE =
|
||||||
],\
|
],\
|
||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
}],\
|
}],\
|
||||||
["virtual:834836574d45daaaa7b0a550d30a351ebb69f1a0ebb4600253fa7b6b9969ea437117d4dabb956f26fb111fa1db35a2f35f6402d7884ad354fa89378adcd0a940#npm:0.46.0", {\
|
["virtual:dc4e271be9e656e4ff6058043a51bdb2b199c8d4df68c408629c8531279ac6ff3a027bbffb9a975cd4c8d1998210a0691bc9e740965ab4eb7cda3d7ed078e804#npm:0.46.0", {\
|
||||||
"packageLocation": "./.yarn/__virtual__/@opentelemetry-instrumentation-virtual-af8d037aa0/0/cache/@opentelemetry-instrumentation-npm-0.46.0-a9a900c324-d0e59c95a7.zip/node_modules/@opentelemetry/instrumentation/",\
|
"packageLocation": "./.yarn/__virtual__/@opentelemetry-instrumentation-virtual-2c57cd0e90/0/cache/@opentelemetry-instrumentation-npm-0.46.0-a9a900c324-d0e59c95a7.zip/node_modules/@opentelemetry/instrumentation/",\
|
||||||
"packageDependencies": [\
|
"packageDependencies": [\
|
||||||
["@opentelemetry/instrumentation", "virtual:834836574d45daaaa7b0a550d30a351ebb69f1a0ebb4600253fa7b6b9969ea437117d4dabb956f26fb111fa1db35a2f35f6402d7884ad354fa89378adcd0a940#npm:0.46.0"],\
|
["@opentelemetry/instrumentation", "virtual:dc4e271be9e656e4ff6058043a51bdb2b199c8d4df68c408629c8531279ac6ff3a027bbffb9a975cd4c8d1998210a0691bc9e740965ab4eb7cda3d7ed078e804#npm:0.46.0"],\
|
||||||
["@opentelemetry/api", "npm:1.7.0"],\
|
["@opentelemetry/api", "npm:1.7.0"],\
|
||||||
["@types/opentelemetry__api", null],\
|
["@types/opentelemetry__api", null],\
|
||||||
["@types/shimmer", "npm:1.0.3"],\
|
["@types/shimmer", "npm:1.0.3"],\
|
||||||
|
@ -3960,6 +3960,30 @@ const RAW_RUNTIME_STATE =
|
||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
|
["@opentelemetry/instrumentation-grpc", [\
|
||||||
|
["npm:0.46.0", {\
|
||||||
|
"packageLocation": "./.yarn/cache/@opentelemetry-instrumentation-grpc-npm-0.46.0-093fa95eb5-3b702d8b95.zip/node_modules/@opentelemetry/instrumentation-grpc/",\
|
||||||
|
"packageDependencies": [\
|
||||||
|
["@opentelemetry/instrumentation-grpc", "npm:0.46.0"]\
|
||||||
|
],\
|
||||||
|
"linkType": "SOFT"\
|
||||||
|
}],\
|
||||||
|
["virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0", {\
|
||||||
|
"packageLocation": "./.yarn/__virtual__/@opentelemetry-instrumentation-grpc-virtual-dc4e271be9/0/cache/@opentelemetry-instrumentation-grpc-npm-0.46.0-093fa95eb5-3b702d8b95.zip/node_modules/@opentelemetry/instrumentation-grpc/",\
|
||||||
|
"packageDependencies": [\
|
||||||
|
["@opentelemetry/instrumentation-grpc", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0"],\
|
||||||
|
["@opentelemetry/api", "npm:1.7.0"],\
|
||||||
|
["@opentelemetry/instrumentation", "virtual:dc4e271be9e656e4ff6058043a51bdb2b199c8d4df68c408629c8531279ac6ff3a027bbffb9a975cd4c8d1998210a0691bc9e740965ab4eb7cda3d7ed078e804#npm:0.46.0"],\
|
||||||
|
["@opentelemetry/semantic-conventions", "npm:1.19.0"],\
|
||||||
|
["@types/opentelemetry__api", null]\
|
||||||
|
],\
|
||||||
|
"packagePeers": [\
|
||||||
|
"@opentelemetry/api",\
|
||||||
|
"@types/opentelemetry__api"\
|
||||||
|
],\
|
||||||
|
"linkType": "HARD"\
|
||||||
|
}]\
|
||||||
|
]],\
|
||||||
["@opentelemetry/instrumentation-http", [\
|
["@opentelemetry/instrumentation-http", [\
|
||||||
["npm:0.46.0", {\
|
["npm:0.46.0", {\
|
||||||
"packageLocation": "./.yarn/cache/@opentelemetry-instrumentation-http-npm-0.46.0-6874dd0ab9-030358e53e.zip/node_modules/@opentelemetry/instrumentation-http/",\
|
"packageLocation": "./.yarn/cache/@opentelemetry-instrumentation-http-npm-0.46.0-6874dd0ab9-030358e53e.zip/node_modules/@opentelemetry/instrumentation-http/",\
|
||||||
|
@ -3974,7 +3998,7 @@ const RAW_RUNTIME_STATE =
|
||||||
["@opentelemetry/instrumentation-http", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0"],\
|
["@opentelemetry/instrumentation-http", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0"],\
|
||||||
["@opentelemetry/api", "npm:1.7.0"],\
|
["@opentelemetry/api", "npm:1.7.0"],\
|
||||||
["@opentelemetry/core", "virtual:474dbf06214fba6e5126d4a22f80a30140e052e698f11202876e93a81032aa834b5a631bd823e78f24b622ff6bb0f5ada1dac7728cbdeb866ab7e33992e235ac#npm:1.19.0"],\
|
["@opentelemetry/core", "virtual:474dbf06214fba6e5126d4a22f80a30140e052e698f11202876e93a81032aa834b5a631bd823e78f24b622ff6bb0f5ada1dac7728cbdeb866ab7e33992e235ac#npm:1.19.0"],\
|
||||||
["@opentelemetry/instrumentation", "virtual:834836574d45daaaa7b0a550d30a351ebb69f1a0ebb4600253fa7b6b9969ea437117d4dabb956f26fb111fa1db35a2f35f6402d7884ad354fa89378adcd0a940#npm:0.46.0"],\
|
["@opentelemetry/instrumentation", "virtual:dc4e271be9e656e4ff6058043a51bdb2b199c8d4df68c408629c8531279ac6ff3a027bbffb9a975cd4c8d1998210a0691bc9e740965ab4eb7cda3d7ed078e804#npm:0.46.0"],\
|
||||||
["@opentelemetry/semantic-conventions", "npm:1.19.0"],\
|
["@opentelemetry/semantic-conventions", "npm:1.19.0"],\
|
||||||
["@types/opentelemetry__api", null],\
|
["@types/opentelemetry__api", null],\
|
||||||
["semver", "npm:7.5.4"]\
|
["semver", "npm:7.5.4"]\
|
||||||
|
@ -4383,7 +4407,7 @@ const RAW_RUNTIME_STATE =
|
||||||
["@opentelemetry/exporter-trace-otlp-http", "virtual:2dcdca630b1b49b522449a033fd9370a6141f9568dce36b242c54ddeafdf1212c9d13646eddf59cf5e44cfd71e6fd7f373daf32ebd3fe1514045286a7f7e3c30#npm:0.46.0"],\
|
["@opentelemetry/exporter-trace-otlp-http", "virtual:2dcdca630b1b49b522449a033fd9370a6141f9568dce36b242c54ddeafdf1212c9d13646eddf59cf5e44cfd71e6fd7f373daf32ebd3fe1514045286a7f7e3c30#npm:0.46.0"],\
|
||||||
["@opentelemetry/exporter-trace-otlp-proto", "virtual:2dcdca630b1b49b522449a033fd9370a6141f9568dce36b242c54ddeafdf1212c9d13646eddf59cf5e44cfd71e6fd7f373daf32ebd3fe1514045286a7f7e3c30#npm:0.46.0"],\
|
["@opentelemetry/exporter-trace-otlp-proto", "virtual:2dcdca630b1b49b522449a033fd9370a6141f9568dce36b242c54ddeafdf1212c9d13646eddf59cf5e44cfd71e6fd7f373daf32ebd3fe1514045286a7f7e3c30#npm:0.46.0"],\
|
||||||
["@opentelemetry/exporter-zipkin", "virtual:2dcdca630b1b49b522449a033fd9370a6141f9568dce36b242c54ddeafdf1212c9d13646eddf59cf5e44cfd71e6fd7f373daf32ebd3fe1514045286a7f7e3c30#npm:1.19.0"],\
|
["@opentelemetry/exporter-zipkin", "virtual:2dcdca630b1b49b522449a033fd9370a6141f9568dce36b242c54ddeafdf1212c9d13646eddf59cf5e44cfd71e6fd7f373daf32ebd3fe1514045286a7f7e3c30#npm:1.19.0"],\
|
||||||
["@opentelemetry/instrumentation", "virtual:834836574d45daaaa7b0a550d30a351ebb69f1a0ebb4600253fa7b6b9969ea437117d4dabb956f26fb111fa1db35a2f35f6402d7884ad354fa89378adcd0a940#npm:0.46.0"],\
|
["@opentelemetry/instrumentation", "virtual:dc4e271be9e656e4ff6058043a51bdb2b199c8d4df68c408629c8531279ac6ff3a027bbffb9a975cd4c8d1998210a0691bc9e740965ab4eb7cda3d7ed078e804#npm:0.46.0"],\
|
||||||
["@opentelemetry/resources", "virtual:474dbf06214fba6e5126d4a22f80a30140e052e698f11202876e93a81032aa834b5a631bd823e78f24b622ff6bb0f5ada1dac7728cbdeb866ab7e33992e235ac#npm:1.19.0"],\
|
["@opentelemetry/resources", "virtual:474dbf06214fba6e5126d4a22f80a30140e052e698f11202876e93a81032aa834b5a631bd823e78f24b622ff6bb0f5ada1dac7728cbdeb866ab7e33992e235ac#npm:1.19.0"],\
|
||||||
["@opentelemetry/sdk-logs", "virtual:07c62c4930df55f8942cd4bed10d75ad389a986250a110a9a698b1161bf422de51ce5247060e5a1e424b858d200a919b36b9ab356516986f5c0cf4df0d841979#npm:0.46.0"],\
|
["@opentelemetry/sdk-logs", "virtual:07c62c4930df55f8942cd4bed10d75ad389a986250a110a9a698b1161bf422de51ce5247060e5a1e424b858d200a919b36b9ab356516986f5c0cf4df0d841979#npm:0.46.0"],\
|
||||||
["@opentelemetry/sdk-metrics", "virtual:474dbf06214fba6e5126d4a22f80a30140e052e698f11202876e93a81032aa834b5a631bd823e78f24b622ff6bb0f5ada1dac7728cbdeb866ab7e33992e235ac#npm:1.19.0"],\
|
["@opentelemetry/sdk-metrics", "virtual:474dbf06214fba6e5126d4a22f80a30140e052e698f11202876e93a81032aa834b5a631bd823e78f24b622ff6bb0f5ada1dac7728cbdeb866ab7e33992e235ac#npm:1.19.0"],\
|
||||||
|
@ -5733,6 +5757,7 @@ const RAW_RUNTIME_STATE =
|
||||||
["@opentelemetry/id-generator-aws-xray", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:1.2.1"],\
|
["@opentelemetry/id-generator-aws-xray", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:1.2.1"],\
|
||||||
["@opentelemetry/instrumentation-aws-sdk", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.37.1"],\
|
["@opentelemetry/instrumentation-aws-sdk", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.37.1"],\
|
||||||
["@opentelemetry/instrumentation-express", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.34.0"],\
|
["@opentelemetry/instrumentation-express", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.34.0"],\
|
||||||
|
["@opentelemetry/instrumentation-grpc", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0"],\
|
||||||
["@opentelemetry/instrumentation-http", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0"],\
|
["@opentelemetry/instrumentation-http", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.46.0"],\
|
||||||
["@opentelemetry/instrumentation-ioredis", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.36.0"],\
|
["@opentelemetry/instrumentation-ioredis", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.36.0"],\
|
||||||
["@opentelemetry/instrumentation-winston", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.33.0"],\
|
["@opentelemetry/instrumentation-winston", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:0.33.0"],\
|
||||||
|
|
BIN
.yarn/cache/@opentelemetry-instrumentation-grpc-npm-0.46.0-093fa95eb5-3b702d8b95.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-instrumentation-grpc-npm-0.46.0-093fa95eb5-3b702d8b95.zip
vendored
Normal file
Binary file not shown.
|
@ -38,6 +38,7 @@
|
||||||
"@opentelemetry/id-generator-aws-xray": "^1.2.1",
|
"@opentelemetry/id-generator-aws-xray": "^1.2.1",
|
||||||
"@opentelemetry/instrumentation-aws-sdk": "^0.37.1",
|
"@opentelemetry/instrumentation-aws-sdk": "^0.37.1",
|
||||||
"@opentelemetry/instrumentation-express": "^0.34.0",
|
"@opentelemetry/instrumentation-express": "^0.34.0",
|
||||||
|
"@opentelemetry/instrumentation-grpc": "^0.46.0",
|
||||||
"@opentelemetry/instrumentation-http": "^0.46.0",
|
"@opentelemetry/instrumentation-http": "^0.46.0",
|
||||||
"@opentelemetry/instrumentation-ioredis": "^0.36.0",
|
"@opentelemetry/instrumentation-ioredis": "^0.36.0",
|
||||||
"@opentelemetry/instrumentation-winston": "^0.33.0",
|
"@opentelemetry/instrumentation-winston": "^0.33.0",
|
||||||
|
|
|
@ -11,6 +11,7 @@ import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-proto'
|
||||||
import { WinstonInstrumentation } from '@opentelemetry/instrumentation-winston'
|
import { WinstonInstrumentation } from '@opentelemetry/instrumentation-winston'
|
||||||
import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis'
|
import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis'
|
||||||
import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express'
|
import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express'
|
||||||
|
import { GrpcInstrumentation } from '@opentelemetry/instrumentation-grpc'
|
||||||
import { IncomingMessage } from 'http'
|
import { IncomingMessage } from 'http'
|
||||||
import { Attributes } from '@opentelemetry/api'
|
import { Attributes } from '@opentelemetry/api'
|
||||||
|
|
||||||
|
@ -82,6 +83,7 @@ export class OpenTelemetrySDK implements OpenTelemetrySDKInterface {
|
||||||
}),
|
}),
|
||||||
winstonInstrumentation,
|
winstonInstrumentation,
|
||||||
new IORedisInstrumentation(),
|
new IORedisInstrumentation(),
|
||||||
|
new GrpcInstrumentation(),
|
||||||
],
|
],
|
||||||
metricReader: metricReader,
|
metricReader: metricReader,
|
||||||
resource: otResource,
|
resource: otResource,
|
||||||
|
|
13
yarn.lock
13
yarn.lock
|
@ -3244,6 +3244,18 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@opentelemetry/instrumentation-grpc@npm:^0.46.0":
|
||||||
|
version: 0.46.0
|
||||||
|
resolution: "@opentelemetry/instrumentation-grpc@npm:0.46.0"
|
||||||
|
dependencies:
|
||||||
|
"@opentelemetry/instrumentation": "npm:0.46.0"
|
||||||
|
"@opentelemetry/semantic-conventions": "npm:1.19.0"
|
||||||
|
peerDependencies:
|
||||||
|
"@opentelemetry/api": ^1.3.0
|
||||||
|
checksum: 3b702d8b957d0250af277c1a0408c5b21362a9f9c5293a0a829d2c39454e710c6aef4ea975ff1e318a48fd26d9832590f4ddcb97bffde1ecf17b5051b3ad9864
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@opentelemetry/instrumentation-http@npm:^0.46.0":
|
"@opentelemetry/instrumentation-http@npm:^0.46.0":
|
||||||
version: 0.46.0
|
version: 0.46.0
|
||||||
resolution: "@opentelemetry/instrumentation-http@npm:0.46.0"
|
resolution: "@opentelemetry/instrumentation-http@npm:0.46.0"
|
||||||
|
@ -5065,6 +5077,7 @@ __metadata:
|
||||||
"@opentelemetry/id-generator-aws-xray": "npm:^1.2.1"
|
"@opentelemetry/id-generator-aws-xray": "npm:^1.2.1"
|
||||||
"@opentelemetry/instrumentation-aws-sdk": "npm:^0.37.1"
|
"@opentelemetry/instrumentation-aws-sdk": "npm:^0.37.1"
|
||||||
"@opentelemetry/instrumentation-express": "npm:^0.34.0"
|
"@opentelemetry/instrumentation-express": "npm:^0.34.0"
|
||||||
|
"@opentelemetry/instrumentation-grpc": "npm:^0.46.0"
|
||||||
"@opentelemetry/instrumentation-http": "npm:^0.46.0"
|
"@opentelemetry/instrumentation-http": "npm:^0.46.0"
|
||||||
"@opentelemetry/instrumentation-ioredis": "npm:^0.36.0"
|
"@opentelemetry/instrumentation-ioredis": "npm:^0.36.0"
|
||||||
"@opentelemetry/instrumentation-winston": "npm:^0.33.0"
|
"@opentelemetry/instrumentation-winston": "npm:^0.33.0"
|
||||||
|
|
Loading…
Reference in a new issue