@saidsef/tracing-node 1.9.5 → 1.9.7

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 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/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 const setupTracing = (serviceName, appName="application", endpoint=null) => {
58
+ export default function setupTracing (serviceName, appName="application", endpoint=null) {
59
59
  const provider = new NodeTracerProvider({
60
60
  resource: new Resource({
61
61
  [SemanticResourceAttributes.SERVICE_NAME]: serviceName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saidsef/tracing-node",
3
- "version": "1.9.5",
3
+ "version": "1.9.7",
4
4
  "description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
5
5
  "main": "libs/index.mjs",
6
6
  "scripts": {
@@ -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",