Skip to content
Snippets Groups Projects
Commit cc17f923 authored by Dean Lovett's avatar Dean Lovett
Browse files

chore: added check for socket variable

parent 14b93ed6
No related branches found
Tags 1.11.3
1 merge request!3chore: added check for socket variable
Pipeline #76579 failed
......@@ -6,7 +6,8 @@ module NexusSemanticLogger
class DatadogTracer
def initialize(service)
Datadog.configure do |c|
if ENV['DD_AGENT_HOST'].present?
# When using a socket, DD_AGENT_HOST will not be set, and DD_TRACE_AGENT_URL will be set instead.
if ENV['DD_AGENT_HOST'].present? || ENV['DD_TRACE_AGENT_URL'].present?
# Container and pod names should be set as env vars via the helm chart. Tagging metrics from the app
# with these values helps correlation with metrics from the kubernetes cluster.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment