@devopsplaybook.io/otel-utils-fastify 0.0.1-beta2 → 0.0.1-beta4

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.
@@ -1,4 +1,8 @@
1
1
  import { ConfigInterfaceOTel } from "@devopsplaybook.io/otel-utils";
2
+ import { Span } from "@opentelemetry/sdk-trace-base";
2
3
  import { FastifyInstance } from "fastify";
3
4
  export declare function StandardTracerFastifyRegisterHooks(fastify: FastifyInstance, config: ConfigInterfaceOTel): Promise<void>;
4
5
  export declare function StandardTracerFastifyInit(fastify: FastifyInstance): void;
6
+ export interface FastifyRequestOTel {
7
+ span?: Span;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopsplaybook.io/otel-utils-fastify",
3
- "version": "0.0.1-beta2",
3
+ "version": "0.0.1-beta4",
4
4
  "description": "Utility to simplify integration with Open Telemetry for Fastify API Server",
5
5
  "keywords": [
6
6
  "Open",
@@ -108,3 +108,7 @@ export function StandardTracerFastifyInit(fastify: FastifyInstance) {
108
108
  span.recordException(error);
109
109
  });
110
110
  }
111
+
112
+ export interface FastifyRequestOTel {
113
+ span?: Span;
114
+ }