Skip to content

Releases: getsentry/sentry-java

6.16.0

17 Mar 10:19

Choose a tag to compare

Features

  • Improve versatility of exception resolver component for Spring with more flexible API for consumers. (#2577)
  • Automatic performance instrumentation for WebFlux (#2597)
    • You can enable it by adding sentry.enable-tracing=true to your application.properties
  • The Spring Boot integration can now be configured to add the SentryAppender to specific loggers instead of the ROOT logger (#2173)
    • You can specify the loggers using "sentry.logging.loggers[0]=foo.bar and "sentry.logging.loggers[1]=baz in your application.properties
  • Add capabilities to track Jetpack Compose composition/rendering time (#2507)
  • Adapt span op and description for graphql to fit spec (#2607)

Fixes

  • Fix timestamps of slow and frozen frames for profiles (#2584)
  • Deprecate reportFullDisplayed in favor of reportFullyDisplayed (#2585)
  • Add mechanism for logging integrations and update spring mechanism types (#2595)
    • NOTE: If you're using these mechanism types (HandlerExceptionResolver, SentryWebExceptionHandler) in your dashboards please update them to use the new types.
  • Filter out session cookies sent by Spring and Spring Boot integrations (#2593)
    • We filter out some common cookies like JSESSIONID
    • We also read the value from server.servlet.session.cookie.name and filter it out
  • No longer send event / transaction to Sentry if beforeSend / beforeSendTransaction throws (#2591)
  • Add version to sentryClientName used in auth header (#2596)
  • Keep integration names from being obfuscated (#2599)
  • Change log level from INFO to WARN for error message indicating a failed Log4j2 Sentry.init (#2606)
    • The log message was often not visible as our docs suggest a minimum log level of WARN
  • Fix session tracking on Android (#2609)
    • Incorrect number of session has been sent. In addition, some of the sessions were not properly ended, messing up Session Health Metrics.

Dependencies

  • Bump opentelemetry-sdk to 1.23.1 and opentelemetry-javaagent to 1.23.0 (#2590)
  • Bump Native SDK from v0.5.4 to v0.6.0 (#2545)

6.16.0-beta.1

03 Mar 10:49

Choose a tag to compare

6.16.0-beta.1 Pre-release
Pre-release

Dependencies

6.15.0

02 Mar 13:03

Choose a tag to compare

Features

  • Adjust time-to-full-display span if reportFullDisplayed is called too early (#2550)
  • Add enableTracing option (#2530)
    • This change is backwards compatible. The default is null meaning existing behaviour remains unchanged (setting either tracesSampleRate or tracesSampler enables performance).
    • If set to true, performance is enabled, even if no tracesSampleRate or tracesSampler have been configured.
    • If set to false performance is disabled, regardless of tracesSampleRate and tracesSampler options.
  • Detect dependencies by listing MANIFEST.MF files at runtime (#2538)
  • Report integrations in use, report packages in use more consistently (#2179)
  • Implement ThreadLocalAccessor for propagating Sentry hub with reactor / WebFlux (#2570)

Fixes

  • Leave inApp flag for stack frames undecided in SDK if unsure and let ingestion decide instead (#2547)
  • Allow 0.0 error sample rate (#2573)
  • Fix memory leak in WebFlux related to an ever growing stack (#2580)
  • Use the same hub in WebFlux exception handler as we do in WebFilter (#2566)
  • Switch upstream Jetpack Compose dependencies to compileOnly in sentry-compose-android (#2578)
    • NOTE: If you're using Compose Navigation/User Interaction integrations, make sure to have the following dependencies on the classpath as we do not bring them in transitively anymore:
      • androidx.navigation:navigation-compose:
      • androidx.compose.runtime:runtime:
      • androidx.compose.ui:ui:

6.14.0

15 Feb 14:09

Choose a tag to compare

Features

  • Add time-to-full-display span to Activity auto-instrumentation (#2432)
  • Add main flag to threads and in_foreground flag for app contexts (#2516)

Fixes

  • Ignore Shutdown in progress when closing ShutdownHookIntegration (#2521)
  • Fix app start span end-time is wrong if SDK init is deferred (#2519)
  • Fix invalid session creation when app is launched in background (#2543)

6.13.1

07 Feb 10:43

Choose a tag to compare

Fixes

  • Fix transaction performance collector oom (#2505)
  • Remove authority from URLs sent to Sentry (#2366)
  • Fix sentry-bom containing incorrect artifacts (#2504)

Dependencies

6.13.0

26 Jan 23:34

Choose a tag to compare

Features

  • Send cpu usage percentage in profile payload (#2469)
  • Send transaction memory stats in profile payload (#2447)
  • Add cpu usage collection (#2462)
  • Improve ANR implementation: (#2475)
    • Add abnormal_mechanism to sessions for ANR rate calculation
    • Always attach thread dump to ANR events
    • Distinguish between foreground and background ANRs
  • Improve possible date precision to 10 μs (#2451)

Fixes

  • Fix performance collector setup called in main thread (#2499)
  • Expand guard against CVE-2018-9492 "Privilege Escalation via Content Provider" (#2482)
  • Prevent OOM by disabling TransactionPerformanceCollector for now (#2498)

6.12.1

17 Jan 11:07

Choose a tag to compare

Fixes

  • Create timer in TransactionPerformanceCollector lazily (#2478)

6.12.0

16 Jan 11:45

Choose a tag to compare

Features

  • Attach View Hierarchy to the errored/crashed events (#2440)
  • Collect memory usage in transactions (#2445)
  • Add traceOptionsRequests option to disable tracing of OPTIONS requests (#2453)
  • Extend list of HTTP headers considered sensitive (#2455)

Fixes

  • Use a single TransactionPerfomanceCollector (#2464)
  • Don't override sdk name with Timber (#2450)
  • Set transactionNameSource to CUSTOM when setting transaction name (#2405)
  • Guard against CVE-2018-9492 "Privilege Escalation via Content Provider" (#2466)

6.11.0

30 Dec 13:16

Choose a tag to compare

Features

  • Disable Android concurrent profiling (#2434)
  • Add logging for OpenTelemetry integration (#2425)
  • Auto add OpenTelemetryLinkErrorEventProcessor for Spring Boot (#2429)

Fixes

  • Use minSdk compatible Objects class (#2436)
  • Prevent R8 from warning on missing classes, as we check for their presence at runtime (#2439)

Dependencies

6.10.0

16 Dec 13:48

Choose a tag to compare

Features

  • Add time-to-initial-display span to Activity transactions (#2369)
  • Start a session after init if AutoSessionTracking is enabled (#2356)
  • Provide automatic breadcrumbs and transactions for click/scroll events for Compose (#2390)
  • Add blocked_main_thread and call_stack to File I/O spans to detect performance issues (#2382)

Dependencies