newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
200 stars 143 forks source link

[Spike] Spring - Investigate @Endpoint, @ReadOperation, @WriteOperation, @DeleteOperation annotations #2007

Closed jtduffy closed 1 month ago

jtduffy commented 1 month ago

These annotations are used for custom actuator endpoints. https://docs.spring.io/spring-boot/reference/actuator/endpoints.html#actuator.endpoints.implementing-custom

workato-integration[bot] commented 1 month ago

https://new-relic.atlassian.net/browse/NR-302896

jtduffy commented 1 month ago

Investigating this, it looks to impossible using our current instrumentation approach. By the time the actuator endpoint call invokes the handle method, we don't have access to the @Endpoint (and related annotations) so we have no way to extract the endpoint id and path variables.