Skip to content

Commit

Permalink
additional docstrings for Sentry utility
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Nov 17, 2023
1 parent 4d7bcc8 commit 21bebad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions harvester/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ def send_sentry_message(
This allows both reporting information without raising an Exception, and optionally
including additional information in the sent Sentry message via "scopes".
:param message: primary message string for Sentry message
:param scopes: dictionary of key/value pairs which become additional information
in the Sentry message
:param level: string of [info,debug,warning,error] that will set the severity of the
message in Sentry
"""
with sentry_sdk.push_scope() as scope:
if scopes:
Expand Down

0 comments on commit 21bebad

Please sign in to comment.