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

Wrong documentation for 'dsn' option in Native SDK #11582

Open
VolodymyrKorniichuk-GeoComply opened this issue Oct 16, 2024 · 1 comment
Open
Labels

Comments

@VolodymyrKorniichuk-GeoComply
Copy link

VolodymyrKorniichuk-GeoComply commented Oct 16, 2024

SDK

Native SDK (Windows, macOS)

Description

On the page https://docs.sentry.io/platforms/native/configuration/options/ documentation says:

dsn
The DSN tells the SDK where to send the events. If this value is not provided, the SDK will try to read it from the SENTRY_DSN environment variable. If that variable also does not exist, the SDK will just not send any events.

This was true in some older versions of SDK (for example, when I used Native SDK 0.6.2). Now, I switched 0.7.9 and in case I don't set DSN (in debug builds, for example), sentry_init returns error 1. So, the description "If that variable also does not exist, the SDK will just not send any events" is not complete. SDK will also return 1 from sentry_init and not start crash handler at all.

Suggested Solution

No response

@VolodymyrKorniichuk-GeoComply VolodymyrKorniichuk-GeoComply added SDKs Type: Content Issues about the contents of our docs labels Oct 16, 2024
@getsantry
Copy link
Contributor

getsantry bot commented Oct 16, 2024

Assigning to @getsentry/support for routing ⏲️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Waiting for: Support
Status: Needs Discussion
Development

No branches or pull requests

1 participant