@saidsef/tracing-node 1.10.5 → 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.
Files changed (2) hide show
  1. package/libs/index.mjs +2 -2
  2. package/package.json +1 -1
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 async function setupTracing (serviceName, appName='application', endpoint=null) {
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 await provider.getTracer(serviceName);
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.10.5",
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": {