UNPKG

@dynatrace/opentelemetry-azure-functions

Version:

Dynatrace OpenTelemetry package for Azure Functions

16 lines 762 B
export declare function _testClearIsV3Ctx(): void; type AzureFunction = (context: any, ...args: unknown[]) => Promise<unknown> | void; /** * Wraps an azure function handler for tracing. * * The returned function handler shall replace the exiting one. It starts a span on each invocation and calls the * original handler with the span set as active. The span is ended once the original function returns. * * Function arguments, this, return value and exceptions are forwarded by the wrapped handler to the original. * * @param handler the handler function to wrap * @returns the wrapped handler function */ export declare function wrapHandler(handler: AzureFunction): AzureFunction; export {}; //# sourceMappingURL=AzureFunctionsInstrumentation.d.ts.map