Evaluate which experimental APIs to promote in v9

Đang mở
#6,408 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, kotlin, spring
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by reviewing the 132 production usages of @ApiStatus.Experimental inventoried from commit 4bf0a82, then read the linked issues and the internal stability data referenced in the issue. For each API, determine whether to promote, keep experimental, make internal, or remove it; the issue lists recommendations and blockers, including open issues #6248, #5317, #6134, and #6349. Done means reaching and documenting decisions for the full inventory, including the items already tracked for v9.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Platform: Java Task
Description

For v9, go through everything still annotated @ApiStatus.Experimental in production sources. For each item, decide whether to promote it (drop the annotation), keep it experimental, make it @ApiStatus.Internal, or remove it. A major release is the cheapest time to make the breaking cases (rename/remove/internalize).

Inventory taken from main @ 4bf0a82: 132 @ApiStatus.Experimental usages outside tests. Getters and setters are merged below. Items that are already also @Internal are left out (SentryOtelThreadLocalStorage, NoOpDistributionApi, CompositeModulesLoader, ManifestModulesLoader).

Recommendations below are based on API age/maturity and open issues in this repo (linked inline). Additional internal stability data is tracked on the linked Linear issue.

Recommendation: promote in v9
API Evidence
Check-in leftovers: captureCheckIn on HubAdapter/ScopesAdapter/NoOpScopes, CheckInUtils, SentryOptions.cron, ignoredCheckIns, Spring SentryQuartzConfiguration + SentrySchedulerFactoryBeanCustomizer (spring, jakarta, spring-7), SentryJobListener (quartz) Already decided in #4673 (closed as completed), but these annotations were missed.
SentryOptions/ExternalOptions: enableSpotlight, spotlightConnectionUrl Dev-only tooling. #3981 (init without DSN) is an improvement and doesn't block promotion.
SentryOptions/ExternalOptions: enableBackpressureHandling (+ backpressureMonitor) Long-standing core feature; no open issues.
SentryOptions.logs (getLogs/setLogs), SentryClient.captureLog, SentryClient.captureMetric Logs and metrics are GA product features.
Sentry.startProfiler() / stopProfiler() Continuous profiling entry points; no open issues.
ignoredSpanOrigins, ignoredTransactions (set/add), maxSpans, enableScreenTracking, fatalLogger Simple config knobs; no open issues.
SentryCoroutineExceptionHandler (kotlin-extensions) No open issues.
Spring WebFlux (SentryWebFilter, AbstractSentryWebFilter, SentryWebFilterWithThreadLocalAccessor, SentryWebExceptionHandler, SentryScheduleHook, SentryRequestResolver) + Boot SentryWebfluxAutoConfiguration Years old and widely used. Blocked on #6248 (open SentryScheduleHook memory leak); promote once that's fixed.
Recommendation: make @Internal instead of promoting
  • Baggage, BaggageHeader, TraceContext, ISpan.traceContext(), ISpan.toBaggageHeader(...): plumbing used by integrations and hybrid SDKs, and not really user API.
  • RequestDetailsResolver, IScopesStorageFactory / SentryOptions.scopesStorageFactory: extension points for our own modules (OTel, etc.).
Recommendation: decide remove vs. promote
  • SentryOptions.traceSampling: Javadoc says "experimental API and will be removed without notice". v9 is the time to either drop it (always on) or commit to it.
  • ExternalOptions.globalHubMode: only the getter is experimental; align it with the SentryOptions counterpart.
  • ExperimentalOptions / options.getExperimental(): currently empty. Keep it as the landing spot for future experiments, or remove it.
Recommendation: keep experimental
API Why
SentryReplayOptions.screenshotStrategy / ScreenshotStrategyType (Canvas) #5317 (incorrect Canvas replay) is open. #5374 notes usage numbers aren't great and custom masking is missing.
SentryReplayOptions.captureSurfaceViews, frameObserver / ReplayFrameObserver New; no adoption signal yet.
SentryAndroidOptions.enableNdkAppHangTracking, ndkAppHangTimeoutIntervalMillis New; little real-world mileage yet.
SentryAndroidOptions.memoryLimiterEnabled, reportHistoricalMemoryLimiterExits #6134 (handle REASON_MEMORY_LIMITER) is still open.
sentry-android-navigation3 (SentryNavEffect, SentryNavOptions, BackStackEntryMapper, SentryBackStackEntry) Shape may change with SAGP auto-instrumentation (#6349).
App distribution: DistributionIntegration, IDistributionApi, UpdateInfo, UpdateStatus, SentryOptions.distribution/DistributionOptions/distributionController New; no adoption signal yet.
SentryKafkaProducer, SentryKafkaConsumerTracing, SentryJCacheWrapper New server integrations. Needs usage data before promoting.
Spring Boot keepTransactionsOpenForAsyncResponses No signal either way; check with the Spring owners.
Already tracked for 9.0.0
  • enableStandaloneAppStartTracing: #5376 plans to make it the default or drop the flag. Promote or remove it as part of that change.

via roman.

--

View Junior Session [Sentry]

Ngôn ngữ chính
Kotlin
Star
1.4k
Fork
483
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
202

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-java

Tất cả issue của getsentry/sentry-java

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.