@moostjs/otel 0.4.12 → 0.4.13

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
@@ -210,7 +210,10 @@ class SpanInjector extends moost.ContextInjector {
210
210
  },
211
211
  };
212
212
  }
213
- hook(name, route) {
213
+ hook(method, name, route) {
214
+ if (method === 'WF_STEP') {
215
+ return;
216
+ }
214
217
  if (name === 'Handler:not_found') {
215
218
  const chm = this.getControllerHandlerMeta();
216
219
  this.startEventMetrics(chm.attrs, route);
package/dist/index.d.ts CHANGED
@@ -210,8 +210,8 @@ declare class SpanInjector extends ContextInjector<TContextInjectorHook> {
210
210
  };
211
211
  with<T>(name: TContextInjectorHook, attributes: TAttributes, cb: () => T): T;
212
212
  with<T>(name: TContextInjectorHook, cb: () => T): T;
213
- patchRsponse(): void;
214
- startEvent<T>(eventType: string, cb: () => T): T;
213
+ protected patchRsponse(): void;
214
+ protected startEvent<T>(eventType: string, cb: () => T): T;
215
215
  getEventType(): string;
216
216
  getIgnoreSpan(): boolean | undefined;
217
217
  getControllerHandlerMeta(): {
@@ -228,7 +228,7 @@ declare class SpanInjector extends ContextInjector<TContextInjectorHook> {
228
228
  'moost.event_type': string;
229
229
  };
230
230
  };
231
- hook(name: 'Handler:not_found' | 'Handler:routed' | 'Controller:registered', route?: string): void;
231
+ hook(method: string, name: 'Handler:not_found' | 'Handler:routed' | 'Controller:registered', route?: string): void;
232
232
  withSpan<T>(span: Span, cb: () => T, opts: {
233
233
  rootSpan: boolean;
234
234
  endSpan: boolean;
package/dist/index.mjs CHANGED
@@ -208,7 +208,10 @@ class SpanInjector extends ContextInjector {
208
208
  },
209
209
  };
210
210
  }
211
- hook(name, route) {
211
+ hook(method, name, route) {
212
+ if (method === 'WF_STEP') {
213
+ return;
214
+ }
212
215
  if (name === 'Handler:not_found') {
213
216
  const chm = this.getControllerHandlerMeta();
214
217
  this.startEventMetrics(chm.attrs, route);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moostjs/otel",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
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.12"
42
+ "moost": "0.4.13"
43
43
  }
44
44
  }