Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry update to the code #291

Merged
merged 8 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- rioxarray
- fsspec
- satpy
- sentry
- pip:
- aiobotocore==2.12.1
- aiohttp==3.9.3
Expand Down Expand Up @@ -42,3 +43,4 @@ dependencies:
- urllib3==1.26.18
- wrapt==1.16.0
- yarl==1.9.4
- sentry==2.1.1
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 @@ -16,15 +16,24 @@

import click
import pandas as pd
import sentry_sdk
import structlog
ADIMANV marked this conversation as resolved.
Show resolved Hide resolved

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")
ADIMANV marked this conversation as resolved.
Show resolved Hide resolved
sentry_sdk.set_tag("version", satip.__version__)

log = structlog.stdlib.get_logger()

ADIMANV marked this conversation as resolved.
Show resolved Hide resolved
sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN"),
environment=os.getenv("ENVIRONMENT", "local"),
traces_sample_rate=1
)

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