@saidsef/tracing-node 3.0.5 → 3.1.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/README.md +1 -1
- package/deployment/base/job.yml +1 -1
- package/libs/index.mjs +13 -9
- package/package.json +8 -14
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ setupTracing({hostname: 'hostname', serviceName: 'service_name', url: 'endpoint'
|
|
|
56
56
|
| Name | Type | Description|
|
|
57
57
|
|----- | ---- | ------------- |
|
|
58
58
|
| hostname | string | container / pod hostname |
|
|
59
|
-
|
|
|
59
|
+
| serviceName | string | service / application name |
|
|
60
60
|
| url | string | tracing endpoint i.e. `<schema>://<host>:<port>` |
|
|
61
61
|
|
|
62
62
|
## Source
|
package/deployment/base/job.yml
CHANGED
package/libs/index.mjs
CHANGED
|
@@ -16,20 +16,22 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import {CompositePropagator, W3CBaggagePropagator, W3CTraceContextPropagator} from '@opentelemetry/core';
|
|
20
|
-
import {NodeTracerProvider} from '@opentelemetry/sdk-trace-node';
|
|
21
|
-
import {BatchSpanProcessor} from '@opentelemetry/sdk-trace-base';
|
|
22
|
-
import {registerInstrumentations} from '@opentelemetry/instrumentation';
|
|
23
|
-
import {diag, DiagConsoleLogger, DiagLogLevel} from '@opentelemetry/api';
|
|
24
19
|
import {AwsInstrumentation} from '@opentelemetry/instrumentation-aws-sdk';
|
|
25
|
-
import {OTLPTraceExporter} from '@opentelemetry/exporter-trace-otlp-grpc';
|
|
26
20
|
import {B3Propagator, B3InjectEncoding} from '@opentelemetry/propagator-b3';
|
|
21
|
+
import {BatchSpanProcessor} from '@opentelemetry/sdk-trace-base';
|
|
22
|
+
import {CompositePropagator, W3CBaggagePropagator, W3CTraceContextPropagator} from '@opentelemetry/core';
|
|
23
|
+
import {ConnectInstrumentation} from '@opentelemetry/instrumentation-connect';
|
|
24
|
+
import {diag, DiagConsoleLogger, DiagLogLevel} from '@opentelemetry/api';
|
|
25
|
+
import {DnsInstrumentation} from '@opentelemetry/instrumentation-dns';
|
|
26
|
+
import {ExpressInstrumentation} from '@opentelemetry/instrumentation-express';
|
|
27
27
|
import {HttpInstrumentation} from '@opentelemetry/instrumentation-http';
|
|
28
|
+
import {NodeTracerProvider} from '@opentelemetry/sdk-trace-node';
|
|
29
|
+
import {OTLPTraceExporter} from '@opentelemetry/exporter-trace-otlp-grpc';
|
|
30
|
+
import {PinoInstrumentation} from '@opentelemetry/instrumentation-pino';
|
|
31
|
+
import {RedisInstrumentation} from '@opentelemetry/instrumentation-redis';
|
|
32
|
+
import {registerInstrumentations} from '@opentelemetry/instrumentation';
|
|
28
33
|
import {Resource} from '@opentelemetry/resources';
|
|
29
34
|
import {SemanticResourceAttributes} from '@opentelemetry/semantic-conventions';
|
|
30
|
-
import {ExpressInstrumentation} from '@opentelemetry/instrumentation-express';
|
|
31
|
-
import {PinoInstrumentation} from '@opentelemetry/instrumentation-pino';
|
|
32
|
-
import {DnsInstrumentation} from '@opentelemetry/instrumentation-dns';
|
|
33
35
|
|
|
34
36
|
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);
|
|
35
37
|
|
|
@@ -125,10 +127,12 @@ export function setupTracing(options = {}) {
|
|
|
125
127
|
requireParentforIncomingSpans: false,
|
|
126
128
|
ignoreIncomingRequestHook,
|
|
127
129
|
}),
|
|
130
|
+
new ConnectInstrumentation(),
|
|
128
131
|
new AwsInstrumentation({
|
|
129
132
|
sqsExtractContextPropagationFromPayload: true,
|
|
130
133
|
}),
|
|
131
134
|
new DnsInstrumentation(),
|
|
135
|
+
new RedisInstrumentation(),
|
|
132
136
|
],
|
|
133
137
|
});
|
|
134
138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saidsef/tracing-node",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
|
|
5
5
|
"main": "libs/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -15,16 +15,8 @@
|
|
|
15
15
|
"url": "git+https://github.com/saidsef/tracing-node.git"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"instrumentation-http",
|
|
21
|
-
"instrumentation-pino",
|
|
22
|
-
"instrumentation",
|
|
23
|
-
"opentelemetry",
|
|
24
|
-
"resources",
|
|
25
|
-
"sdk-trace-base",
|
|
26
|
-
"sdk-trace-node",
|
|
27
|
-
"semantic-conventions",
|
|
18
|
+
"opentracing",
|
|
19
|
+
"apm",
|
|
28
20
|
"trace",
|
|
29
21
|
"tracing"
|
|
30
22
|
],
|
|
@@ -34,18 +26,20 @@
|
|
|
34
26
|
"node": ">= 20"
|
|
35
27
|
},
|
|
36
28
|
"bugs": {
|
|
37
|
-
"url": "https://github.com/saidsef/tracing-
|
|
29
|
+
"url": "https://github.com/saidsef/tracing-node/issues"
|
|
38
30
|
},
|
|
39
|
-
"homepage": "https://github.com/saidsef/tracing-
|
|
31
|
+
"homepage": "https://github.com/saidsef/tracing-node#readme",
|
|
40
32
|
"dependencies": {
|
|
41
33
|
"@opentelemetry/api": "^1.9.0",
|
|
42
34
|
"@opentelemetry/exporter-trace-otlp-grpc": "^0.57.0",
|
|
43
35
|
"@opentelemetry/instrumentation": "^0.57.0",
|
|
44
36
|
"@opentelemetry/instrumentation-aws-sdk": "^0.49.0",
|
|
37
|
+
"@opentelemetry/instrumentation-connect": "^0.43.0",
|
|
45
38
|
"@opentelemetry/instrumentation-dns": "^0.43.0",
|
|
46
39
|
"@opentelemetry/instrumentation-express": "^0.47.0",
|
|
47
|
-
"@opentelemetry/instrumentation-http": "^0.57.
|
|
40
|
+
"@opentelemetry/instrumentation-http": "^0.57.2",
|
|
48
41
|
"@opentelemetry/instrumentation-pino": "^0.46.0",
|
|
42
|
+
"@opentelemetry/instrumentation-redis": "^0.46.0",
|
|
49
43
|
"@opentelemetry/propagator-b3": "^1.28.0",
|
|
50
44
|
"@opentelemetry/resources": "^1.28.0",
|
|
51
45
|
"@opentelemetry/sdk-trace-base": "^1.28.0",
|