Skip to content

Commit

Permalink
Merge pull request #436 from hellohaptik/disable_sentry_apm_alerts
Browse files Browse the repository at this point in the history
ignore elastic apm errors for sentry
  • Loading branch information
viraja1 authored Jun 15, 2021
2 parents 3ffa88b + 36385b1 commit afc39f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chatbot_ner/setup_sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def setup_sentry():
from sentry_sdk.integrations.logging import LoggingIntegration

def before_sentry_send(event, hint):
if event.get('logger', None) == 'elasticapm.transport':
return None
event.setdefault("tags", {})["cas_name"] = CLIENT_APPLICATIONS_SETUP_NAME
return event

Expand Down

0 comments on commit afc39f7

Please sign in to comment.