context ¶
Context management for Sentry events.
Functions:
-
set_user_context–Set user context for Sentry events.
-
set_tag–Set a tag in the current Sentry scope.
-
set_context–Set context data in the current Sentry scope.
-
set_command_context–Set command context for Sentry events.
-
track_command_start–Track command execution start time.
-
track_command_end–Track command execution end and performance metrics.
Functions¶
set_user_context ¶
Set user context for Sentry events.
set_context ¶
Set context data in the current Sentry scope.
set_command_context ¶
Python
set_command_context(ctx: ContextOrInteraction) -> None
Set command context for Sentry events.
track_command_start ¶
Python
track_command_start(command_name: str) -> None
Track command execution start time.
track_command_end ¶
Track command execution end and performance metrics.
_set_command_context_from_ctx ¶
Set context from a command context.
_set_command_context_from_interaction ¶
Python
_set_command_context_from_interaction(interaction: Interaction) -> None
Set context from an interaction.