evanderkoogh / otel-cf-workers

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

for wrangler 3.7, the trace API call is not working #50

Closed alexdoan102 closed 9 months ago

alexdoan102 commented 10 months ago

the trace API is not called on the fetch ==> is not returning success or failure, and it seem like the fetch is not called at all.

  ==>     BTW, if make the same request via POSTMAN, it works.  (with the same body)

image

alexdoan102 commented 10 months ago

i found a workaround but not sure why you have to call the unwrap<> twice.. => if you unwrap twice, the traceAPI is called correclty

image

evanderkoogh commented 9 months ago

There was a bug with the wrap function in rc.9 that I fixed in rc.10. Could you check if this also solved this issue?