chronos-ruby 1.0.0 → 1.2.0.pre.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 +4 -4
- data/CHANGELOG.md +36 -0
- data/README.md +27 -13
- data/contracts/apm-batch-v1.schema.json +51 -1
- data/docs/adr/ADR-010-opentelemetry-interoperability.md +3 -3
- data/docs/adr/ADR-015-bounded-apm-aggregation.md +3 -3
- data/docs/adr/ADR-019-bounded-query-diagnostics.md +44 -0
- data/docs/architecture.md +5 -2
- data/docs/compatibility.md +12 -18
- data/docs/configuration.md +27 -2
- data/docs/data-collected.md +9 -3
- data/docs/examples/plain-ruby.md +6 -0
- data/docs/modules/apm-aggregation.md +18 -5
- data/docs/modules/context.md +1 -1
- data/docs/modules/external-http.md +3 -2
- data/docs/modules/sidekiq-legacy.md +1 -1
- data/docs/modules/sql-monitoring.md +60 -6
- data/docs/modules/telemetry-events.md +1 -1
- data/docs/performance.md +19 -3
- data/docs/privacy-lgpd.md +6 -3
- data/docs/protocol-v1.md +1 -1
- data/docs/release-1.1-readiness.md +51 -0
- data/docs/security-review.md +7 -3
- data/docs/troubleshooting.md +6 -0
- data/lib/chronos/adapters/fiber_local_context_store.rb +57 -0
- data/lib/chronos/agent.rb +19 -3
- data/lib/chronos/application/apm_aggregator.rb +179 -29
- data/lib/chronos/configuration/apm_validation.rb +53 -1
- data/lib/chronos/configuration/validation.rb +2 -2
- data/lib/chronos/configuration.rb +21 -2
- data/lib/chronos/core/metric_aggregate.rb +69 -7
- data/lib/chronos/core/sql_query_analyzer.rb +309 -0
- data/lib/chronos/core/trace_context.rb +38 -0
- data/lib/chronos/integrations/active_job.rb +2 -2
- data/lib/chronos/integrations/faraday.rb +76 -0
- data/lib/chronos/integrations/net_http.rb +5 -1
- data/lib/chronos/integrations/opentelemetry.rb +44 -0
- data/lib/chronos/integrations/rack/middleware.rb +8 -2
- data/lib/chronos/integrations/sidekiq.rb +1 -1
- data/lib/chronos/ports/query_inspector.rb +23 -0
- data/lib/chronos/rails/active_record_query_inspector.rb +235 -0
- data/lib/chronos/rails/error_reporter_subscriber.rb +39 -0
- data/lib/chronos/rails/installer.rb +13 -0
- data/lib/chronos/rails/notifications_subscriber.rb +175 -2
- data/lib/chronos/rails.rb +2 -0
- data/lib/chronos/version.rb +2 -2
- data/lib/chronos.rb +6 -0
- metadata +46 -38
metadata
CHANGED
|
@@ -1,93 +1,91 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chronos-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.2.0.pre.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Antonio Jefferson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1
|
|
19
|
+
version: '2.1'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '3'
|
|
20
23
|
type: :development
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '2.1'
|
|
30
|
+
- - "<"
|
|
25
31
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
32
|
+
version: '3'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: rake
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
30
36
|
requirements:
|
|
31
|
-
- - "
|
|
37
|
+
- - ">="
|
|
32
38
|
- !ruby/object:Gem::Version
|
|
33
39
|
version: '12.3'
|
|
34
|
-
- - "
|
|
40
|
+
- - "<"
|
|
35
41
|
- !ruby/object:Gem::Version
|
|
36
|
-
version:
|
|
42
|
+
version: '14'
|
|
37
43
|
type: :development
|
|
38
44
|
prerelease: false
|
|
39
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
46
|
requirements:
|
|
41
|
-
- - "
|
|
47
|
+
- - ">="
|
|
42
48
|
- !ruby/object:Gem::Version
|
|
43
49
|
version: '12.3'
|
|
44
|
-
- - "
|
|
50
|
+
- - "<"
|
|
45
51
|
- !ruby/object:Gem::Version
|
|
46
|
-
version:
|
|
52
|
+
version: '14'
|
|
47
53
|
- !ruby/object:Gem::Dependency
|
|
48
54
|
name: rspec
|
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
|
50
56
|
requirements:
|
|
51
|
-
- - "
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '3.10'
|
|
60
|
+
- - "<"
|
|
52
61
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
62
|
+
version: '4'
|
|
54
63
|
type: :development
|
|
55
64
|
prerelease: false
|
|
56
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
66
|
requirements:
|
|
58
|
-
- - "
|
|
67
|
+
- - ">="
|
|
59
68
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '3.
|
|
69
|
+
version: '3.10'
|
|
70
|
+
- - "<"
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '4'
|
|
61
73
|
- !ruby/object:Gem::Dependency
|
|
62
74
|
name: rubocop
|
|
63
75
|
requirement: !ruby/object:Gem::Requirement
|
|
64
76
|
requirements:
|
|
65
77
|
- - "~>"
|
|
66
78
|
- !ruby/object:Gem::Version
|
|
67
|
-
version:
|
|
79
|
+
version: 1.57.0
|
|
68
80
|
type: :development
|
|
69
81
|
prerelease: false
|
|
70
82
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
83
|
requirements:
|
|
72
84
|
- - "~>"
|
|
73
85
|
- !ruby/object:Gem::Version
|
|
74
|
-
version:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - '='
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: 1.19.2
|
|
82
|
-
type: :development
|
|
83
|
-
prerelease: false
|
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - '='
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: 1.19.2
|
|
89
|
-
description: Base do cliente Chronos para excecoes, telemetria e observabilidade em
|
|
90
|
-
aplicacoes Ruby legadas.
|
|
86
|
+
version: 1.57.0
|
|
87
|
+
description: Cliente Chronos para excecoes, telemetria e observabilidade em aplicacoes
|
|
88
|
+
Ruby e Rails.
|
|
91
89
|
email:
|
|
92
90
|
- antoniojeferson96@gmail.com
|
|
93
91
|
executables: []
|
|
@@ -125,6 +123,7 @@ files:
|
|
|
125
123
|
- docs/adr/ADR-016-explicit-observability-integrations.md
|
|
126
124
|
- docs/adr/ADR-017-deploy-events-and-correlation.md
|
|
127
125
|
- docs/adr/ADR-018-pre-1.0-hardening.md
|
|
126
|
+
- docs/adr/ADR-019-bounded-query-diagnostics.md
|
|
128
127
|
- docs/architecture.md
|
|
129
128
|
- docs/compatibility.md
|
|
130
129
|
- docs/configuration.md
|
|
@@ -164,11 +163,13 @@ files:
|
|
|
164
163
|
- docs/privacy-lgpd.md
|
|
165
164
|
- docs/protocol-v1.md
|
|
166
165
|
- docs/release-1.0-readiness.md
|
|
166
|
+
- docs/release-1.1-readiness.md
|
|
167
167
|
- docs/security-review.md
|
|
168
168
|
- docs/semver.md
|
|
169
169
|
- docs/troubleshooting.md
|
|
170
170
|
- lib/chronos.rb
|
|
171
171
|
- lib/chronos/adapters.rb
|
|
172
|
+
- lib/chronos/adapters/fiber_local_context_store.rb
|
|
172
173
|
- lib/chronos/adapters/net_http_transport.rb
|
|
173
174
|
- lib/chronos/adapters/thread_local_context_store.rb
|
|
174
175
|
- lib/chronos/agent.rb
|
|
@@ -206,13 +207,17 @@ files:
|
|
|
206
207
|
- lib/chronos/core/sanitizer.rb
|
|
207
208
|
- lib/chronos/core/sensitive_value_filter.rb
|
|
208
209
|
- lib/chronos/core/sql_normalizer.rb
|
|
210
|
+
- lib/chronos/core/sql_query_analyzer.rb
|
|
209
211
|
- lib/chronos/core/telemetry_event.rb
|
|
212
|
+
- lib/chronos/core/trace_context.rb
|
|
210
213
|
- lib/chronos/errors.rb
|
|
211
214
|
- lib/chronos/integrations.rb
|
|
212
215
|
- lib/chronos/integrations/active_job.rb
|
|
213
216
|
- lib/chronos/integrations/capistrano.rb
|
|
217
|
+
- lib/chronos/integrations/faraday.rb
|
|
214
218
|
- lib/chronos/integrations/job_payload.rb
|
|
215
219
|
- lib/chronos/integrations/net_http.rb
|
|
220
|
+
- lib/chronos/integrations/opentelemetry.rb
|
|
216
221
|
- lib/chronos/integrations/rack.rb
|
|
217
222
|
- lib/chronos/integrations/rack/middleware.rb
|
|
218
223
|
- lib/chronos/integrations/sidekiq.rb
|
|
@@ -225,8 +230,11 @@ files:
|
|
|
225
230
|
- lib/chronos/observability_facade.rb
|
|
226
231
|
- lib/chronos/ports.rb
|
|
227
232
|
- lib/chronos/ports/context_store.rb
|
|
233
|
+
- lib/chronos/ports/query_inspector.rb
|
|
228
234
|
- lib/chronos/ports/transport.rb
|
|
229
235
|
- lib/chronos/rails.rb
|
|
236
|
+
- lib/chronos/rails/active_record_query_inspector.rb
|
|
237
|
+
- lib/chronos/rails/error_reporter_subscriber.rb
|
|
230
238
|
- lib/chronos/rails/installer.rb
|
|
231
239
|
- lib/chronos/rails/notifications_subscriber.rb
|
|
232
240
|
- lib/chronos/rails/railtie.rb
|
|
@@ -253,15 +261,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
253
261
|
requirements:
|
|
254
262
|
- - ">="
|
|
255
263
|
- !ruby/object:Gem::Version
|
|
256
|
-
version: 2.
|
|
264
|
+
version: '2.7'
|
|
257
265
|
- - "<"
|
|
258
266
|
- !ruby/object:Gem::Version
|
|
259
|
-
version: '
|
|
267
|
+
version: '3.5'
|
|
260
268
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
269
|
requirements:
|
|
262
|
-
- - "
|
|
270
|
+
- - ">"
|
|
263
271
|
- !ruby/object:Gem::Version
|
|
264
|
-
version:
|
|
272
|
+
version: 1.3.1
|
|
265
273
|
requirements: []
|
|
266
274
|
rubygems_version: 3.4.22
|
|
267
275
|
signing_key:
|