Skip to content

Examine possibility of starting all spans after routing decision #6188

@anuraaga

Description

@anuraaga

Currently, http.route or a derived span name cannot be used in sampling. This does seem quite limiting as route would probably be a useful, if not the most useful, attribute to sample on.

open-telemetry/opentelemetry-java#4498 (comment)

We did put a lot of effort into RouteHolder, etc, but I wonder if we ever considered starting spans only after route is known, or alternatively having a StartTimeHolder to keep the current timings but still create the span after routing. Or perhaps we just keep a SpanBuilder in context until the route is ready.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions