Skip to content

Move public types to a more public place #4127

@sentrivana

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?

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions