Skip to content

Commit

Permalink
Only sample traces from one of our live boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Sep 19, 2023
1 parent d2f669f commit 0b4e38f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ansible/inventories/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ all:
internal_ip: "10.0.0.5"
dramatiq_threads: 2
dramatiq_processes: 3
sentry_trace_rate: 0
app2.thegreenwebfoundation.org:
internal_ip: "10.0.0.4"
dramatiq_threads: 2
dramatiq_processes: 3
sentry_trace_rate: 0
# TODO: once we have update the worker process names we can use app3 for serving production traffic
# letting us decommission some of the older app servers
app3.thegreenwebfoundation.org:
internal_ip: "10.0.0.6"
dramatiq_threads: 1
dramatiq_processes: 1
sentry_trace_rate: 1
app4.thegreenwebfoundation.org:
internal_ip: "10.0.0.7"
dramatiq_threads: 2
dramatiq_processes: 3
sentry_trace_rate: 0

vars:
tgwf_stage: "prod"
Expand Down
2 changes: 1 addition & 1 deletion ansible/templates/dotenv.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RABBITMQ_URL="{{ lookup('env', "RABBITMQ_URL") }}"

SENTRY_DSN="{{ lookup('env', "SENTRY_DSN") }}"
SENTRY_ENVIRONMENT="{{ lookup('env', "SENTRY_ENVIRONMENT") }}"
{% if sentry_sample_rate %}
{% if sentry_sample_rate is defined %}
SENTRY_SAMPLE_RATE = {{ sentry_sample_rate }}
{% endif %}

Expand Down

0 comments on commit 0b4e38f

Please sign in to comment.