SentryEventInfo#

class safir.slack.blockkit.SentryEventInfo(tags=<factory>, contexts=<factory>, attachments=<factory>, username=None)#

Bases: object

A collection of metadata to add to Sentry events.

The overrideable to_sentry method returns an object of this type.

Parameters:

Attributes Summary

attachments

Long strings of text, or other files, to add to a Sentry event.

contexts

Detailed information to add to a Sentry event.

tags

Short key-value pairs to add to a Sentry event.

username

Attributes Documentation

attachments: dict[str, Any] = <dataclasses._MISSING_TYPE object>#

Long strings of text, or other files, to add to a Sentry event.

Attachments can hold the most text, but are the hardest to view in the Sentry UI. They can also hold non-text files.

contexts: dict[str, dict[str, Any]] = <dataclasses._MISSING_TYPE object>#

Detailed information to add to a Sentry event.

You can not search by context values, but you can store more data in them.

tags: dict[str, str] = <dataclasses._MISSING_TYPE object>#

Short key-value pairs to add to a Sentry event.

Use tags for small values that you would like to search by and aggregate over when analyzing multiple Sentry events in the Sentry UI.

username: str | None = None#