nexus_semantic_logger 1.13.1 → 1.13.2

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: 6a41a831256431ac2150f39743a0f2b8cac8070bcedd98ff84e134b6f2b2f67f
4
- data.tar.gz: 05340f8fbeb15d35306abe77fd9dd0437cbf50eca703f00a33be45206276d14c
3
+ metadata.gz: 6a3c761d1c0fc6c2e65017b6fe8bfb838dc0bc08d6c520feb3f1f815881b92d5
4
+ data.tar.gz: 00254177ec999be8a195bf43451010605ab2d6b000f8fc3e44592b233b8a7c80
5
5
  SHA512:
6
- metadata.gz: eb4be22b45266cbb87650a219e452cf0e3f87aa8b883112c1054cd0f259ddc8a241e176aaf35d6a49ee22fa23f5461ba65878ebdc048979d0dc6201e1af0749e
7
- data.tar.gz: 1d9b1bf42450a7d8a16b778699441650afb4b0618b6c3dcba3917dbfbf86238dee726240f6b3de41bb9d719f601cbc67138506dede2d4169dafbcd0a7496eaee
6
+ metadata.gz: 2549c8c1ec41b00751c91a57c005495f5579cb75e3365e0535fe8025e205cf7cc4a1d8e461b5e99534b8334284257e5fa830b02e6b0ea33c4b1207fd6dc62407
7
+ data.tar.gz: 424e6ef878315bd2784ebd81ef3102460e9a9ea3f14fd243bcebe05098c10822f02d39971af01a1d30d0d6d9ae778b20e0718489a4cc8b24af4fc06c2f271f8f
data/README.md CHANGED
@@ -10,7 +10,6 @@ As well as providing a semantic logger, this gem handles datadog telemetry assoc
10
10
  * traces
11
11
  * metrics
12
12
  * statsd is automatically attached to datadog runtime metrics and may also be used for custom metrics.
13
- * `ResponseCodeStatsMiddleware` is included to capture response code metrics from rack applications
14
13
 
15
14
  ### Customise log level per logger
16
15
 
@@ -61,13 +60,6 @@ For example, to increment a count:
61
60
  NexusSemanticLogger.metrics.increment('nexus.users.registration.complete')
62
61
  ```
63
62
 
64
- ### Rack response code metrics
65
- This can be configured with a middleware in application.rb
66
-
67
- ```
68
- config.middleware.use ResponseCodeStatsMiddleware
69
- ```
70
-
71
63
  # Local gem development
72
64
 
73
65
  Steps to run this gem from local sources in one the nexus 'staged build' rails components:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusSemanticLogger
3
- # Leave this as 1.13.1 in order for CI process to replace with the tagged version.
4
- VERSION = '1.13.1'
3
+ # Leave this as 1.13.2 in order for CI process to replace with the tagged version.
4
+ VERSION = '1.13.2'
5
5
  end
@@ -164,14 +164,6 @@ Puma::Plugin.create do
164
164
  NexusSemanticLogger.metrics.gauge('puma.pool_capacity', stats.pool_capacity, tags: tags)
165
165
  NexusSemanticLogger.metrics.gauge('puma.max_threads', stats.max_threads, tags: tags)
166
166
  NexusSemanticLogger.metrics.count('puma.requests_count', stats.requests_count, tags: tags)
167
-
168
- NexusSemanticLogger::ResponseCodeStatsMiddleware.read_and_reset_metrics.each do |code, count|
169
- NexusSemanticLogger.metrics.count(
170
- "puma.rack.response.status",
171
- count,
172
- tags: tags + ["response_status:#{code}"]
173
- )
174
- end
175
167
  rescue StandardError => e
176
168
  @log_writer.unknown_error(e, nil, '! statsd: notify stats failed')
177
169
  ensure
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.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnathon Harris