getsentry / getsentry/sentry-java
JVM Profiling Follow ups
未關閉
@lbloder 已經在處理了。
開始於 2025年11月3日。
Java
Profiles
Task
- 主要語言
- Kotlin
- 星號
- 1.4k
- 分支
- 478
- 平均合併
- 3 天 4 小時
- 30 天內合併 PR
- 72
描述
Description
We have released JVM Profiling in https://github.com/getsentry/sentry-java/releases/tag/8.23.0
There are still tasks /improvements we could do:
- Docs (https://github.com/getsentry/sentry-java/issues/4909)
- Release registry entries
- Add module to
.craft.yml - Verify caching behaviour of
ServiceLoaderis not an issue (i.e. does not cause a large overhead on each chunk) - otherwise cache (obsolete with getsentry/sentry-java#4815) - Remove / reduce vendored code and replace what's possible with JFR converter, also see https://github.com/async-profiler/async-profiler/issues/1525 getsentry/sentry-java#4852
- Upgrade async-profiler to 4.1+ to support newer Java Versions (23+); there are issues with a Converter dictionary (getsentry/sentry-java#4853)
- Log a specific message why Profiling isn't enabled if the wrong config property for setting sample rate is used (
profiles-sample-rate) on JVM - Enable / showcase Profiling in (more of) our samples getsentry/sentry-java#4941
- Allow configuring
profilingTracesHzviasentry.properties(ExternalOptions) - Add a
.cursorrules file to explain how Profiling works getsentry/sentry-java#5034 - Fix an issue where the profilerId would not be propagated to SentryTracer correctly when used with OTEL Agent (getsentry/sentry-java#4854)
- Fix an issue with profiler initialization when using spring or spring-boot in OTEL Agent auto-init mode (getsentry/sentry-java#4855)
- Add profiling option to build plugins:
- Gradle
- Maven (https://github.com/getsentry/sentry-maven-plugin/issues/221)
Maybe later
- We could reduce profile chunk size / duration based on thread count of the application. This could help in case profiles are dropped due to being too large. Thread.activeCount() or ThreadMXBean (more accurate)
- https://github.com/getsentry/sentry-java/issues/4768 (we should wait for feedback first, maybe we don't need this)
- https://github.com/getsentry/sentry-java/issues/4779
- Detect that
async-profileris the (major) version we expect on startup, crash otherwise
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。