openpectus.sentry

Attributes

_event_levels

EVENT_LEVEL_DEFAULT

EVENT_LEVEL_NAMES

SENTRY_DEBUG

Functions

_get_event_level_from_name(event_level_name)

init_aggregator(event_level_name)

Initialize sentry logging for the aggregator component.

init_engine(event_level_name)

Initialize sentry logging for the engine component.

set_engine_uod(uod)

Attaches tags uod_instrument and uod_location to events.

engine_method_set(pcode)

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:

uod (openpectus.lang.exec.uod.UnitOperationDefinitionBase)

openpectus.sentry.engine_method_set(pcode)

Attaches tag ‘method’ with pcode source to events

Parameters:

pcode (str)