@saidsef/tracing-node 1.10.4 → 1.11.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/deployment/base/job.yml +2 -2
- package/libs/index.mjs +2 -2
- package/package.json +2 -2
package/deployment/base/job.yml
CHANGED
|
@@ -18,7 +18,7 @@ spec:
|
|
|
18
18
|
- /bin/sh
|
|
19
19
|
args:
|
|
20
20
|
- -c
|
|
21
|
-
- "npm install && node libs/index.mjs"
|
|
21
|
+
- "npm install && node libs/index.mjs && npm run test"
|
|
22
22
|
resources:
|
|
23
23
|
limits:
|
|
24
24
|
memory: "1Gi"
|
|
@@ -31,4 +31,4 @@ spec:
|
|
|
31
31
|
gitRepo:
|
|
32
32
|
directory: "."
|
|
33
33
|
repository: "https://github.com/saidsef/tracing-node.git"
|
|
34
|
-
revision: "
|
|
34
|
+
revision: "dependabot-npm_and_yarn-opentelemetry-instrumentation-express-0.39.0"
|
package/libs/index.mjs
CHANGED
|
@@ -55,7 +55,7 @@ diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);
|
|
|
55
55
|
* be used to create and export spans for tracing various operations within
|
|
56
56
|
* the service.
|
|
57
57
|
*/
|
|
58
|
-
export
|
|
58
|
+
export function setupTracing (serviceName, appName='application', endpoint=null) {
|
|
59
59
|
const provider = new NodeTracerProvider({
|
|
60
60
|
resource: new Resource({
|
|
61
61
|
[SemanticResourceAttributes.SERVICE_NAME]: serviceName,
|
|
@@ -112,5 +112,5 @@ export async function setupTracing (serviceName, appName='application', endpoint
|
|
|
112
112
|
})});
|
|
113
113
|
|
|
114
114
|
// Return the tracer for the service
|
|
115
|
-
return
|
|
115
|
+
return provider.getTracer(serviceName);
|
|
116
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saidsef/tracing-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
|
|
5
5
|
"main": "libs/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@opentelemetry/instrumentation": "^0.51.0",
|
|
44
44
|
"@opentelemetry/instrumentation-aws-sdk": "^0.41.0",
|
|
45
45
|
"@opentelemetry/instrumentation-dns": "^0.36.0",
|
|
46
|
-
"@opentelemetry/instrumentation-express": "^0.
|
|
46
|
+
"@opentelemetry/instrumentation-express": "^0.39.0",
|
|
47
47
|
"@opentelemetry/instrumentation-http": "^0.51.0",
|
|
48
48
|
"@opentelemetry/instrumentation-pino": "^0.39.0",
|
|
49
49
|
"@opentelemetry/propagator-b3": "^1.22.0",
|