nexus_semantic_logger 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df6df450ca9ca0e10ab5b1f10038cdf2e037479dc4eb79447098534c78086a1d
|
4
|
+
data.tar.gz: d7d96384b2f7869f4e1dbe2869805f4aaad4373b15a9c8e18e1b93e4b4899541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8768b92f9274e42e4e2c7a3e9ab5b382cf624f6a2ae26254a5221c05c2d40c2594915d08ca1c094820e0599ccecdab8142eeb7c3edfa6a08c5aa647a0c6eb369
|
7
|
+
data.tar.gz: 35bc73655ab7ae2c42fdd9737efdf80d56605ae4051b67cb0fb9fc3780acc6c58f5caeb36710637249dec9edce3a4bf23febae83e7653ae9e78a5f1044a0bdae
|
@@ -15,10 +15,10 @@ module NexusSemanticLogger
|
|
15
15
|
# By default, runtime metrics from the application are sent to the Datadog Agent with DogStatsD on port 8125.
|
16
16
|
datadog_singleton = DatadogSingleton.instance
|
17
17
|
datadog_statsd_socket_path = ENV.fetch('DD_STATSD_SOCKET_PATH') { '' }
|
18
|
-
if datadog_statsd_socket_path.to_s.strip.empty?
|
19
|
-
|
18
|
+
datadog_singleton.statsd = if datadog_statsd_socket_path.to_s.strip.empty?
|
19
|
+
Datadog::Statsd.new(ENV['DD_AGENT_HOST'], 8125)
|
20
20
|
else
|
21
|
-
|
21
|
+
Datadog::Statsd.new(socket_path: datadog_statsd_socket_path)
|
22
22
|
end
|
23
23
|
c.runtime_metrics.statsd = datadog_singleton.statsd
|
24
24
|
|
@@ -32,7 +32,7 @@ module NexusSemanticLogger
|
|
32
32
|
dd_force_tracer_val = ENV.fetch('DD_FORCE_TRACER', false)
|
33
33
|
dd_force_tracer = dd_force_tracer_val.present? && dd_force_tracer_val.to_s == 'true'
|
34
34
|
dd_tracer_enabled = Rails.env.production? || dd_force_tracer
|
35
|
-
c.
|
35
|
+
c.tracing.enabled = dd_tracer_enabled
|
36
36
|
|
37
37
|
# Profiling is also provided by ddtrace, we synchronise their feature toggles.
|
38
38
|
c.profiling.enabled = dd_tracer_enabled
|
@@ -40,11 +40,11 @@ module NexusSemanticLogger
|
|
40
40
|
else
|
41
41
|
# If there is no DD_AGENT_HOST then ensure features are disabled.
|
42
42
|
c.runtime_metrics.enabled = false
|
43
|
-
c.
|
43
|
+
c.tracing.enabled = false
|
44
44
|
c.profiling.enabled = false
|
45
45
|
end
|
46
46
|
|
47
|
-
c.
|
47
|
+
c.tracing.instrument(:rails, service_name: service)
|
48
48
|
|
49
49
|
c.logger.level = Logger::WARN # ddtrace info logging is too verbose.
|
50
50
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module NexusSemanticLogger
|
3
|
-
# Leave this as 1.11.
|
4
|
-
VERSION = '1.11.
|
3
|
+
# Leave this as 1.11.2 in order for CI process to replace with the tagged version.
|
4
|
+
VERSION = '1.11.2'
|
5
5
|
end
|