Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nexus_semantic_logger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
nexus_semantic_logger
Commits
cc17f923
Commit
cc17f923
authored
10 months ago
by
Dean Lovett
Browse files
Options
Downloads
Patches
Plain Diff
chore: added check for socket variable
parent
14b93ed6
No related branches found
Branches containing commit
Tags
1.11.3
Tags containing commit
1 merge request
!3
chore: added check for socket variable
Pipeline
#76579
failed
10 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/nexus_semantic_logger/datadog_tracer.rb
+2
-1
2 additions, 1 deletion
lib/nexus_semantic_logger/datadog_tracer.rb
with
2 additions
and
1 deletion
lib/nexus_semantic_logger/datadog_tracer.rb
+
2
−
1
View file @
cc17f923
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment