Skip to content

Commit

Permalink
Merge pull request #185 from openclimatefix/issue/sentry-tag
Browse files Browse the repository at this point in the history
add sentry tag
  • Loading branch information
peterdudfield authored Sep 3, 2024
2 parents d38e375 + fd583d8 commit 793b6b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pv_site_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def is_fake():
environment=os.getenv("ENVIRONMENT", "local"),
traces_sampler=traces_sampler,
)
sentry_sdk.set_tag("app_name", "quartz-solar-api-site")
sentry_sdk.set_tag("app_version", pv_site_api.__version__)

app = FastAPI(docs_url="/swagger", redoc_url=None)

Expand Down

0 comments on commit 793b6b5

Please sign in to comment.