Skip to content

Commit

Permalink
First attempt to integrate sentry - test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bahill committed Jan 19, 2024
1 parent a191fe0 commit c422483
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions orchestration/hca_orchestration/pipelines/validate_ingress.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sentry_sdk

from dagster import (
HookContext,
InitResourceContext,
Expand All @@ -13,6 +15,12 @@
pre_flight_validate,
)

SENTRY_DSN = os.getenv(
"SENTRY_DSN",
"",
)
if SENTRY_DSN:
sentry_sdk.init(dsn=SENTRY_DSN, traces_sample_rate=1.0)

def run_config_for_validation_ingress_partition(
partition: Partition,
Expand Down

0 comments on commit c422483

Please sign in to comment.