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

adjust DSN for Android. #114

Merged
merged 4 commits into from
May 9, 2022
Merged

adjust DSN for Android. #114

merged 4 commits into from
May 9, 2022

Conversation

lucas-zimerman
Copy link
Collaborator

This additional step alters the current DSN on Android if ran on Saas to use the alternative URL in order to communicate with the server to avoid mono/mono#21233

Fixes #107

// Instead of users altering their DSN on their code to use an alternative DSN
// We'll alter their DSN to the alternative one that works with Xamarin Android.
// More information: https://github.com/xamarin/xamarin-android/issues/6351
=> options.Dsn = options.Dsn is not null ? Regex.Replace(options.Dsn, "@.*.ingest.sentry", "@sentry") : null;
Copy link
Member

Choose a reason for hiding this comment

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

did you mean:

Suggested change
=> options.Dsn = options.Dsn is not null ? Regex.Replace(options.Dsn, "@.*.ingest.sentry", "@sentry") : null;
=> options.Dsn = options.Dsn is not null ? Regex.Replace(options.Dsn, "@o\d+\.ingest\.sentry", "@sentry") : null;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could use this option but I slightly changed it to "@o\\d+\\.ingest\\.sentry" otherwise it wouldn't recognize the slash as a character.

CHANGELOG.md Outdated Show resolved Hide resolved
lucas-zimerman and others added 2 commits May 4, 2022 14:55
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
@lucas-zimerman lucas-zimerman merged commit e41ae62 into main May 9, 2022
@lucas-zimerman lucas-zimerman deleted the fix/dsn branch May 9, 2022 02:14
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

Successfully merging this pull request may close these issues.

Documentation - change DSN to https://abc@sentry.io/1234
2 participants