nexus_semantic_logger 1.13.1 → 1.13.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 +4 -4
- data/README.md +0 -8
- data/lib/nexus_semantic_logger/version.rb +2 -2
- data/lib/puma/plugin/nexus_puma_statsd.rb +0 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a3c761d1c0fc6c2e65017b6fe8bfb838dc0bc08d6c520feb3f1f815881b92d5
|
4
|
+
data.tar.gz: 00254177ec999be8a195bf43451010605ab2d6b000f8fc3e44592b233b8a7c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
4
|
-
VERSION = '1.13.
|
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
|