Skip to content

Commit

Permalink
add sentry tag
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 3, 2024
1 parent d38e375 commit fd583d8
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 fd583d8

Please sign in to comment.