Skip to content

Commit

Permalink
🔧 Add ELASTIC_APM_TRANSACTION_SAMPLE_RATE
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed May 17, 2024
1 parent a2ff5c8 commit 6e1ddee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions open_api_framework/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ def init_sentry(before_send: Callable | None = None):
),
"SECRET_TOKEN": config("ELASTIC_APM_SECRET_TOKEN", "default"),
"SERVER_URL": ELASTIC_APM_SERVER_URL,
"TRANSACTION_SAMPLE_RATE": config("ELASTIC_APM_TRANSACTION_SAMPLE_RATE", 0.1),
}
if not ELASTIC_APM_SERVER_URL:
ELASTIC_APM["ENABLED"] = False
Expand Down

0 comments on commit 6e1ddee

Please sign in to comment.