UNPKG

@dynatrace/opentelemetry-azure-functions

Version:

Dynatrace OpenTelemetry package for Azure Functions

29 lines 1.25 kB
import type { SpanAttributes } from "@opentelemetry/api"; import type { Context, HttpRequest as HttpRequestV3 } from "@azure/functions-v3"; import { HttpRequest } from "@azure/functions"; import { SemConvTrace } from "@dynatrace/opentelemetry-core"; type Attributes = SpanAttributes; /** * Get Span start attributes depending on the given trigger type. * * @note currently only Http trigger is supported * * @param triggerType the azure function trigger type * @param context the azure function context * @param args the arguments passed to the function * @returns the detected span start attributes */ export declare function getStartAttributes(triggerType: SemConvTrace.FaasTriggerValues, req?: HttpRequest | HttpRequestV3): Attributes; /** * Get Span exit attributes depending on the given trigger type. * * @note currently only Http trigger is supported * * @param triggerType the trigger type * @param context the azure function context * @param retVal the retrun value of the handler * @returns the detected span exit attributes */ export declare function getExitAttributes(triggerType: SemConvTrace.FaasTriggerValues, context: Context, retVal: unknown): Attributes; export {}; //# sourceMappingURL=AttributeDetector.d.ts.map