sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Reporting errors through a Sentry Java Agent

Open adinauer opened this issue 2 years ago • 5 comments

Problem Statement

We rely on other libraries to offer some callbacks or require users to manipulate / wrap libraries for errors to be reported to Sentry. By using a Java Agent we could wrap calls and capture errors where there's no clean API to usually do so. We already do something similar for Android using sentry-android-gradle-plugin.

Solution Brainstorm

A Sentry Java Agent similar to the OTEL agent. Maybe we can combine them so we don't have to figure out how to make them co-exist. Or we could offer a separate agent just for errors which uses common code that we can also leverage in the Sentry OTEL Java Agent.

adinauer avatar Jan 17 '23 10:01 adinauer