Skip to content

pip install "sentry-sdk" #115548

@pardeepbhangu126

Description

@pardeepbhangu126

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

import sentry_sdk

sentry_sdk.init(
dsn="https://5ebd59d6eb7e33caab7d6901bc41b3b7@o4511388030205952.ingest.us.sentry.io/4511388040626176",
# Add data like request headers and IP for users,
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
send_default_pii=True,
)

Expected Result

Install

Install our Python SDK:

pip install "sentry-sdk"

Configure SDK

Import and initialize the Sentry SDK early in your application's setup:

import sentry_sdk

sentry_sdk.init(
    dsn="https://5ebd59d6eb7e33caab7d6901bc41b3b7@o4511388030205952.ingest.us.sentry.io/4511388040626176",
    # Add data like request headers and IP for users,
    # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
    send_default_pii=True,
)

Verify

You can verify your setup by intentionally causing an error that breaks your application:

division_by_zero = 1 / 0

Actual Result

ABH43V9RN___Security___Compliance_Information (1).csv

Product Area

Projects - Project Creation

Link

pip install "sentry-sdk"

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions