-
Notifications
You must be signed in to change notification settings - Fork 197
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
[apmhttp] WithClientSpanType ClientOption #1106
[apmhttp] WithClientSpanType ClientOption #1106
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @Jasonfran! Would you please add a short entry in CHANGELOG.asciidoc?
Not sure what's up with the tests on Windows, but that's essentially defunct code that we're keeping around to avoid breaking the API. I wouldn't worry about it.
Thanks @axw I've updated the CHANGELOG.asciidoc, I think I've done it correctly. Does the docs/upgrading.asciidoc file need updating too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor issue with the changelog update. Thanks and sorry, I should have given some guidance on how to update it! We will move things from "unreleased" to a new version when a new version is released.
Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: Andrew Wilkins <[email protected]>
Hi, I think that's done now? |
LGTM, thanks for the PR :) |
Hi,
This is a pull request to add a
WithClientSpanType
option when wrapping anhttp.Client
I've come across a few instances in the past where I want to better differentiate my HTTP requests. For example when calling into a Varnish cache over HTTP, I'd rather it have the "cache" span type. There are some cases where I have HTTP requests that are better classified as database requests, so I'd like the "db" span type.
Currently the workaround is to grab the span off the context and set the span type before closing the response body. It works, but it's not particularly elegant. That's why I think this new
ClientOption
would be useful.I did the change before making an issue asking about it since it's a tiny change
Let me know 😄
By the way,
TestFilesystemContextSetter
andTestFilesystemContextSetterFileNotFound
don't seem to work on my machine. It's a Windows machine. They result in these test failures: