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

Java Spring automatic RestTemplate Instrumentation is confusing #11475

Open
alwins0n opened this issue Oct 2, 2024 · 1 comment · May be fixed by #13236
Open

Java Spring automatic RestTemplate Instrumentation is confusing #11475

alwins0n opened this issue Oct 2, 2024 · 1 comment · May be fixed by #13236

Comments

@alwins0n
Copy link

alwins0n commented Oct 2, 2024

SDK

Java SDK

Description

The RestTemplate Instrumentation documentation shows a spring configuration with interceptor setup. The sample does not work out of the box, because IHub is not an injectable to be found in the spring ioc container.

At least not with spring5 (no boot)

Suggested Solution

Show how an instance of IHub is correctly instantiated for the interceptor or show what to import/instantiate to register an IHub in the ioc container

@getsantry
Copy link
Contributor

getsantry bot commented Oct 2, 2024

Assigning to @getsentry/support for routing ⏲️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants