@devopsplaybook.io/otel-utils-fastify 0.0.1-beta7 → 0.0.1-beta9

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.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./src/StandardTracerFastify";
2
- export * from "./src/RequqestOTel";
2
+ export * from "./src/RequestOTel";
package/dist/index.js CHANGED
@@ -17,4 +17,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./src/StandardTracerFastify"), exports);
20
- __exportStar(require("./src/RequqestOTel"), exports);
20
+ __exportStar(require("./src/RequestOTel"), exports);
@@ -1,4 +1,4 @@
1
1
  import { Span } from "@opentelemetry/sdk-trace-base";
2
- export interface RequqestOTel {
2
+ export interface RequestOTel {
3
3
  tracerSpanApi: Span;
4
4
  }
@@ -1,3 +1,3 @@
1
1
  import { StandardLogger, StandardTracer } from "@devopsplaybook.io/otel-utils";
2
2
  import { FastifyInstance } from "fastify";
3
- export declare function StandardTracerFastifyRegisterHooks(fastify: FastifyInstance, standardTracer: StandardTracer, standardLogger: StandardLogger): Promise<void>;
3
+ export declare function StandardTracerFastifyRegisterHooks(fastify: FastifyInstance, standardTracer: StandardTracer, standardLogger: StandardLogger): void;
@@ -6,7 +6,7 @@ const core_1 = require("@opentelemetry/core");
6
6
  const sdk_node_1 = require("@opentelemetry/sdk-node");
7
7
  const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
8
8
  const propagator = new core_1.W3CTraceContextPropagator();
9
- async function StandardTracerFastifyRegisterHooks(fastify, standardTracer, standardLogger) {
9
+ function StandardTracerFastifyRegisterHooks(fastify, standardTracer, standardLogger) {
10
10
  const logger = standardLogger.createModuleLogger("Fastify");
11
11
  fastify.addHook("onRequest", async (req) => {
12
12
  if (req.url.indexOf("/api") !== 0) {
package/index.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  // Export all modules from src
3
3
 
4
4
  export * from "./src/StandardTracerFastify";
5
- export * from "./src/RequqestOTel";
5
+ export * from "./src/RequestOTel";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopsplaybook.io/otel-utils-fastify",
3
- "version": "0.0.1-beta7",
3
+ "version": "0.0.1-beta9",
4
4
  "description": "Utility to simplify integration with Open Telemetry for Fastify API Server",
5
5
  "keywords": [
6
6
  "Open",
@@ -1,5 +1,5 @@
1
1
  import { Span } from "@opentelemetry/sdk-trace-base";
2
2
 
3
- export interface RequqestOTel {
3
+ export interface RequestOTel {
4
4
  tracerSpanApi: Span;
5
5
  }
@@ -16,11 +16,11 @@ import { FastifyInstance, FastifyRequest, FastifyReply } from "fastify";
16
16
 
17
17
  const propagator = new W3CTraceContextPropagator();
18
18
 
19
- export async function StandardTracerFastifyRegisterHooks(
19
+ export function StandardTracerFastifyRegisterHooks(
20
20
  fastify: FastifyInstance,
21
21
  standardTracer: StandardTracer,
22
22
  standardLogger: StandardLogger
23
- ): Promise<void> {
23
+ ): void {
24
24
  const logger = standardLogger.createModuleLogger("Fastify");
25
25
 
26
26
  fastify.addHook("onRequest", async (req: FastifyRequest) => {
File without changes