Class FetchInstrumentation

Implements

  • Instrumentation

Constructors

Properties

instrumentationName: string = "@vercel/otel/fetch"
instrumentationVersion: string = "1.0.0"
originalFetch: undefined | ((input, init?) => Promise<Response>)

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: URL | RequestInfo
      • Optional init: RequestInit

      Returns Promise<Response>

tracerProvider: undefined | TracerProvider

Methods

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • httpModule: __module | __module
    • protocolFromModule: "https:" | "http:"

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • tracerProvider: TracerProvider

    Returns void

  • Parameters

    • url: URL
    • Optional init: InternalRequestInit

    Returns boolean

  • Parameters

    • url: URL
    • Optional init: InternalRequestInit

    Returns boolean

  • Parameters

    • __namedParameters: {
          attributes?: Attributes;
          fetchType: "http" | "fetch";
          method?: string;
          name?: string;
          tracer: Tracer;
          url: URL;
      }
      • Optional attributes?: Attributes
      • fetchType: "http" | "fetch"
      • Optional method?: string
      • Optional name?: string
      • tracer: Tracer
      • url: URL

    Returns Span