@saidsef/tracing-node 1.9.4 → 1.9.6

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/.eslintrc.yml CHANGED
@@ -8,3 +8,5 @@ parserOptions:
8
8
  ecmaVersion: latest
9
9
  sourceType: module
10
10
  rules: {}
11
+ overrides:
12
+ - files: ["*.js", "*.mjs"]
package/README.md CHANGED
@@ -23,8 +23,13 @@ npm install @saidsef/tracing-node --save
23
23
  ## Usage
24
24
 
25
25
  ```
26
- const { setupTracing } = require('@saidsef/tacing-node');
27
- setupTracing('hostname', 'application_name', 'endpoint')
26
+ const { setupTracing } = require('@saidsef/tracing-node');
27
+ setupTracing('hostname', 'application_name', 'endpoint');
28
+ ```
29
+
30
+ ```
31
+ import { setupTracing } from '@saidsef/tracing-node';
32
+ setupTracing('hostname', 'application_name', 'endpoint');
28
33
  ```
29
34
 
30
35
  ### Required Parameters are
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@saidsef/tracing-node",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
5
5
  "main": "libs/index.mjs",
6
6
  "scripts": {
7
7
  "test": "node --trace-warnings --test --report-uncaught-exception --heap-prof --cpu-prof --track-heap-objects --report-dir=test/ --diagnostic-dir=test/ --heap-prof-dir=test/ libs/index.mjs",
8
- "lint": "eslint --ext js,mjs libs",
8
+ "lint": "eslint libs -c .eslintrc.yml ",
9
9
  "rebuild": "rm -rfv node_modules/ package-lock.json && NODE_ENV=production npm install"
10
10
  },
11
11
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "author": "Said Sef <saidsef@gmail.com>",
32
32
  "license": "Apache-2.0",
33
33
  "engines": {
34
- "node": ">= 20"
34
+ "node": ">= 19"
35
35
  },
36
36
  "bugs": {
37
37
  "url": "https://github.com/saidsef/tracing-nodejs/issues"
@@ -39,13 +39,13 @@
39
39
  "homepage": "https://github.com/saidsef/tracing-nodejs#readme",
40
40
  "dependencies": {
41
41
  "@opentelemetry/api": "^1.8.0",
42
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.49.1",
43
- "@opentelemetry/instrumentation": "^0.49.1",
44
- "@opentelemetry/instrumentation-aws-sdk": "^0.39.1",
45
- "@opentelemetry/instrumentation-dns": "^0.34.0",
42
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.50.0",
43
+ "@opentelemetry/instrumentation": "^0.50.0",
44
+ "@opentelemetry/instrumentation-aws-sdk": "^0.40.0",
45
+ "@opentelemetry/instrumentation-dns": "^0.35.0",
46
46
  "@opentelemetry/instrumentation-express": "^0.36.1",
47
47
  "@opentelemetry/instrumentation-http": "^0.49.1",
48
- "@opentelemetry/instrumentation-pino": "^0.36.0",
48
+ "@opentelemetry/instrumentation-pino": "^0.37.0",
49
49
  "@opentelemetry/propagator-b3": "^1.22.0",
50
50
  "@opentelemetry/resources": "^1.21.0",
51
51
  "@opentelemetry/sdk-trace-base": "^1.22.0",
@@ -53,7 +53,7 @@
53
53
  "@opentelemetry/semantic-conventions": "^1.22.0"
54
54
  },
55
55
  "devDependencies": {
56
- "eslint": "8.57.0",
56
+ "eslint": "9.0.0",
57
57
  "jest": "^29.7.0"
58
58
  }
59
59
  }