Skip to content

Commit

Permalink
feat: envs
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvescosta committed May 4, 2024
1 parent 9c7ced0 commit 49a68db
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
19 changes: 17 additions & 2 deletions examples/rmq-consumer/.env.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RUST_ENV=staging
RUST_ENV=local
LOG_LEVEL=debug

ENABLE_HEALTH_READINESS=true
Expand All @@ -9,4 +9,19 @@ SECRET_MANAGER=NONE
RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASSWORD=
RABBITMQ_PASSWORD=

#OTLP Configs
ENABLE_TRACES=false
TRACE_SERVICE_TYPE=HTTP
TRACE_HOST=localhost
TRACE_KEY=key
TRACE_EXPORT_TIMEOUT=60
TRACE_EXPORT_RATE_BASE=0.7

ENABLE_METRICS=false
METRIC_SERVICE_TYPE=HTTP
METRIC_HOST=localhost
METRIC_KEY=key
METRIC_EXPORT_TIMEOUT=60
METRIC_EXPORT_RATE_BASE=0.7
19 changes: 17 additions & 2 deletions examples/rmq-consumer/.env.prod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RUST_ENV=staging
RUST_ENV=prod
LOG_LEVEL=debug

ENABLE_HEALTH_READINESS=true
Expand All @@ -9,4 +9,19 @@ SECRET_MANAGER=NONE
RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASSWORD=
RABBITMQ_PASSWORD=

#OTLP Configs
ENABLE_TRACES=false
TRACE_SERVICE_TYPE=HTTP
TRACE_HOST=localhost
TRACE_KEY=key
TRACE_EXPORT_TIMEOUT=60
TRACE_EXPORT_RATE_BASE=0.7

ENABLE_METRICS=false
METRIC_SERVICE_TYPE=HTTP
METRIC_HOST=localhost
METRIC_KEY=key
METRIC_EXPORT_TIMEOUT=60
METRIC_EXPORT_RATE_BASE=0.7
17 changes: 16 additions & 1 deletion examples/rmq-consumer/.env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,19 @@ SECRET_MANAGER=NONE
RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASSWORD=
RABBITMQ_PASSWORD=

#OTLP Configs
ENABLE_TRACES=false
TRACE_SERVICE_TYPE=HTTP
TRACE_HOST=localhost
TRACE_KEY=key
TRACE_EXPORT_TIMEOUT=60
TRACE_EXPORT_RATE_BASE=0.7

ENABLE_METRICS=false
METRIC_SERVICE_TYPE=HTTP
METRIC_HOST=localhost
METRIC_KEY=key
METRIC_EXPORT_TIMEOUT=60
METRIC_EXPORT_RATE_BASE=0.7

0 comments on commit 49a68db

Please sign in to comment.