@azure/eventgrid
Version:
An isomorphic client library for the Azure Event Grid service.
23 lines • 1.38 kB
TypeScript
import type { PipelinePolicy } from "@azure/core-rest-pipeline";
export declare const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8";
export declare const TraceParentHeaderName = "traceparent";
export declare const TraceStateHeaderName = "tracestate";
export declare const ContentTypeHeaderName = "Content-Type";
/**
* The programmatic identifier of the cloudEventDistributedTracingEnricherPolicy.
*/
export declare const cloudEventDistributedTracingEnricherPolicyName = "cloudEventDistributedTracingEnricherPolicy";
/**
* cloudEventDistributedTracingEnricherPolicy is a policy which adds distributed tracing information
* to a batch of cloud events. It does so by copying the `traceparent` and `tracestate` properties
* from the HTTP request into the individual events as extension properties.
*
* This will only happen in the case where an event does not have a `traceparent` defined already. This
* allows events to explicitly set a traceparent and tracestate which would be respected during "multi-hop
* transmition".
*
* See https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md
* for more information on distributed tracing and cloud events.
*/
export declare function cloudEventDistributedTracingEnricherPolicy(): PipelinePolicy;
//# sourceMappingURL=cloudEventDistrubtedTracingEnricherPolicy.d.ts.map