cog ¶
Sentry integration cog for command tracking and context enrichment.
Classes:
-
SentryHandler–Handles Sentry context enrichment and command performance tracking.
Functions:
-
setup–Cog setup for Sentry handler.
Classes¶
SentryHandler ¶
Python
SentryHandler(bot: Tux)
Bases: Cog
Handles Sentry context enrichment and command performance tracking.
Initialize the Sentry handler cog.
Parameters:
-
bot(Tux) –The bot instance to attach the handler to.
Methods:
-
on_command–Track command start and set context for prefix commands.
-
on_command_completion–Track successful command completion.
-
on_app_command_completion–Track successful app command completion.
-
cog_load–Log when cog is loaded.
-
cog_unload–Log when cog is unloaded.
Functions¶
on_command async ¶
Track command start and set context for prefix commands.
on_command_completion async ¶
Track successful command completion.
on_app_command_completion async ¶
Python
on_app_command_completion(interaction: Interaction) -> None
Track successful app command completion.