getsentry / sentry-java

A Sentry SDK for Java, Android and other JVM languages.
https://docs.sentry.io/
MIT License
1.16k stars 435 forks source link

Dynamic Sampling Support for Java #2205

Closed zoesyc closed 2 years ago

zoesyc commented 2 years ago

Description

In July, we added DS support for Android OkHttp. Here are some PRs created in the process: https://github.com/getsentry/sentry-java/pulls?q=is%3Apr+sort%3Aupdated-desc+baggage+is%3Aclosed.

https://develop.sentry.dev/sdk/performance/dynamic-sampling-context/

We want to extend the support to HTTP clients that we support, including OpenFeign, RestTemplate, apollo, etc.

Additionally, we need server-side support, meaning Spring and SpringBoot. We've built this for Python and Node so far - example:

Main goals:

adinauer commented 2 years ago

We're already sending out the baggage header, what's missing is server side baggage support to pass through incoming baggage. For that we have #2085 to track.

Integrations already supporting outgoing baggage header:

Is there something else missing?

adinauer commented 2 years ago

Ah looks like we missed Spring RestTemplate, here's the PR to add it: https://github.com/getsentry/sentry-java/pull/2206