Skip to content

Allow additional attributes to be added to client spans#37

Merged
armanbilge merged 7 commits intotypelevel:mainfrom
Dwolla:additional-client-attributes
Aug 29, 2024
Merged

Allow additional attributes to be added to client spans#37
armanbilge merged 7 commits intotypelevel:mainfrom
Dwolla:additional-client-attributes

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
@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