nexus_semantic_logger 1.13.0 → 1.13.1
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: 6a41a831256431ac2150f39743a0f2b8cac8070bcedd98ff84e134b6f2b2f67f
|
4
|
+
data.tar.gz: 05340f8fbeb15d35306abe77fd9dd0437cbf50eca703f00a33be45206276d14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4be22b45266cbb87650a219e452cf0e3f87aa8b883112c1054cd0f259ddc8a241e176aaf35d6a49ee22fa23f5461ba65878ebdc048979d0dc6201e1af0749e
|
7
|
+
data.tar.gz: 1d9b1bf42450a7d8a16b778699441650afb4b0618b6c3dcba3917dbfbf86238dee726240f6b3de41bb9d719f601cbc67138506dede2d4169dafbcd0a7496eaee
|
@@ -27,7 +27,7 @@ module NexusSemanticLogger
|
|
27
27
|
hash.delete(:application)
|
28
28
|
hash.delete(:environment)
|
29
29
|
hash.delete('')
|
30
|
-
#
|
30
|
+
# datadog correlation inserted via log_tags, but datadog expects them in the root hash.
|
31
31
|
named_tags = hash.delete(:named_tags)
|
32
32
|
if named_tags.is_a?(Hash)
|
33
33
|
hash.deep_merge!(named_tags)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'datadog/statsd'
|
3
|
-
require '
|
3
|
+
require 'datadog'
|
4
4
|
|
5
5
|
module NexusSemanticLogger
|
6
6
|
class DatadogTracer
|
@@ -54,13 +54,13 @@ module NexusSemanticLogger
|
|
54
54
|
dd_tracer_enabled = Rails.env.production? || dd_force_tracer
|
55
55
|
c.tracing.enabled = dd_tracer_enabled
|
56
56
|
|
57
|
-
# Profiling is also provided by
|
57
|
+
# Profiling is also provided by datadog, we synchronise their feature toggles.
|
58
58
|
c.profiling.enabled = dd_tracer_enabled
|
59
59
|
end
|
60
60
|
|
61
61
|
c.tracing.instrument(:rails, service_name: service)
|
62
62
|
|
63
|
-
c.logger.level = Logger::WARN #
|
63
|
+
c.logger.level = Logger::WARN # datadog info logging is too verbose.
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module NexusSemanticLogger
|
3
|
-
# Leave this as 1.13.
|
4
|
-
VERSION = '1.13.
|
3
|
+
# Leave this as 1.13.1 in order for CI process to replace with the tagged version.
|
4
|
+
VERSION = '1.13.1'
|
5
5
|
end
|
@@ -4,7 +4,6 @@ require 'nexus_semantic_logger/application'
|
|
4
4
|
require 'nexus_semantic_logger/datadog_formatter'
|
5
5
|
require 'nexus_semantic_logger/datadog_singleton'
|
6
6
|
require 'nexus_semantic_logger/datadog_tracer'
|
7
|
-
require 'nexus_semantic_logger/ddtrace_ruby3_patch'
|
8
7
|
require 'nexus_semantic_logger/logger_metrics_subscriber'
|
9
8
|
|
10
9
|
module NexusSemanticLogger
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexus_semantic_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnathon Harris
|
@@ -125,7 +125,6 @@ files:
|
|
125
125
|
- lib/nexus_semantic_logger/datadog_formatter.rb
|
126
126
|
- lib/nexus_semantic_logger/datadog_singleton.rb
|
127
127
|
- lib/nexus_semantic_logger/datadog_tracer.rb
|
128
|
-
- lib/nexus_semantic_logger/ddtrace_ruby3_patch.rb
|
129
128
|
- lib/nexus_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
|
130
129
|
- lib/nexus_semantic_logger/logger_metrics_subscriber.rb
|
131
130
|
- lib/nexus_semantic_logger/sneakers_metrics.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require 'ddtrace'
|
3
|
-
|
4
|
-
# Temporary monkey patch for ddtrace 1.9 in ruby 3.2.
|
5
|
-
# Supposedly fixed in upstream 1.10, once that is released.
|
6
|
-
# See https://github.com/DataDog/dd-trace-rb/issues/2534
|
7
|
-
Datadog::Core::Environment::VMCache.class_eval do
|
8
|
-
module_function
|
9
|
-
|
10
|
-
# Ruby >= 3.2 uses :constant_cache_invalidations instead of :global_constant_state
|
11
|
-
# This is a temporary workaround, the correct solution is to report both :constant_cache_invalidations and
|
12
|
-
# :constant_cache_misses in DD
|
13
|
-
# See https://github.com/ruby/ruby/pull/5433,
|
14
|
-
# https://github.com/DataDog/dd-trace-rb/blob/v1.5.0/lib/datadog/core/environment/vm_cache.rb#L23-L25
|
15
|
-
def global_constant_state
|
16
|
-
RubyVM.stat[:constant_cache_invalidations]
|
17
|
-
end
|
18
|
-
end
|