Skip to content

Java Spring automatic RestTemplate Instrumentation is confusing #11475

@alwins0n

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions