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:
Sojan Jose
2023-03-02 16:00:16 +05:30
committed by GitHub
parent 89c391e7c0
commit b185059681
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
if ENV['DD_TRACE_AGENT_URL']
if ENV['DD_TRACE_AGENT_URL'].present?
Datadog.configure do |c|
# Instrumentation
c.tracing.instrument :rails

View File

@@ -1,4 +1,4 @@
if ENV['SENTRY_DSN']
if ENV['SENTRY_DSN'].present?
Sentry.init do |config|
config.dsn = ENV['SENTRY_DSN']
config.enabled_environments = %w[staging production]