@saidsef/tracing-node 2.2.6 → 2.2.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
@@ -43,12 +43,12 @@ ENDPOINT
43
43
  Function args
44
44
  ```
45
45
  const { setupTracing } = require('@saidsef/tracing-node');
46
- setupTracing({hostname: 'hostname', serviceName: 'service_name', endpoint: 'endpoint'});
46
+ setupTracing({hostname: 'hostname', serviceName: 'service_name', url: 'endpoint'});
47
47
  ```
48
48
 
49
49
  ```
50
50
  import { setupTracing } from '@saidsef/tracing-node';
51
- setupTracing({hostname: 'hostname', serviceName: 'service_name', endpoint: 'endpoint'});
51
+ setupTracing({hostname: 'hostname', serviceName: 'service_name', url: 'endpoint'});
52
52
  ```
53
53
 
54
54
  ### Required Parameters are
@@ -57,7 +57,7 @@ setupTracing({hostname: 'hostname', serviceName: 'service_name', endpoint: 'endp
57
57
  |----- | ---- | ------------- |
58
58
  | hostname | string | container / pod hostname |
59
59
  | service_name | string | service / application name |
60
- | endpoint | string | tracing endpoint i.e. `<schema>://<host>:<port>` |
60
+ | url | string | tracing endpoint i.e. `<schema>://<host>:<port>` |
61
61
 
62
62
  ## Source
63
63
 
package/libs/index.mjs CHANGED
@@ -20,16 +20,16 @@ import {CompositePropagator, W3CBaggagePropagator, W3CTraceContextPropagator} fr
20
20
  import {NodeTracerProvider} from '@opentelemetry/sdk-trace-node';
21
21
  import {BatchSpanProcessor} from '@opentelemetry/sdk-trace-base';
22
22
  import {registerInstrumentations} from '@opentelemetry/instrumentation';
23
+ import {diag, DiagConsoleLogger, DiagLogLevel} from '@opentelemetry/api';
24
+ import {AwsInstrumentation} from '@opentelemetry/instrumentation-aws-sdk';
23
25
  import {OTLPTraceExporter} from '@opentelemetry/exporter-trace-otlp-grpc';
26
+ import {B3Propagator, B3InjectEncoding} from '@opentelemetry/propagator-b3';
24
27
  import {HttpInstrumentation} from '@opentelemetry/instrumentation-http';
25
- import {ExpressInstrumentation} from '@opentelemetry/instrumentation-express';
26
- import {diag, DiagConsoleLogger, DiagLogLevel} from '@opentelemetry/api';
27
28
  import {Resource} from '@opentelemetry/resources';
28
29
  import {SemanticResourceAttributes} from '@opentelemetry/semantic-conventions';
29
- import {AwsInstrumentation} from '@opentelemetry/instrumentation-aws-sdk';
30
+ import {ExpressInstrumentation} from '@opentelemetry/instrumentation-express';
30
31
  import {PinoInstrumentation} from '@opentelemetry/instrumentation-pino';
31
32
  import {DnsInstrumentation} from '@opentelemetry/instrumentation-dns';
32
- import {B3Propagator, B3InjectEncoding} from '@opentelemetry/propagator-b3';
33
33
 
34
34
  diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saidsef/tracing-node",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
5
5
  "main": "libs/index.mjs",
6
6
  "scripts": {