-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Support Spring's new RestClient with auto configuration #3198
Comments
- Spring RestClient support
Hey @nandorholozsnyak thanks for opening up this issue and contributing a PR: #3199 |
Hey @markushi |
- Test when HTTP call fails is fixed with disabling retry mechanism in the Apache Http Client
Hello there, code seems to be finalized for review. Please check the associated PR. I have a few concerns around the equality check, but I tried to use the same concept as in the RestTemplate one... |
* Support Spring's new RestClient with auto configuration (#3198) - Spring RestClient support * Support Spring's new RestClient with auto configuration (#3198) - Test when HTTP call fails is fixed with disabling retry mechanism in the Apache Http Client * apply code formatter etc. * Use separate trace origin; Add to Spring Boot 3 sample * changelog --------- Co-authored-by: Nándor Holozsnyák <etta@Toth-MacBook-Air.local> Co-authored-by: Alexander Dinauer <alexander.dinauer@sentry.io> Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com>
Implemented in #3199 |
Problem Statement
As Spring 6.1 introduced the new RestClient approach for calling HTTP APIs, the Sentry SDK is not yet providing an auto configuration for it to set the
SentrySpanClientHttpRequestInterceptor
during the creation of a new client with the RestClient.Builder.Solution Brainstorm
Change a few things:
SentrySpanRestClientCustomizer
that extends the RestClientCustomizerSentryAutoConfiguration
to register the customizerThe text was updated successfully, but these errors were encountered: