chore: Handle APM variables being empty (#6594)
- handle the case where the system fails to start when empty APM environment variables are present
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
if ENV['DD_TRACE_AGENT_URL']
|
if ENV['DD_TRACE_AGENT_URL'].present?
|
||||||
Datadog.configure do |c|
|
Datadog.configure do |c|
|
||||||
# Instrumentation
|
# Instrumentation
|
||||||
c.tracing.instrument :rails
|
c.tracing.instrument :rails
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if ENV['SENTRY_DSN']
|
if ENV['SENTRY_DSN'].present?
|
||||||
Sentry.init do |config|
|
Sentry.init do |config|
|
||||||
config.dsn = ENV['SENTRY_DSN']
|
config.dsn = ENV['SENTRY_DSN']
|
||||||
config.enabled_environments = %w[staging production]
|
config.enabled_environments = %w[staging production]
|
||||||
|
|||||||
Reference in New Issue
Block a user