Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
g3david405 opened this issue Jun 14, 2024 · 4 comments
Closed

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

g3david405 opened this issue Jun 14, 2024 · 4 comments
Labels
question Further information is requested

Comments

@g3david405
Copy link

g3david405 commented Jun 14, 2024

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

@g3david405 g3david405 added the question Further information is requested label Jun 14, 2024
@Kielek
Copy link
Contributor

Kielek commented Jun 14, 2024

@g3david405, I think you should look into https://github.com/open-telemetry/semantic-conventions/blob/v1.26.0/docs/http/http-spans.md as instrumentations from https://github.com/open-telemetry/opentelemetry-dotnet-contrib should follow this specification (without experimental and opt-in attributes).

I assume that your application is working on the server side, so links are leading to server sections. On the same page you can find also related to the client side:

Please let me know if it helps you to understand current shape of instrumentation.

@g3david405
Copy link
Author

@Kielek I found the problem.
If the application use Elastic.Apm.NetCoreAll this package, the trace data will not collect properly.

@Kielek
Copy link
Contributor

Kielek commented Jun 14, 2024

I recommend to report issue under https://github.com/elastic/apm-agent-dotnet.

Closing this one, please let us know if we help you more.

@Kielek Kielek closed this as completed Jun 14, 2024
@g3david405
Copy link
Author

@Kielek thx~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants