Skip to content

Workers Automatic Tracing: span name only shows HTTP method, not route pattern (e.g. GET instead of GET /foo/{id}) #14575

Description

@willie

Follow-up from discussion #11062.

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions