Skip to content

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

@VolodymyrKorniichuk-GeoComply

Description

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

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions