openpectus.sentry
Attributes
Functions
|
|
|
Initialize sentry logging for the aggregator component. |
|
Initialize sentry logging for the engine component. |
|
Attaches tags uod_instrument and uod_location to events. |
|
Attaches tag 'method' with pcode source to events |
Module Contents
- openpectus.sentry._event_levels: list[int]
- openpectus.sentry.EVENT_LEVEL_DEFAULT: str
- openpectus.sentry.EVENT_LEVEL_NAMES: list[str]
- openpectus.sentry.SENTRY_DEBUG = False
- openpectus.sentry._get_event_level_from_name(event_level_name)
- Parameters:
event_level_name (str)
- Return type:
int
- openpectus.sentry.init_aggregator(event_level_name)
Initialize sentry logging for the aggregator component.
Note: call after initializing logging.
Enables integrations FastAPI and Starlette
Attaches component=’aggregator’ to all events
- Parameters:
event_level_name (str)
- openpectus.sentry.init_engine(event_level_name)
Initialize sentry logging for the engine component.
Attaches tag component=’engine’ to all events
- Parameters:
event_level_name (str)
- openpectus.sentry.set_engine_uod(uod)
Attaches tags uod_instrument and uod_location to events.
- Parameters:
- openpectus.sentry.engine_method_set(pcode)
Attaches tag ‘method’ with pcode source to events
- Parameters:
pcode (str)