evanderkoogh / otel-cf-workers

An OpenTelemetry compatible library for instrumenting and exporting traces for Cloudflare Workers
BSD 3-Clause "New" or "Revised" License
210 stars 40 forks source link

adding faas.execution attribute from cf-ray #27

Closed rtbenfield closed 11 months ago

rtbenfield commented 12 months ago

This PR resolves #25 by assigning the faas.execution attribute to the CF-Ray header in the fetch handler instrumentation for inbound HTTP requests.

Note that the header is not set by wrangler dev, so this will only take effect on deployed Workers and Durable Objects.