Move public types to a more public place · Issue #4127 · getsentry/sentry-python · GitHub
Skip to content

Move public types to a more public place #4127

Description

@sentrivana

Problem Statement

See #4122

This is mostly about Event and Hint, but other types could be useful as well.

Currently, they are not easy to find -- IDEs have a hard time too. This makes writing custom callbacks like before_send harder than it should be.

Solution Brainstorm

We should consider moving them to types directly (instead of just re-exporting them there), or possibly even on the top level so that folks can just do from sentry_sdk import init, Event, Hint.

A small improvement for potel-base maybe?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions