-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
SDK
Python SDK
Description
For example, in this document, there is a backslash in the regular expression string.
import sentry_sdk
sentry_sdk.init(
dsn="xxx",
trace_propagation_targets=[
"https://myproject.org",
+ "https://.*\.otherservice.org/.*",
],
# ...
)
Suggested Solution
Use raw string instead
import sentry_sdk
sentry_sdk.init(
dsn="xxx",
trace_propagation_targets=[
"https://myproject.org",
- "https://.*\.otherservice.org/.*",
+ r"https://.*\.otherservice.org/.*",
],
# ...
)
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Support