Skip to content

SentryEvent#getExtras is package-private. #1383

@wzieba

Description

@wzieba

Platform:

  • Android -> If yes, which Device API (and compileSdkVersion/targetSdkVersion/Build tools) version?
    Device API: 26
    compileSdkVersion: 30
    targetSdkVersion: 30
    buildTools: applied by Android Gradle Plugin

IDE:

  • Android Studio -> If yes, which version?
    4.2 beta 3

Build system:

  • Gradle -> If yes, which version?
    6.7.1

Android Gradle Plugin:

  • Yes -> If yes, which version?
    4.2.0-beta03

Sentry Android Gradle Plugin:

  • No

Proguard/R8:

  • Disabled

Platform installed with:

  • Maven Central

The version of the SDK:
4.3.0


I have the following issue:

I'm writing a library that proxies Sentry. One of the use cases we have is to provide a callback to the library client before sending a SentryEvent. In this callback we'd like to attach all SentryEvent's extras so the client can decide what to do: add some new extras, update or existing ones.

As Sentry doesn't allow us to get all extras (only a single extra for key), I can't see a way to implement our use case.

Would you consider making SentryEvent#getExtras a public method?

Actual result:

  • SentryEvent#getExtras is package-private

Expected result:

  • SentryEvent#getExtras is public

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions