cloudflare / cloudflare/developer-platform
Workers Automatic Tracing: span name only shows HTTP method, not route pattern (e.g. `GET` instead of `GET /foo/{id}`)
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 1
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Follow-up from discussion [#11062](https://github.com/cloudflare/workers-sdk/discussions/11062#discussioncomment-15755276).
**Current behavior:** The span name / `resource` attribute for incoming request spans is just the HTTP method (e.g. `GET`).
**Expected behavior:** The span name should include the route/endpoint pattern, e.g. `GET /foo/{id}`, similar to how most HTTP server instrumentations name root spans (`{method} {route}` per OTel semantic conventions).
Without the route pattern, APM tools (reported independently for Datadog and Kibana in the linked discussion) can't group/aggregate spans by endpoint — every request under a given method collapses into a single span name regardless of which route handled it.
cc @jmorrell-cloudflare @nevikashah (from the linked discussion)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with the linked discussion #11062 and trace how incoming request spans are named in Workers Automatic Tracing. Confirm where the HTTP method and route information are available; done means spans expose the handled route pattern, such as GET /foo/{id}, so APM tools can group requests by endpoint.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- observability-sre
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100