Skip to content

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:

Functions

on_command async
Python
on_command(ctx: Context[Tux]) -> None

Track command start and set context for prefix commands.

on_command_completion async
Python
on_command_completion(ctx: Context[Tux]) -> None

Track successful command completion.

on_app_command_completion async
Python
on_app_command_completion(interaction: Interaction) -> None

Track successful app command completion.

cog_load async
Python
cog_load() -> None

Log when cog is loaded.

cog_unload async
Python
cog_unload() -> None

Log when cog is unloaded.

Functions

setup async

Python
setup(bot: Tux) -> None

Cog setup for Sentry handler.

Parameters:

  • bot (Tux) –

    The bot instance.