appsignal 4.5.5 → 4.5.6
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 +24 -0
- data/ext/agent.rb +27 -27
- data/lib/appsignal/config.rb +2 -0
- data/lib/appsignal/logger.rb +11 -0
- data/lib/appsignal/rack/event_handler.rb +2 -2
- data/lib/appsignal/version.rb +1 -1
- data/lib/appsignal.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c26526a57b19a4680e8d3b7293eb1f46c9e32b8bf4fc47e9ea9aa74c96a3b64
|
4
|
+
data.tar.gz: 91ef88fce1c7fdf231ce23bbe6047338b34100f4610bbadea6f8b6fcbb79cacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18fbaec4092861cebc794fbeabdcb4ea189a5c38faabf99fe25cdd1b07d1d0d778de73c5d7f55977b8abfa69d2d77b924dcb4a6ec4a0c97beeab88770ea06115
|
7
|
+
data.tar.gz: 43d538d0d1cd4571704abed7116f40819569d78cfe54b00bf0b888f3e5ca6b4f46d40e4100c1a7953cb63e66c904fa6ab2f3f3297eeef4ee1b34face4af63c39
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
2
2
|
|
3
|
+
## 4.5.6
|
4
|
+
|
5
|
+
_Published on 2025-03-20._
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
- Add the Logger `<<` method. This improves our compatibility with Ruby's Logger class implementation, making it usable in more scenarios. (patch [e09a78a4](https://github.com/appsignal/appsignal-ruby/commit/e09a78a425607852b5e12adf5c9ddb718811b09f))
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Explicitly return `nil` from public methods with no usable return value. We want to avoid the situation where `Appsignal.start` happens to return `true` and it is thought to mean that the gem started successfully.
|
14
|
+
|
15
|
+
Methods updated:
|
16
|
+
|
17
|
+
- `Appsignal.start`
|
18
|
+
- `Appsignal.stop`
|
19
|
+
- `Appsignal.configure`
|
20
|
+
- `Appsignal.forked`
|
21
|
+
- `Appsignal.load`
|
22
|
+
|
23
|
+
(patch [93c304ee](https://github.com/appsignal/appsignal-ruby/commit/93c304eecd80992648d9e836a52e28c4e78958ee))
|
24
|
+
- Differentiate between `process_request.rack` events. Add the callback that triggered the event in the event title for debugging purposes. (patch [4393b2fa](https://github.com/appsignal/appsignal-ruby/commit/4393b2faeac6d8be6390eef158b3cda133b99915))
|
25
|
+
- Improve the log message for the uneven timestack error. This will help the AppSignal team debug issues where events get closed when all events are already closed. (patch [d2d4863f](https://github.com/appsignal/appsignal-ruby/commit/d2d4863fc8421eabb4c88e945bb24243a56535d3))
|
26
|
+
|
3
27
|
## 4.5.5
|
4
28
|
|
5
29
|
_Published on 2025-03-14._
|
data/ext/agent.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# Modifications to this file will be overwritten with the next agent release.
|
7
7
|
|
8
8
|
APPSIGNAL_AGENT_CONFIG = {
|
9
|
-
"version" => "0.36.
|
9
|
+
"version" => "0.36.3",
|
10
10
|
"mirrors" => [
|
11
11
|
"https://d135dj0rjqvssy.cloudfront.net",
|
12
12
|
"https://appsignal-agent-releases.global.ssl.fastly.net"
|
@@ -14,131 +14,131 @@ APPSIGNAL_AGENT_CONFIG = {
|
|
14
14
|
"triples" => {
|
15
15
|
"x86_64-darwin" => {
|
16
16
|
"static" => {
|
17
|
-
"checksum" => "
|
17
|
+
"checksum" => "ed3454688e7cd976aec81a7826900027ce6508f790e7f53c97484e40c128bd36",
|
18
18
|
"filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
|
19
19
|
},
|
20
20
|
"dynamic" => {
|
21
|
-
"checksum" => "
|
21
|
+
"checksum" => "b559c97425ffef908258a5d2ea67477e364be90dc8e28b5747776c340c7b8c65",
|
22
22
|
"filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
|
23
23
|
}
|
24
24
|
},
|
25
25
|
"universal-darwin" => {
|
26
26
|
"static" => {
|
27
|
-
"checksum" => "
|
27
|
+
"checksum" => "ed3454688e7cd976aec81a7826900027ce6508f790e7f53c97484e40c128bd36",
|
28
28
|
"filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
|
29
29
|
},
|
30
30
|
"dynamic" => {
|
31
|
-
"checksum" => "
|
31
|
+
"checksum" => "b559c97425ffef908258a5d2ea67477e364be90dc8e28b5747776c340c7b8c65",
|
32
32
|
"filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
|
33
33
|
}
|
34
34
|
},
|
35
35
|
"aarch64-darwin" => {
|
36
36
|
"static" => {
|
37
|
-
"checksum" => "
|
37
|
+
"checksum" => "43f66e1da26e9b15050392105868f8c99e28e89d7831a0e09d8d8b54abaa24d2",
|
38
38
|
"filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
|
39
39
|
},
|
40
40
|
"dynamic" => {
|
41
|
-
"checksum" => "
|
41
|
+
"checksum" => "f6d9d48fa91873ffd7f54af94bb463c266bbca9d86f2ec4253b43b7290f6f479",
|
42
42
|
"filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
|
43
43
|
}
|
44
44
|
},
|
45
45
|
"arm64-darwin" => {
|
46
46
|
"static" => {
|
47
|
-
"checksum" => "
|
47
|
+
"checksum" => "43f66e1da26e9b15050392105868f8c99e28e89d7831a0e09d8d8b54abaa24d2",
|
48
48
|
"filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
|
49
49
|
},
|
50
50
|
"dynamic" => {
|
51
|
-
"checksum" => "
|
51
|
+
"checksum" => "f6d9d48fa91873ffd7f54af94bb463c266bbca9d86f2ec4253b43b7290f6f479",
|
52
52
|
"filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
|
53
53
|
}
|
54
54
|
},
|
55
55
|
"arm-darwin" => {
|
56
56
|
"static" => {
|
57
|
-
"checksum" => "
|
57
|
+
"checksum" => "43f66e1da26e9b15050392105868f8c99e28e89d7831a0e09d8d8b54abaa24d2",
|
58
58
|
"filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
|
59
59
|
},
|
60
60
|
"dynamic" => {
|
61
|
-
"checksum" => "
|
61
|
+
"checksum" => "f6d9d48fa91873ffd7f54af94bb463c266bbca9d86f2ec4253b43b7290f6f479",
|
62
62
|
"filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
|
63
63
|
}
|
64
64
|
},
|
65
65
|
"aarch64-linux" => {
|
66
66
|
"static" => {
|
67
|
-
"checksum" => "
|
67
|
+
"checksum" => "287caad6b86b5d2bfe36ae87179d8f587e0cb76c80cdf4f3300b32e37553d9cb",
|
68
68
|
"filename" => "appsignal-aarch64-linux-all-static.tar.gz"
|
69
69
|
},
|
70
70
|
"dynamic" => {
|
71
|
-
"checksum" => "
|
71
|
+
"checksum" => "6db055791a2b588edb4394afc2978309e4fea8ac5c3b14cd3b25913b6fc183c3",
|
72
72
|
"filename" => "appsignal-aarch64-linux-all-dynamic.tar.gz"
|
73
73
|
}
|
74
74
|
},
|
75
75
|
"i686-linux" => {
|
76
76
|
"static" => {
|
77
|
-
"checksum" => "
|
77
|
+
"checksum" => "816ca2ec568680ec8e44ee8dfa1a014062c4a8969883ddb4533610489eb689b0",
|
78
78
|
"filename" => "appsignal-i686-linux-all-static.tar.gz"
|
79
79
|
},
|
80
80
|
"dynamic" => {
|
81
|
-
"checksum" => "
|
81
|
+
"checksum" => "a2f5e885812510a77a36c0044150e321a3cca1354310d4b9be6f0ef7971c93e2",
|
82
82
|
"filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
|
83
83
|
}
|
84
84
|
},
|
85
85
|
"x86-linux" => {
|
86
86
|
"static" => {
|
87
|
-
"checksum" => "
|
87
|
+
"checksum" => "816ca2ec568680ec8e44ee8dfa1a014062c4a8969883ddb4533610489eb689b0",
|
88
88
|
"filename" => "appsignal-i686-linux-all-static.tar.gz"
|
89
89
|
},
|
90
90
|
"dynamic" => {
|
91
|
-
"checksum" => "
|
91
|
+
"checksum" => "a2f5e885812510a77a36c0044150e321a3cca1354310d4b9be6f0ef7971c93e2",
|
92
92
|
"filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
|
93
93
|
}
|
94
94
|
},
|
95
95
|
"x86_64-linux" => {
|
96
96
|
"static" => {
|
97
|
-
"checksum" => "
|
97
|
+
"checksum" => "6b48d90f89a3e687e440147d18717913857409fff66022b29a4107379f1d0903",
|
98
98
|
"filename" => "appsignal-x86_64-linux-all-static.tar.gz"
|
99
99
|
},
|
100
100
|
"dynamic" => {
|
101
|
-
"checksum" => "
|
101
|
+
"checksum" => "141cc47e66c18782a9c6c7d175b54e681034f6f39b6e871d5e60160f5d1a1f3e",
|
102
102
|
"filename" => "appsignal-x86_64-linux-all-dynamic.tar.gz"
|
103
103
|
}
|
104
104
|
},
|
105
105
|
"x86_64-linux-musl" => {
|
106
106
|
"static" => {
|
107
|
-
"checksum" => "
|
107
|
+
"checksum" => "9c74fbfa5bdef7df3d4fc6f8da73635b351c71b8d6e4c1ca9916b2f3dae0d7e7",
|
108
108
|
"filename" => "appsignal-x86_64-linux-musl-all-static.tar.gz"
|
109
109
|
},
|
110
110
|
"dynamic" => {
|
111
|
-
"checksum" => "
|
111
|
+
"checksum" => "576853c59aab8f7542e9bb9a612df626f6b56e78d1ce7c6fc8c725db4417a4a1",
|
112
112
|
"filename" => "appsignal-x86_64-linux-musl-all-dynamic.tar.gz"
|
113
113
|
}
|
114
114
|
},
|
115
115
|
"aarch64-linux-musl" => {
|
116
116
|
"static" => {
|
117
|
-
"checksum" => "
|
117
|
+
"checksum" => "7bbbbbf58db496cce04f68d40e3077cf382196e77e1b6a2ad58dd0e32442a828",
|
118
118
|
"filename" => "appsignal-aarch64-linux-musl-all-static.tar.gz"
|
119
119
|
},
|
120
120
|
"dynamic" => {
|
121
|
-
"checksum" => "
|
121
|
+
"checksum" => "6f12971462b0dbd4a4f6d8987a96fd25538e35e0c783b3afbe2317a866073d7a",
|
122
122
|
"filename" => "appsignal-aarch64-linux-musl-all-dynamic.tar.gz"
|
123
123
|
}
|
124
124
|
},
|
125
125
|
"x86_64-freebsd" => {
|
126
126
|
"static" => {
|
127
|
-
"checksum" => "
|
127
|
+
"checksum" => "a3f0c1e66e1e37a5f153a6dcb4c8eae63a038d54f838a358eabcd5db5c11b02f",
|
128
128
|
"filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
|
129
129
|
},
|
130
130
|
"dynamic" => {
|
131
|
-
"checksum" => "
|
131
|
+
"checksum" => "a141eaa327e77e3b1b9fb34798aff103f9098b1b4aed20e68e9c505aae645129",
|
132
132
|
"filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
|
133
133
|
}
|
134
134
|
},
|
135
135
|
"amd64-freebsd" => {
|
136
136
|
"static" => {
|
137
|
-
"checksum" => "
|
137
|
+
"checksum" => "a3f0c1e66e1e37a5f153a6dcb4c8eae63a038d54f838a358eabcd5db5c11b02f",
|
138
138
|
"filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
|
139
139
|
},
|
140
140
|
"dynamic" => {
|
141
|
-
"checksum" => "
|
141
|
+
"checksum" => "a141eaa327e77e3b1b9fb34798aff103f9098b1b4aed20e68e9c505aae645129",
|
142
142
|
"filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
|
143
143
|
}
|
144
144
|
}
|
data/lib/appsignal/config.rb
CHANGED
@@ -442,6 +442,7 @@ module Appsignal
|
|
442
442
|
merge(options)
|
443
443
|
end
|
444
444
|
|
445
|
+
# @return [void]
|
445
446
|
# @api private
|
446
447
|
def validate
|
447
448
|
# Apply any overrides for invalid settings.
|
@@ -472,6 +473,7 @@ module Appsignal
|
|
472
473
|
# of the Ruby app.
|
473
474
|
#
|
474
475
|
# @api private
|
476
|
+
# @return [void]
|
475
477
|
# @since 4.0.0
|
476
478
|
def freeze
|
477
479
|
super
|
data/lib/appsignal/logger.rb
CHANGED
@@ -159,6 +159,17 @@ module Appsignal
|
|
159
159
|
add_with_attributes(FATAL, message, @group, attributes)
|
160
160
|
end
|
161
161
|
|
162
|
+
# Log an info level message
|
163
|
+
#
|
164
|
+
# Returns the number of characters written.
|
165
|
+
#
|
166
|
+
# @param message Message to log
|
167
|
+
# @return [Integer]
|
168
|
+
def <<(message)
|
169
|
+
add(Logger::INFO, message)
|
170
|
+
message.length
|
171
|
+
end
|
172
|
+
|
162
173
|
# When using ActiveSupport::TaggedLogging without the broadcast feature,
|
163
174
|
# the passed logger is required to respond to the `silence` method.
|
164
175
|
#
|
@@ -68,7 +68,7 @@ module Appsignal
|
|
68
68
|
|
69
69
|
Appsignal::Rack::EventHandler
|
70
70
|
.safe_execution("Appsignal::Rack::EventHandler's after_reply") do
|
71
|
-
transaction.finish_event("process_request.rack", "", "")
|
71
|
+
transaction.finish_event("process_request.rack", "callback: after_reply", "")
|
72
72
|
queue_start = Appsignal::Rack::Utils.queue_start_from(request.env)
|
73
73
|
transaction.set_queue_start(queue_start) if queue_start
|
74
74
|
end
|
@@ -111,7 +111,7 @@ module Appsignal
|
|
111
111
|
return unless transaction
|
112
112
|
|
113
113
|
self.class.safe_execution("Appsignal::Rack::EventHandler#on_finish") do
|
114
|
-
transaction.finish_event("process_request.rack", "", "")
|
114
|
+
transaction.finish_event("process_request.rack", "callback: on_finish", "")
|
115
115
|
transaction.add_params_if_nil { request.params }
|
116
116
|
transaction.add_headers_if_nil { request.env }
|
117
117
|
transaction.add_session_data_if_nil do
|
data/lib/appsignal/version.rb
CHANGED
data/lib/appsignal.rb
CHANGED
@@ -145,11 +145,12 @@ module Appsignal
|
|
145
145
|
else
|
146
146
|
internal_logger.error("Not starting, no valid config for this environment")
|
147
147
|
end
|
148
|
+
nil
|
148
149
|
end
|
149
150
|
|
150
151
|
# PRIVATE METHOD. DO NOT USE.
|
151
152
|
#
|
152
|
-
# @param
|
153
|
+
# @param env_param [String, NilClass] Used by diagnose CLI to pass through
|
153
154
|
# the environment CLI option value.
|
154
155
|
# @api private
|
155
156
|
def _load_config!(env_param = nil, &block)
|
@@ -224,6 +225,7 @@ module Appsignal
|
|
224
225
|
Appsignal::Probes.stop
|
225
226
|
Appsignal::CheckIn.stop
|
226
227
|
end.join
|
228
|
+
nil
|
227
229
|
end
|
228
230
|
|
229
231
|
# Configure the AppSignal Ruby gem using a DSL.
|
@@ -328,14 +330,17 @@ module Appsignal
|
|
328
330
|
|
329
331
|
yield config_dsl
|
330
332
|
config.merge_dsl_options(config_dsl.dsl_options)
|
333
|
+
nil
|
331
334
|
end
|
332
335
|
|
336
|
+
# @return [void]
|
333
337
|
def forked
|
334
338
|
return unless active?
|
335
339
|
|
336
340
|
Appsignal._start_logger
|
337
341
|
internal_logger.debug("Forked process, resubscribing and restarting extension")
|
338
342
|
Appsignal::Extension.start
|
343
|
+
nil
|
339
344
|
end
|
340
345
|
|
341
346
|
# Load an AppSignal integration.
|
@@ -368,6 +373,7 @@ module Appsignal
|
|
368
373
|
# @since 3.12.0
|
369
374
|
def load(integration_name)
|
370
375
|
Loaders.load(integration_name)
|
376
|
+
nil
|
371
377
|
end
|
372
378
|
|
373
379
|
# @api private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-03-
|
13
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: logger
|
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
316
|
- !ruby/object:Gem::Version
|
317
317
|
version: '0'
|
318
318
|
requirements: []
|
319
|
-
rubygems_version: 3.
|
319
|
+
rubygems_version: 3.5.23
|
320
320
|
signing_key:
|
321
321
|
specification_version: 4
|
322
322
|
summary: Logs performance and exception data from your app to appsignal.com
|