Skip to content

Commit

Permalink
Exclude healthcheck URL from logfire
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed Dec 5, 2024
1 parent 9c0b27d commit d2ae01c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,10 @@
# Logfire
LOGFIRE_ENVIRONMENT = env("LOGFIRE_ENVIRONMENT")
logfire.configure(environment=LOGFIRE_ENVIRONMENT)
logfire.instrument_django()
logfire.instrument_django(
capture_headers=True,
excluded_urls="/healthcheck",
)

# Healthcheck app
HEALTHCHECK_PATH = env("HEALTHCHECK_PATH")

0 comments on commit d2ae01c

Please sign in to comment.