Skip to content

Commit

Permalink
Sentry update to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ADIMANV committed Sep 17, 2024
1 parent 2198dff commit a248130
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,4 @@ yarl==1.9.4
zarr==2.17.0
zict==3.0.0
zipp==3.17.0
sentry-sdk
9 changes: 9 additions & 0 deletions satip/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,23 @@
import click
import pandas as pd
import structlog
import sentry_sdk

import satip
from satip import utils
from satip.constants import RSS_ID, SEVIRI_ID, SEVIRI_IODC_ID
from satip.eumetsat import EUMETSATDownloadManager

sentry_sdk.set_tag("app_name", "SATIP")
sentry_sdk.set_tag("version", version)

log = structlog.stdlib.get_logger()

sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN"),
environment=os.getenv("ENVIRONMENT", "local"),
traces_sample_rate=1
)

@click.command()
@click.option(
Expand Down

0 comments on commit a248130

Please sign in to comment.