nexus_semantic_logger 1.12.12 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ffe47db66b655b68cdb1aec2623c866b76275c470a4893269e9693a4352e9c2
4
- data.tar.gz: c2de8bb467f2c738be827dc6005539a37411f8dff91d251ac1ca98e25260886c
3
+ metadata.gz: 4c477b48cfcab9c3ddfbf65d4a80bccc19e699b6338382ea229ce119e789485f
4
+ data.tar.gz: 7d24faf2f1422d68ed2c3974e8e5df69e8dfa3314a918af96bf467b12af163c5
5
5
  SHA512:
6
- metadata.gz: af0e05963b659da545f9b8ad0420ee72aa6bc04b16cad3727a6d0f7ca80ee2d7dc1da04221815c24995afeddb828e9b3624d655b68e77a6dc8b287a5c6c6e39d
7
- data.tar.gz: 562af249df1f57f678d752a4c9eeddba91dfb4e1676a90776a58f31c329227da6d6db570698e54a902043d92531b34b7cebf5d0519ed1ed24245e44298af9ba1
6
+ metadata.gz: 67e59f0ff24a8e4817001e604f17a6759fce0d9a96742b02ad86cc1c9eca20880986c0541e10e7638f2385a95c0c30af022b83ea410e9b9e63785192fa5d46d6
7
+ data.tar.gz: 847930aa3a5a3f41ba465fae1cec41a107c47cf6b329b6e4ac0c6472457f27cedb8046c5bbfe224c174525b517ee05a27e536cec367ab673794cac9bf9ee5c50
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusSemanticLogger
3
- # Leave this as 1.12.12 in order for CI process to replace with the tagged version.
4
- VERSION = '1.12.12'
3
+ # Leave this as 1.13.0 in order for CI process to replace with the tagged version.
4
+ VERSION = '1.13.0'
5
5
  end
@@ -6,7 +6,6 @@ require 'nexus_semantic_logger/datadog_singleton'
6
6
  require 'nexus_semantic_logger/datadog_tracer'
7
7
  require 'nexus_semantic_logger/ddtrace_ruby3_patch'
8
8
  require 'nexus_semantic_logger/logger_metrics_subscriber'
9
- require 'nexus_semantic_logger/response_code_stats_middleware'
10
9
 
11
10
  module NexusSemanticLogger
12
11
  # Get application wide object for sending metrics.
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  end
15
15
  spec.require_paths = ['lib']
16
16
  spec.add_dependency('amazing_print', '~> 1.4.0')
17
- spec.add_dependency('ddtrace', '~> 1.22') # For datadog tracing/profiling.
17
+ spec.add_dependency('datadog', '~> 2.4.0') # For datadog tracing/profiling.
18
18
  spec.add_dependency('dogstatsd-ruby', '~> 5.4.0') # For custom application metrics.
19
19
  spec.add_dependency('google-protobuf', '~> 3.25.5')
20
20
  spec.add_dependency('net_tcp_client', '~> 2.2.0') # For TCP logging.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.12
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnathon Harris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-23 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazing_print
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: ddtrace
28
+ name: datadog
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.22'
33
+ version: 2.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.22'
40
+ version: 2.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dogstatsd-ruby
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,7 +128,6 @@ files:
128
128
  - lib/nexus_semantic_logger/ddtrace_ruby3_patch.rb
129
129
  - lib/nexus_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
130
130
  - lib/nexus_semantic_logger/logger_metrics_subscriber.rb
131
- - lib/nexus_semantic_logger/response_code_stats_middleware.rb
132
131
  - lib/nexus_semantic_logger/sneakers_metrics.rb
133
132
  - lib/nexus_semantic_logger/version.rb
134
133
  - lib/puma/plugin/README.md
@@ -152,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
151
  - !ruby/object:Gem::Version
153
152
  version: '0'
154
153
  requirements: []
155
- rubygems_version: 3.5.19
154
+ rubygems_version: 3.5.21
156
155
  signing_key:
157
156
  specification_version: 4
158
157
  summary: semantic_logger usage for nexus
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # noinspection RubyClassVariableUsageInspection
4
- module NexusSemanticLogger
5
- class ResponseCodeStatsMiddleware
6
- @@code_metrics = Hash.new(0)
7
- def initialize(app)
8
- @app = app
9
- end
10
-
11
- def call(env)
12
- status, headers, response = @app.call(env)
13
-
14
- @@code_metrics[status] ||= 0
15
- @@code_metrics[status] += 1
16
-
17
- [status, headers, response]
18
- end
19
-
20
- def self.read_and_reset_metrics
21
- metrics = @@code_metrics.dup
22
- @@code_metrics = Hash.new(0)
23
- metrics
24
- end
25
- end
26
- end