Skip to content

chore(deps): update Java SDK to v8.58.0 - #5622

Merged
jamescrosswell merged 1 commit into
mainfrom
deps/scripts/update-java.ps1
Sep 25, 2026
Merged

jamescrosswell merged 1 commit into
mainfrom
deps/scripts/update-java.ps1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps scripts/update-java.ps1 from 8.57.0 to 8.58.0.

Auto-generated by a dependency updater.

Changelog

8.58.0

Features

  • Add LocalSentrySpan to sentry-compose so apps can provide a parent ISpan to a composable subtree and have nested SentryTraced spans attach to it ([#6112]feat(compose): Introduce LocalSentrySpan sentry-java#6112)

  • Add dataCollection, a fine-grained replacement for sendDefaultPii, for controlling data collected automatically by SDK integrations (#5759)

    [!WARNING]
    sendDefaultPii will be removed in the next major SDK version. Migrate to dataCollection before upgrading.

    • Until then, when dataCollection is not configured, the SDK preserves the existing sendDefaultPii behavior.
    • Configuring any dataCollection option makes it the source of truth. sendDefaultPii is then ignored, and omitted dataCollection options use the defaults below.
    • The Logback appender is a compatibility exception. When an encoder is configured, sendDefaultPii=true continues to include the original message template and parameters. To opt in independently of sendDefaultPii, set <includeUnencodedMessage>true</includeUnencodedMessage> on the Sentry appender in logback.xml or logback-spring.xml.
    • Data explicitly supplied through APIs such as Sentry.setUser, scopes, event processors, or beforeSend is not affected.

    To opt in to the documented dataCollection defaults without configuring an individual option:

    Sentry.init(options -> options.getDataCollection().forceDataCollection());
    Option Default Behavior
    userInfo true Allows integrations to populate user identity and IP address information automatically.
    cookies { mode: DENY_LIST, terms: [] } Collects cookies while filtering sensitive values.
    httpHeaders.request { mode: DENY_LIST, terms: [] } Collects request headers while filtering sensitive values.
    httpHeaders.response { mode: DENY_LIST, terms: [] } Collects response headers while filtering sensitive values.
    httpBodies All supported body types Collects supported incoming and outgoing request and response bodies. An empty set disables body collection.
    urlQueryParams { mode: DENY_LIST, terms: [] } Collects URL query parameters while filtering sensitive values.
    graphql.document true Collects GraphQL documents.
    graphql.variables true Collects GraphQL variables.
    databaseQueryData true Allows collection of associated query data, such as bound parameters, write payloads, and results, where supported. Sanitized query statements and structural database metadata remain available.
    filePaths true Allows file-system instrumentation to collect file and directory paths. File extensions and byte counts remain available when disabled.

    Cookies, HTTP headers, and URL query parameters support three modes:

    • OFF: Do not collect the category.
    • DENY_LIST: Collect values except those matching the built-in sensitive deny-list or additional configured terms.
    • ALLOW_LIST: Only send plaintext values for matching terms. The built-in sensitive deny-list still applies.

    Matching is case-insensitive and partial. The built-in sensitive deny-list contains auth, token, secret, password, passwd, pwd, key, jwt, bearer, sso, saml, csrf, xsrf, credentials, session, sid, and identity. Filtered values are replaced with "[Filtered]". Custom deny-list terms extend rather than replace this list.

    Configure all HTTP body types, a custom cookie deny-list, a request-header allow-list, and disable URL query parameter and file path collection in an options callback:

    Sentry.init(
        options -> {
          options
              .getDataCollection()
              .setHttpBodies(
                  EnumSet.of(
                      HttpBodyType.INCOMING_REQUEST,
                      HttpBodyType.OUTGOING_REQUEST,
                      HttpBodyType.INCOMING_RESPONSE,
                      HttpBodyType.OUTGOING_RESPONSE));
          options
              .getDataCollection()
              .setCookies(
                  KeyValueCollectionBehavior.denyList(
                      "forwarded", "-ip", "remote-", "via", "-user"));
          options
              .getDataCollection()
              .getHttpHeaders()
              .setRequest(
                  KeyValueCollectionBehavior.allowList("content-type", "x-request-id"));
          options
              .getDataCollection()
              .setUrlQueryParams(KeyValueCollectionBehavior.off());
          options.getDataCollection().setFilePaths(false);
        });

    Configure the same options in sentry.properties:

    data-collection.http-bodies=incoming_request,outgoing_request,incoming_response,outgoing_response
    data-collection.cookies.mode=deny_list
    data-collection.cookies.terms=forwarded,-ip,remote-,via,-user
    data-collection.http-headers.request.mode=allow_list
    data-collection.http-headers.request.terms=content-type,x-request-id
    data-collection.url-query-params.mode=off
    data-collection.file-paths=false

    Configure them with Spring Boot properties:

    sentry.data-collection.http-bodies=incoming-request,outgoing-request,incoming-response,outgoing-response
    sentry.data-collection.cookies.mode=deny-list
    sentry.data-collection.cookies.terms=forwarded,-ip,remote-,via,-user
    sentry.data-collection.http-headers.request.mode=allow-list
    sentry.data-collection.http-headers.request.terms=content-type,x-request-id
    sentry.data-collection.url-query-params.mode=off
    sentry.data-collection.file-paths=false

    Configure them in AndroidManifest.xml:

    <meta-data
        android:name="io.sentry.data-collection.http-bodies"
        android:value="incoming_request,outgoing_request,incoming_response,outgoing_response" />
    <meta-data
        android:name="io.sentry.data-collection.cookies.mode"
        android:value="deny_list" />
    <meta-data
        android:name="io.sentry.data-collection.cookies.terms"
        android:value="forwarded,-ip,remote-,via,-user" />
    <meta-data
        android:name="io.sentry.data-collection.http-headers.request.mode"
        android:value="allow_list" />
    <meta-data
        android:name="io.sentry.data-collection.http-headers.request.terms"
        android:value="content-type,x-request-id" />
    <meta-data
        android:name="io.sentry.data-collection.url-query-params.mode"
        android:value="off" />
    <meta-data
        android:name="io.sentry.data-collection.file-paths"
        android:value="false" />

    See the Data Collection documentation for all configuration keys, supported integrations, and migration guidance.

Fixes

  • Disable URL caching when reading META-INF/MANIFEST.MF files during version detection so that the SDK no longer keeps jar file handles open for the life of the process (#6124

  • Keep the EventListener wrapped by SentryOkHttpEventListener per Call (#6003)

  • Support ws and wss URL parsing for WebSocket instrumentation (#6064)

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Sep 24, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from 35cceee to b59f397 Compare September 24, 2026 03:01
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Sep 24, 2026
@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.85%. Comparing base (5dbddb2) to head (fb77ef7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5622      +/-   ##
==========================================
- Coverage   74.97%   74.85%   -0.12%     
==========================================
  Files         515      515              
  Lines       18962    18962              
  Branches     3694     3694              
==========================================
- Hits        14216    14194      -22     
- Misses       3866     3891      +25     
+ Partials      880      877       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from b59f397 to fb77ef7 Compare September 25, 2026 03:01

@jamescrosswell jamescrosswell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: eligibility script verdict MERGE (CI green, mergeable, no human change-request, no breaking-change language).

@jamescrosswell
jamescrosswell merged commit 7a6db80 into main Sep 25, 2026
49 checks passed
@jamescrosswell
jamescrosswell deleted the deps/scripts/update-java.ps1 branch September 25, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants