Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Sentry.Dsn
Sourcedefault
is the DSN determined from SENTRY_DSN
in the environment (or None
if it's not set or invalid)
of_string dsn
parses the given DSN and returns the resulting Sentry config. You should generally not use this function directly and should use Sentry.context
(or Sentry.async_context
), which looks up the DSN for you from the environment.
The DSN should look like '{PROTOCOL}://{PUBLIC_KEY}:{PRIVATE_KEY}@{HOST}/{PATH}{PROJECT_ID}'
All values except for PRIVATE_KEY
are required. PROJECT_ID
must be an integer. In general you should get this value from Sentry and should not construct it yourself.
Returns None
if the DSN is invalid.
See docs: https://docs.sentry.io/quickstart/#about-the-dsn