Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting release in my app #120

Closed
akramShokri opened this issue Feb 28, 2017 · 2 comments
Closed

Setting release in my app #120

akramShokri opened this issue Feb 28, 2017 · 2 comments

Comments

@akramShokri
Copy link

Hi
I need to setRelease in my code because for me release name is not neccessarily app version name. Currently the value which I set in setRelease method is overrided with sentry library. Would you please make this override optional or somehow managable in your future release?

Thanks.

@marcomorain
Copy link
Collaborator

Hi @akramShokri thanks for logging this - it's a bug.

To work around this you can use a listener when you initialise Sentry:

Sentry.setCaptureListener(new SentryEventCaptureListener() {
    @Override
    public SentryEventBuilder beforeCapture(SentryEventBuilder builder) {
        return builder.setRelease("my-release-version");
    }
});

I'll work on a fix also.

marcomorain added a commit that referenced this issue Feb 28, 2017
Fix a bug where the user-specified release tag was overridden by the
package-specified version.

Fixes #120
@akramShokri
Copy link
Author

Thanks for the comment and for the fix.
I didn't get your comment on email (don't know why :\ ) until today that I checked this issue.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants