Skip to content

[Question] Trace attribute http.route vs url.path #5692

Closed
@g3david405

Description

@g3david405

What is the question?

I am currently using OpenTelemetry + Tempo to monitor my C# application.
I am curious about the difference between url.path and http.route in the attributes.
In some applications' traces, http.route does not appear, while in others, url.path is missing.
If the http.route attribute is missing, the trace name only displays HTTP methods, making it very difficult for me to troubleshoot issues.
image

In some application, I don't know why it only shows POST in trace_name, and missing http.route and url.path in attributes.
image

Could you please explain the difference between the two and the logic behind their usage? Also, how can I ensure that both attributes appear simultaneously?
Thanks!

image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions