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

Allow additional attributes to be added to client spans #37

Merged
merged 7 commits into from
Aug 29, 2024

Conversation

bpholt
Copy link
Member

@bpholt bpholt commented Aug 28, 2024

I hope to use this to add Otel attributes like rpc.system and peer.service to requests.

@bpholt bpholt marked this pull request as draft August 28, 2024 23:58
@bpholt bpholt marked this pull request as ready for review August 29, 2024 00:12
@armanbilge
Copy link
Member

@bpholt sorry, this one got conflicty ...

@bpholt
Copy link
Member Author

bpholt commented Aug 29, 2024

No worries, I'll resolve. I have another change that should be added too.

Client { req =>
Resource.applyFull {poll =>
Trace[F].span("http4s-client-request") {
Trace[F].span("http4s-client-request", Defaults.withSpanKind(SpanKind.Client)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armanbilge this is the additional change I mentioned, FYI

@armanbilge armanbilge merged commit 0f0f9dd into typelevel:main Aug 29, 2024
11 checks passed
@bpholt bpholt deleted the additional-client-attributes branch August 29, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants