@moostjs/otel 0.4.17 → 0.4.19

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/dist/index.cjs CHANGED
@@ -119,10 +119,10 @@ function getMoostMetrics() {
119
119
 
120
120
  function withSpan(span, cb, postProcess) {
121
121
  const _span = typeof span.name === 'string' && !span.spanContext
122
- ? span
123
- : api.trace
122
+ ? api.trace
124
123
  .getTracer('default')
125
- .startSpan(span.name, span.options);
124
+ .startSpan(span.name, span.options)
125
+ : span;
126
126
  let result = undefined;
127
127
  const finalizeSpan = (e, r) => {
128
128
  if (e) {
package/dist/index.mjs CHANGED
@@ -117,10 +117,10 @@ function getMoostMetrics() {
117
117
 
118
118
  function withSpan(span, cb, postProcess) {
119
119
  const _span = typeof span.name === 'string' && !span.spanContext
120
- ? span
121
- : trace
120
+ ? trace
122
121
  .getTracer('default')
123
- .startSpan(span.name, span.options);
122
+ .startSpan(span.name, span.options)
123
+ : span;
124
124
  let result = undefined;
125
125
  const finalizeSpan = (e, r) => {
126
126
  if (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moostjs/otel",
3
- "version": "0.4.17",
3
+ "version": "0.4.19",
4
4
  "description": "@moostjs/otel",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -39,6 +39,6 @@
39
39
  "dependencies": {
40
40
  "@opentelemetry/api": "^1.9.0",
41
41
  "@opentelemetry/sdk-trace-base": "^1.25.1",
42
- "moost": "0.4.17"
42
+ "moost": "0.4.19"
43
43
  }
44
44
  }