Skip to content

Java Spring automatic RestTemplate Instrumentation is confusing #11475

Closed

Description

@alwins0n

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

Activity

  1. getsantry commented on Oct 2, 2024

    @getsantry
    Contributor

    Assigning to @getsentry/support for routing ⏲️

  2. moved this to Waiting for: Support in GitHub Issues with 👀 3on Oct 2, 2024
  3. self-assigned this
    on Mar 25, 2025
  4. moved this from Waiting for: Support to No status in GitHub Issues with 👀 3on Apr 4, 2025
  5. locked and limited conversation to collaborators on May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions