@eqxjs/nest-opentelemetry 1.1.2 → 1.2.0
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/dist/extend/common/generic.common.d.ts +1 -1
- package/dist/extend/common/m1.common.d.ts +1 -1
- package/dist/extend/common/m2.common.d.ts +1 -1
- package/dist/extend/common/m3.common.d.ts +1 -1
- package/dist/extend/kafka.span.d.ts +1 -1
- package/dist/extend/kafka.span.js +17 -0
- package/dist/extend/kafka.span.js.map +1 -1
- package/dist/extend/socket-io.span.d.ts +2 -1
- package/dist/extend/socket-io.span.js +42 -4
- package/dist/extend/socket-io.span.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/register.js +46 -60
- package/dist/register.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils.d.ts +78 -78
- package/dist/utils.js +59 -51
- package/dist/utils.js.map +1 -1
- package/package.json +51 -50
package/dist/utils.d.ts
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { Instrumentation } from
|
|
2
|
-
import { AmqplibInstrumentation } from
|
|
3
|
-
import { AwsLambdaInstrumentation } from
|
|
4
|
-
import { AwsInstrumentation } from
|
|
5
|
-
import { BunyanInstrumentation } from
|
|
6
|
-
import { CassandraDriverInstrumentation } from
|
|
7
|
-
import { ConnectInstrumentation } from
|
|
8
|
-
import { CucumberInstrumentation } from
|
|
9
|
-
import { DataloaderInstrumentation } from
|
|
10
|
-
import { DnsInstrumentation } from
|
|
11
|
-
import { ExpressInstrumentation } from
|
|
12
|
-
import { FastifyInstrumentation } from
|
|
13
|
-
import { FsInstrumentation } from
|
|
14
|
-
import { GenericPoolInstrumentation } from
|
|
15
|
-
import { GraphQLInstrumentation } from
|
|
16
|
-
import { GrpcInstrumentation } from
|
|
17
|
-
import { HapiInstrumentation } from
|
|
18
|
-
import { HttpInstrumentation } from
|
|
19
|
-
import { IORedisInstrumentation } from
|
|
20
|
-
import { KnexInstrumentation } from
|
|
21
|
-
import { KoaInstrumentation } from
|
|
22
|
-
import { LruMemoizerInstrumentation } from
|
|
23
|
-
import { MemcachedInstrumentation } from
|
|
24
|
-
import { MongoDBInstrumentation } from
|
|
25
|
-
import { MongooseInstrumentation } from
|
|
26
|
-
import { MySQL2Instrumentation } from
|
|
27
|
-
import { MySQLInstrumentation } from
|
|
28
|
-
import { NestInstrumentation } from
|
|
29
|
-
import { NetInstrumentation } from
|
|
30
|
-
import { PgInstrumentation } from
|
|
31
|
-
import { PinoInstrumentation } from
|
|
32
|
-
import { RedisInstrumentation as RedisInstrumentationV2 } from
|
|
33
|
-
import { RedisInstrumentation as RedisInstrumentationV4 } from
|
|
34
|
-
import { RestifyInstrumentation } from
|
|
35
|
-
import { RouterInstrumentation } from
|
|
36
|
-
import { SocketIoInstrumentation } from
|
|
37
|
-
import { TediousInstrumentation } from
|
|
38
|
-
import { WinstonInstrumentation } from
|
|
39
|
-
import { KafkaJsInstrumentation } from
|
|
40
|
-
import { Detector, DetectorSync } from
|
|
1
|
+
import { Instrumentation } from "@opentelemetry/instrumentation";
|
|
2
|
+
import { AmqplibInstrumentation } from "@opentelemetry/instrumentation-amqplib";
|
|
3
|
+
import { AwsLambdaInstrumentation } from "@opentelemetry/instrumentation-aws-lambda";
|
|
4
|
+
import { AwsInstrumentation } from "@opentelemetry/instrumentation-aws-sdk";
|
|
5
|
+
import { BunyanInstrumentation } from "@opentelemetry/instrumentation-bunyan";
|
|
6
|
+
import { CassandraDriverInstrumentation } from "@opentelemetry/instrumentation-cassandra-driver";
|
|
7
|
+
import { ConnectInstrumentation } from "@opentelemetry/instrumentation-connect";
|
|
8
|
+
import { CucumberInstrumentation } from "@opentelemetry/instrumentation-cucumber";
|
|
9
|
+
import { DataloaderInstrumentation } from "@opentelemetry/instrumentation-dataloader";
|
|
10
|
+
import { DnsInstrumentation } from "@opentelemetry/instrumentation-dns";
|
|
11
|
+
import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";
|
|
12
|
+
import { FastifyInstrumentation } from "@opentelemetry/instrumentation-fastify";
|
|
13
|
+
import { FsInstrumentation } from "@opentelemetry/instrumentation-fs";
|
|
14
|
+
import { GenericPoolInstrumentation } from "@opentelemetry/instrumentation-generic-pool";
|
|
15
|
+
import { GraphQLInstrumentation } from "@opentelemetry/instrumentation-graphql";
|
|
16
|
+
import { GrpcInstrumentation } from "@opentelemetry/instrumentation-grpc";
|
|
17
|
+
import { HapiInstrumentation } from "@opentelemetry/instrumentation-hapi";
|
|
18
|
+
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
|
|
19
|
+
import { IORedisInstrumentation } from "@opentelemetry/instrumentation-ioredis";
|
|
20
|
+
import { KnexInstrumentation } from "@opentelemetry/instrumentation-knex";
|
|
21
|
+
import { KoaInstrumentation } from "@opentelemetry/instrumentation-koa";
|
|
22
|
+
import { LruMemoizerInstrumentation } from "@opentelemetry/instrumentation-lru-memoizer";
|
|
23
|
+
import { MemcachedInstrumentation } from "@opentelemetry/instrumentation-memcached";
|
|
24
|
+
import { MongoDBInstrumentation } from "@opentelemetry/instrumentation-mongodb";
|
|
25
|
+
import { MongooseInstrumentation } from "@opentelemetry/instrumentation-mongoose";
|
|
26
|
+
import { MySQL2Instrumentation } from "@opentelemetry/instrumentation-mysql2";
|
|
27
|
+
import { MySQLInstrumentation } from "@opentelemetry/instrumentation-mysql";
|
|
28
|
+
import { NestInstrumentation } from "@opentelemetry/instrumentation-nestjs-core";
|
|
29
|
+
import { NetInstrumentation } from "@opentelemetry/instrumentation-net";
|
|
30
|
+
import { PgInstrumentation } from "@opentelemetry/instrumentation-pg";
|
|
31
|
+
import { PinoInstrumentation } from "@opentelemetry/instrumentation-pino";
|
|
32
|
+
import { RedisInstrumentation as RedisInstrumentationV2 } from "@opentelemetry/instrumentation-redis";
|
|
33
|
+
import { RedisInstrumentation as RedisInstrumentationV4 } from "@opentelemetry/instrumentation-redis-4";
|
|
34
|
+
import { RestifyInstrumentation } from "@opentelemetry/instrumentation-restify";
|
|
35
|
+
import { RouterInstrumentation } from "@opentelemetry/instrumentation-router";
|
|
36
|
+
import { SocketIoInstrumentation } from "@opentelemetry/instrumentation-socket.io";
|
|
37
|
+
import { TediousInstrumentation } from "@opentelemetry/instrumentation-tedious";
|
|
38
|
+
import { WinstonInstrumentation } from "@opentelemetry/instrumentation-winston";
|
|
39
|
+
import { KafkaJsInstrumentation } from "opentelemetry-instrumentation-kafkajs";
|
|
40
|
+
import { Detector, DetectorSync } from "@opentelemetry/resources";
|
|
41
41
|
declare const InstrumentationMap: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
42
|
+
"@opentelemetry/instrumentation-amqplib": typeof AmqplibInstrumentation;
|
|
43
|
+
"@opentelemetry/instrumentation-aws-lambda": typeof AwsLambdaInstrumentation;
|
|
44
|
+
"@opentelemetry/instrumentation-aws-sdk": typeof AwsInstrumentation;
|
|
45
|
+
"@opentelemetry/instrumentation-bunyan": typeof BunyanInstrumentation;
|
|
46
|
+
"@opentelemetry/instrumentation-cassandra-driver": typeof CassandraDriverInstrumentation;
|
|
47
|
+
"@opentelemetry/instrumentation-connect": typeof ConnectInstrumentation;
|
|
48
|
+
"@opentelemetry/instrumentation-cucumber": typeof CucumberInstrumentation;
|
|
49
|
+
"@opentelemetry/instrumentation-dataloader": typeof DataloaderInstrumentation;
|
|
50
|
+
"@opentelemetry/instrumentation-dns": typeof DnsInstrumentation;
|
|
51
|
+
"@opentelemetry/instrumentation-express": typeof ExpressInstrumentation;
|
|
52
|
+
"@opentelemetry/instrumentation-fastify": typeof FastifyInstrumentation;
|
|
53
|
+
"@opentelemetry/instrumentation-fs": typeof FsInstrumentation;
|
|
54
|
+
"@opentelemetry/instrumentation-generic-pool": typeof GenericPoolInstrumentation;
|
|
55
|
+
"@opentelemetry/instrumentation-graphql": typeof GraphQLInstrumentation;
|
|
56
|
+
"@opentelemetry/instrumentation-grpc": typeof GrpcInstrumentation;
|
|
57
|
+
"@opentelemetry/instrumentation-hapi": typeof HapiInstrumentation;
|
|
58
|
+
"@opentelemetry/instrumentation-http": typeof HttpInstrumentation;
|
|
59
|
+
"@opentelemetry/instrumentation-ioredis": typeof IORedisInstrumentation;
|
|
60
|
+
"@opentelemetry/instrumentation-knex": typeof KnexInstrumentation;
|
|
61
|
+
"@opentelemetry/instrumentation-koa": typeof KoaInstrumentation;
|
|
62
|
+
"@opentelemetry/instrumentation-lru-memoizer": typeof LruMemoizerInstrumentation;
|
|
63
|
+
"@opentelemetry/instrumentation-memcached": typeof MemcachedInstrumentation;
|
|
64
|
+
"@opentelemetry/instrumentation-mongodb": typeof MongoDBInstrumentation;
|
|
65
|
+
"@opentelemetry/instrumentation-mongoose": typeof MongooseInstrumentation;
|
|
66
|
+
"@opentelemetry/instrumentation-mysql2": typeof MySQL2Instrumentation;
|
|
67
|
+
"@opentelemetry/instrumentation-mysql": typeof MySQLInstrumentation;
|
|
68
|
+
"@opentelemetry/instrumentation-nestjs-core": typeof NestInstrumentation;
|
|
69
|
+
"@opentelemetry/instrumentation-net": typeof NetInstrumentation;
|
|
70
|
+
"@opentelemetry/instrumentation-pg": typeof PgInstrumentation;
|
|
71
|
+
"@opentelemetry/instrumentation-pino": typeof PinoInstrumentation;
|
|
72
|
+
"@opentelemetry/instrumentation-redis": typeof RedisInstrumentationV2;
|
|
73
|
+
"@opentelemetry/instrumentation-redis-4": typeof RedisInstrumentationV4;
|
|
74
|
+
"@opentelemetry/instrumentation-restify": typeof RestifyInstrumentation;
|
|
75
|
+
"@opentelemetry/instrumentation-router": typeof RouterInstrumentation;
|
|
76
|
+
"@opentelemetry/instrumentation-socket.io": typeof SocketIoInstrumentation;
|
|
77
|
+
"@opentelemetry/instrumentation-tedious": typeof TediousInstrumentation;
|
|
78
|
+
"@opentelemetry/instrumentation-winston": typeof WinstonInstrumentation;
|
|
79
|
+
"@opentelemetry/instrumentation-kafkajs": typeof KafkaJsInstrumentation;
|
|
80
80
|
};
|
|
81
81
|
type ConfigArg<T> = T extends new (...args: infer U) => unknown ? U[0] : never;
|
|
82
82
|
export type InstrumentationConfigMap = {
|
package/dist/utils.js
CHANGED
|
@@ -60,53 +60,56 @@ const resource_detector_aws_1 = require("@opentelemetry/resource-detector-aws");
|
|
|
60
60
|
const resource_detector_container_1 = require("@opentelemetry/resource-detector-container");
|
|
61
61
|
const resource_detector_gcp_1 = require("@opentelemetry/resource-detector-gcp");
|
|
62
62
|
const resources_1 = require("@opentelemetry/resources");
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
63
|
+
const resource_detector_azure_1 = require("@opentelemetry/resource-detector-azure");
|
|
64
|
+
const RESOURCE_DETECTOR_CONTAINER = "container";
|
|
65
|
+
const RESOURCE_DETECTOR_ENVIRONMENT = "env";
|
|
66
|
+
const RESOURCE_DETECTOR_HOST = "host";
|
|
67
|
+
const RESOURCE_DETECTOR_OS = "os";
|
|
68
|
+
const RESOURCE_DETECTOR_SERVICE_INSTANCE_ID = "serviceinstance";
|
|
69
|
+
const RESOURCE_DETECTOR_PROCESS = "process";
|
|
70
|
+
const RESOURCE_DETECTOR_ALIBABA = "alibaba";
|
|
71
|
+
const RESOURCE_DETECTOR_AWS = "aws";
|
|
72
|
+
const RESOURCE_DETECTOR_AZURE = "azure";
|
|
73
|
+
const RESOURCE_DETECTOR_GCP = "gcp";
|
|
71
74
|
const InstrumentationMap = {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
75
|
+
"@opentelemetry/instrumentation-amqplib": instrumentation_amqplib_1.AmqplibInstrumentation,
|
|
76
|
+
"@opentelemetry/instrumentation-aws-lambda": instrumentation_aws_lambda_1.AwsLambdaInstrumentation,
|
|
77
|
+
"@opentelemetry/instrumentation-aws-sdk": instrumentation_aws_sdk_1.AwsInstrumentation,
|
|
78
|
+
"@opentelemetry/instrumentation-bunyan": instrumentation_bunyan_1.BunyanInstrumentation,
|
|
79
|
+
"@opentelemetry/instrumentation-cassandra-driver": instrumentation_cassandra_driver_1.CassandraDriverInstrumentation,
|
|
80
|
+
"@opentelemetry/instrumentation-connect": instrumentation_connect_1.ConnectInstrumentation,
|
|
81
|
+
"@opentelemetry/instrumentation-cucumber": instrumentation_cucumber_1.CucumberInstrumentation,
|
|
82
|
+
"@opentelemetry/instrumentation-dataloader": instrumentation_dataloader_1.DataloaderInstrumentation,
|
|
83
|
+
"@opentelemetry/instrumentation-dns": instrumentation_dns_1.DnsInstrumentation,
|
|
84
|
+
"@opentelemetry/instrumentation-express": instrumentation_express_1.ExpressInstrumentation,
|
|
85
|
+
"@opentelemetry/instrumentation-fastify": instrumentation_fastify_1.FastifyInstrumentation,
|
|
86
|
+
"@opentelemetry/instrumentation-fs": instrumentation_fs_1.FsInstrumentation,
|
|
87
|
+
"@opentelemetry/instrumentation-generic-pool": instrumentation_generic_pool_1.GenericPoolInstrumentation,
|
|
88
|
+
"@opentelemetry/instrumentation-graphql": instrumentation_graphql_1.GraphQLInstrumentation,
|
|
89
|
+
"@opentelemetry/instrumentation-grpc": instrumentation_grpc_1.GrpcInstrumentation,
|
|
90
|
+
"@opentelemetry/instrumentation-hapi": instrumentation_hapi_1.HapiInstrumentation,
|
|
91
|
+
"@opentelemetry/instrumentation-http": instrumentation_http_1.HttpInstrumentation,
|
|
92
|
+
"@opentelemetry/instrumentation-ioredis": instrumentation_ioredis_1.IORedisInstrumentation,
|
|
93
|
+
"@opentelemetry/instrumentation-knex": instrumentation_knex_1.KnexInstrumentation,
|
|
94
|
+
"@opentelemetry/instrumentation-koa": instrumentation_koa_1.KoaInstrumentation,
|
|
95
|
+
"@opentelemetry/instrumentation-lru-memoizer": instrumentation_lru_memoizer_1.LruMemoizerInstrumentation,
|
|
96
|
+
"@opentelemetry/instrumentation-memcached": instrumentation_memcached_1.MemcachedInstrumentation,
|
|
97
|
+
"@opentelemetry/instrumentation-mongodb": instrumentation_mongodb_1.MongoDBInstrumentation,
|
|
98
|
+
"@opentelemetry/instrumentation-mongoose": instrumentation_mongoose_1.MongooseInstrumentation,
|
|
99
|
+
"@opentelemetry/instrumentation-mysql2": instrumentation_mysql2_1.MySQL2Instrumentation,
|
|
100
|
+
"@opentelemetry/instrumentation-mysql": instrumentation_mysql_1.MySQLInstrumentation,
|
|
101
|
+
"@opentelemetry/instrumentation-nestjs-core": instrumentation_nestjs_core_1.NestInstrumentation,
|
|
102
|
+
"@opentelemetry/instrumentation-net": instrumentation_net_1.NetInstrumentation,
|
|
103
|
+
"@opentelemetry/instrumentation-pg": instrumentation_pg_1.PgInstrumentation,
|
|
104
|
+
"@opentelemetry/instrumentation-pino": instrumentation_pino_1.PinoInstrumentation,
|
|
105
|
+
"@opentelemetry/instrumentation-redis": instrumentation_redis_1.RedisInstrumentation,
|
|
106
|
+
"@opentelemetry/instrumentation-redis-4": instrumentation_redis_4_1.RedisInstrumentation,
|
|
107
|
+
"@opentelemetry/instrumentation-restify": instrumentation_restify_1.RestifyInstrumentation,
|
|
108
|
+
"@opentelemetry/instrumentation-router": instrumentation_router_1.RouterInstrumentation,
|
|
109
|
+
"@opentelemetry/instrumentation-socket.io": instrumentation_socket_io_1.SocketIoInstrumentation,
|
|
110
|
+
"@opentelemetry/instrumentation-tedious": instrumentation_tedious_1.TediousInstrumentation,
|
|
111
|
+
"@opentelemetry/instrumentation-winston": instrumentation_winston_1.WinstonInstrumentation,
|
|
112
|
+
"@opentelemetry/instrumentation-kafkajs": opentelemetry_instrumentation_kafkajs_1.KafkaJsInstrumentation,
|
|
110
113
|
};
|
|
111
114
|
function getNodeAutoInstrumentations(inputConfigs = {}) {
|
|
112
115
|
var _a;
|
|
@@ -147,7 +150,7 @@ function getEnabledInstrumentationsFromEnv() {
|
|
|
147
150
|
if (!process.env.OTEL_NODE_ENABLED_INSTRUMENTATIONS) {
|
|
148
151
|
return Object.keys(InstrumentationMap);
|
|
149
152
|
}
|
|
150
|
-
const instrumentationsFromEnv = process.env.OTEL_NODE_ENABLED_INSTRUMENTATIONS.split(
|
|
153
|
+
const instrumentationsFromEnv = process.env.OTEL_NODE_ENABLED_INSTRUMENTATIONS.split(",").map((instrumentationPkgSuffix) => `@opentelemetry/instrumentation-${instrumentationPkgSuffix.trim()}`);
|
|
151
154
|
checkManuallyProvidedInstrumentationNames(instrumentationsFromEnv);
|
|
152
155
|
return instrumentationsFromEnv;
|
|
153
156
|
}
|
|
@@ -158,6 +161,7 @@ function getResourceDetectorsFromEnv() {
|
|
|
158
161
|
[RESOURCE_DETECTOR_ENVIRONMENT, resources_1.envDetectorSync],
|
|
159
162
|
[RESOURCE_DETECTOR_HOST, resources_1.hostDetectorSync],
|
|
160
163
|
[RESOURCE_DETECTOR_OS, resources_1.osDetectorSync],
|
|
164
|
+
[RESOURCE_DETECTOR_SERVICE_INSTANCE_ID, resources_1.serviceInstanceIdDetectorSync],
|
|
161
165
|
[RESOURCE_DETECTOR_PROCESS, resources_1.processDetectorSync],
|
|
162
166
|
[RESOURCE_DETECTOR_ALIBABA, resource_detector_alibaba_cloud_1.alibabaCloudEcsDetector],
|
|
163
167
|
[RESOURCE_DETECTOR_GCP, resource_detector_gcp_1.gcpDetector],
|
|
@@ -171,15 +175,19 @@ function getResourceDetectorsFromEnv() {
|
|
|
171
175
|
resource_detector_aws_1.awsLambdaDetector,
|
|
172
176
|
],
|
|
173
177
|
],
|
|
178
|
+
[
|
|
179
|
+
RESOURCE_DETECTOR_AZURE,
|
|
180
|
+
[resource_detector_azure_1.azureAppServiceDetector, resource_detector_azure_1.azureFunctionsDetector, resource_detector_azure_1.azureVmDetector],
|
|
181
|
+
],
|
|
174
182
|
]);
|
|
175
|
-
const resourceDetectorsFromEnv = (_b = (_a = process.env.OTEL_NODE_RESOURCE_DETECTORS) === null || _a === void 0 ? void 0 : _a.split(
|
|
176
|
-
if (resourceDetectorsFromEnv.includes(
|
|
183
|
+
const resourceDetectorsFromEnv = (_b = (_a = process.env.OTEL_NODE_RESOURCE_DETECTORS) === null || _a === void 0 ? void 0 : _a.split(",")) !== null && _b !== void 0 ? _b : ["all"];
|
|
184
|
+
if (resourceDetectorsFromEnv.includes("all")) {
|
|
177
185
|
return [...resourceDetectors.values()].flat();
|
|
178
186
|
}
|
|
179
|
-
if (resourceDetectorsFromEnv.includes(
|
|
187
|
+
if (resourceDetectorsFromEnv.includes("none")) {
|
|
180
188
|
return [];
|
|
181
189
|
}
|
|
182
|
-
return resourceDetectorsFromEnv.flatMap(detector => {
|
|
190
|
+
return resourceDetectorsFromEnv.flatMap((detector) => {
|
|
183
191
|
const resourceDetector = resourceDetectors.get(detector);
|
|
184
192
|
if (!resourceDetector) {
|
|
185
193
|
api_1.diag.error(`Invalid resource detector "${detector}" specified in the environment variable OTEL_NODE_RESOURCE_DETECTORS`);
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAA0C;AAG1C,oFAAgF;AAChF,0FAAqF;AACrF,oFAA4E;AAC5E,kFAA8E;AAC9E,sGAAiG;AACjG,oFAAgF;AAChF,sFAAkF;AAClF,0FAAsF;AACtF,4EAAwE;AACxE,oFAAgF;AAChF,oFAAgF;AAChF,0EAAsE;AACtE,8FAAyF;AACzF,oFAAgF;AAChF,8EAA0E;AAC1E,8EAA0E;AAC1E,8EAA0E;AAC1E,oFAAgF;AAChF,8EAA0E;AAC1E,4EAAwE;AACxE,8FAAyF;AACzF,wFAAoF;AACpF,oFAAgF;AAChF,sFAAkF;AAClF,kFAA8E;AAC9E,gFAA4E;AAC5E,4FAAiF;AACjF,4EAAwE;AACxE,0EAAsE;AACtE,8EAA0E;AAC1E,gFAAsG;AACtG,oFAAwG;AACxG,oFAAgF;AAChF,kFAA8E;AAC9E,wFAAmF;AACnF,oFAAgF;AAChF,oFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAA0C;AAG1C,oFAAgF;AAChF,0FAAqF;AACrF,oFAA4E;AAC5E,kFAA8E;AAC9E,sGAAiG;AACjG,oFAAgF;AAChF,sFAAkF;AAClF,0FAAsF;AACtF,4EAAwE;AACxE,oFAAgF;AAChF,oFAAgF;AAChF,0EAAsE;AACtE,8FAAyF;AACzF,oFAAgF;AAChF,8EAA0E;AAC1E,8EAA0E;AAC1E,8EAA0E;AAC1E,oFAAgF;AAChF,8EAA0E;AAC1E,4EAAwE;AACxE,8FAAyF;AACzF,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|
2
2
|
"name": "@eqxjs/nest-opentelemetry",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Opentelemetry Service for nestjs",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,58 +12,59 @@
|
|
|
12
12
|
"author": "Atit Plangson",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.
|
|
16
|
-
"@opentelemetry/exporter-logs-otlp-proto": "^0.
|
|
17
|
-
"@opentelemetry/exporter-metrics-otlp-proto": "^0.
|
|
18
|
-
"@opentelemetry/instrumentation": "^0.
|
|
19
|
-
"@opentelemetry/instrumentation-amqplib": "^0.
|
|
20
|
-
"@opentelemetry/instrumentation-aws-lambda": "^0.
|
|
21
|
-
"@opentelemetry/instrumentation-aws-sdk": "^0.
|
|
22
|
-
"@opentelemetry/instrumentation-bunyan": "^0.
|
|
23
|
-
"@opentelemetry/instrumentation-cassandra-driver": "^0.
|
|
24
|
-
"@opentelemetry/instrumentation-connect": "^0.
|
|
25
|
-
"@opentelemetry/instrumentation-cucumber": "^0.
|
|
26
|
-
"@opentelemetry/instrumentation-dataloader": "^0.
|
|
27
|
-
"@opentelemetry/instrumentation-dns": "^0.
|
|
28
|
-
"@opentelemetry/instrumentation-express": "^0.
|
|
29
|
-
"@opentelemetry/instrumentation-fastify": "^0.
|
|
30
|
-
"@opentelemetry/instrumentation-fs": "^0.
|
|
31
|
-
"@opentelemetry/instrumentation-generic-pool": "^0.
|
|
32
|
-
"@opentelemetry/instrumentation-graphql": "^0.
|
|
33
|
-
"@opentelemetry/instrumentation-grpc": "^0.
|
|
34
|
-
"@opentelemetry/instrumentation-hapi": "^0.
|
|
35
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
36
|
-
"@opentelemetry/instrumentation-ioredis": "^0.
|
|
37
|
-
"@opentelemetry/instrumentation-knex": "^0.
|
|
38
|
-
"@opentelemetry/instrumentation-koa": "^0.
|
|
39
|
-
"@opentelemetry/instrumentation-lru-memoizer": "^0.
|
|
40
|
-
"@opentelemetry/instrumentation-memcached": "^0.
|
|
41
|
-
"@opentelemetry/instrumentation-mongodb": "^0.
|
|
42
|
-
"@opentelemetry/instrumentation-mongoose": "^0.
|
|
43
|
-
"@opentelemetry/instrumentation-mysql": "^0.
|
|
44
|
-
"@opentelemetry/instrumentation-mysql2": "^0.
|
|
45
|
-
"@opentelemetry/instrumentation-nestjs-core": "^0.
|
|
46
|
-
"@opentelemetry/instrumentation-net": "^0.
|
|
47
|
-
"@opentelemetry/instrumentation-pg": "^0.
|
|
48
|
-
"@opentelemetry/instrumentation-pino": "^0.
|
|
49
|
-
"@opentelemetry/instrumentation-redis": "^0.
|
|
50
|
-
"@opentelemetry/instrumentation-redis-4": "^0.
|
|
51
|
-
"@opentelemetry/instrumentation-restify": "^0.
|
|
52
|
-
"@opentelemetry/instrumentation-router": "^0.
|
|
53
|
-
"@opentelemetry/instrumentation-socket.io": "^0.
|
|
54
|
-
"@opentelemetry/instrumentation-tedious": "^0.
|
|
55
|
-
"@opentelemetry/instrumentation-winston": "^0.
|
|
56
|
-
"@opentelemetry/resource-detector-alibaba-cloud": "^0.28.
|
|
57
|
-
"@opentelemetry/resource-detector-aws": "^1.
|
|
58
|
-
"@opentelemetry/resource-detector-
|
|
59
|
-
"@opentelemetry/resource-detector-
|
|
60
|
-
"@opentelemetry/
|
|
61
|
-
"@opentelemetry/
|
|
62
|
-
"opentelemetry-
|
|
15
|
+
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.24",
|
|
16
|
+
"@opentelemetry/exporter-logs-otlp-proto": "^0.52.0",
|
|
17
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.52.0",
|
|
18
|
+
"@opentelemetry/instrumentation": "^0.52.0",
|
|
19
|
+
"@opentelemetry/instrumentation-amqplib": "^0.38.0",
|
|
20
|
+
"@opentelemetry/instrumentation-aws-lambda": "^0.42.0",
|
|
21
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.42.0",
|
|
22
|
+
"@opentelemetry/instrumentation-bunyan": "^0.39.0",
|
|
23
|
+
"@opentelemetry/instrumentation-cassandra-driver": "^0.39.0",
|
|
24
|
+
"@opentelemetry/instrumentation-connect": "^0.37.0",
|
|
25
|
+
"@opentelemetry/instrumentation-cucumber": "^0.7.0",
|
|
26
|
+
"@opentelemetry/instrumentation-dataloader": "^0.10.0",
|
|
27
|
+
"@opentelemetry/instrumentation-dns": "^0.37.0",
|
|
28
|
+
"@opentelemetry/instrumentation-express": "^0.40.1",
|
|
29
|
+
"@opentelemetry/instrumentation-fastify": "^0.37.0",
|
|
30
|
+
"@opentelemetry/instrumentation-fs": "^0.13.0",
|
|
31
|
+
"@opentelemetry/instrumentation-generic-pool": "^0.37.0",
|
|
32
|
+
"@opentelemetry/instrumentation-graphql": "^0.41.0",
|
|
33
|
+
"@opentelemetry/instrumentation-grpc": "^0.52.0",
|
|
34
|
+
"@opentelemetry/instrumentation-hapi": "^0.39.0",
|
|
35
|
+
"@opentelemetry/instrumentation-http": "^0.52.0",
|
|
36
|
+
"@opentelemetry/instrumentation-ioredis": "^0.41.0",
|
|
37
|
+
"@opentelemetry/instrumentation-knex": "^0.37.0",
|
|
38
|
+
"@opentelemetry/instrumentation-koa": "^0.41.0",
|
|
39
|
+
"@opentelemetry/instrumentation-lru-memoizer": "^0.38.0",
|
|
40
|
+
"@opentelemetry/instrumentation-memcached": "^0.37.0",
|
|
41
|
+
"@opentelemetry/instrumentation-mongodb": "^0.45.0",
|
|
42
|
+
"@opentelemetry/instrumentation-mongoose": "^0.39.0",
|
|
43
|
+
"@opentelemetry/instrumentation-mysql": "^0.39.0",
|
|
44
|
+
"@opentelemetry/instrumentation-mysql2": "^0.39.0",
|
|
45
|
+
"@opentelemetry/instrumentation-nestjs-core": "^0.38.0",
|
|
46
|
+
"@opentelemetry/instrumentation-net": "^0.37.0",
|
|
47
|
+
"@opentelemetry/instrumentation-pg": "^0.42.0",
|
|
48
|
+
"@opentelemetry/instrumentation-pino": "^0.40.0",
|
|
49
|
+
"@opentelemetry/instrumentation-redis": "^0.40.0",
|
|
50
|
+
"@opentelemetry/instrumentation-redis-4": "^0.40.0",
|
|
51
|
+
"@opentelemetry/instrumentation-restify": "^0.39.0",
|
|
52
|
+
"@opentelemetry/instrumentation-router": "^0.38.0",
|
|
53
|
+
"@opentelemetry/instrumentation-socket.io": "^0.40.0",
|
|
54
|
+
"@opentelemetry/instrumentation-tedious": "^0.11.0",
|
|
55
|
+
"@opentelemetry/instrumentation-winston": "^0.38.0",
|
|
56
|
+
"@opentelemetry/resource-detector-alibaba-cloud": "^0.28.10",
|
|
57
|
+
"@opentelemetry/resource-detector-aws": "^1.5.1",
|
|
58
|
+
"@opentelemetry/resource-detector-azure": "^0.2.9",
|
|
59
|
+
"@opentelemetry/resource-detector-container": "^0.3.11",
|
|
60
|
+
"@opentelemetry/resource-detector-gcp": "^0.29.10",
|
|
61
|
+
"@opentelemetry/resources": "^1.25.0",
|
|
62
|
+
"@opentelemetry/sdk-node": "^0.52.0",
|
|
63
|
+
"opentelemetry-instrumentation-kafkajs": "^0.41.0"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@types/node": "^20.11.30",
|
|
66
67
|
"prettier": "^3.2.5",
|
|
67
|
-
"typescript": "^5.4.
|
|
68
|
+
"typescript": "^5.4.5"
|
|
68
69
|
}
|
|
69
70
|
}
|