appsignal 4.7.4 → 4.7.5
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 +9 -0
- data/build_matrix.yml +8 -8
- data/lib/appsignal/logger.rb +3 -1
- data/lib/appsignal/utils/integration_logger.rb +25 -0
- data/lib/appsignal/version.rb +1 -1
- data/sig/appsignal.rbi +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a8a53409f019647d09800fe8aece6217c73805d07bb3165e65352c7e9a3ad1
|
4
|
+
data.tar.gz: a6a427ea9312fd4c1557e73682a79dd656c835255d162dd3bc600ae6c079695c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a61228427035353534e9a91cd2ec2f0e93bc4ffbe3d384b181f723763cef3ac94210af5235d65ba8e3e3cb93edfd9bedd334004341f064060ffd5cca1d75bd49
|
7
|
+
data.tar.gz: 3ed5dff0b9e0478a6382a9828787cdef22adf312e34ca9d3f56cb9fce001d7e3d68266d56fbd8ac13d36dad4adee148a48c1d7190ddfeaa261e3a1fa14f0670b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
2
2
|
|
3
|
+
## 4.7.5
|
4
|
+
|
5
|
+
_Published on 2025-10-17._
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
- Fix an issue with loggers not supporting a formatter on Rails boot. This will prevent the AppSignal logger config from running into an error if the logger configuration is added to `config/application.rb` or one of the environments in `config/environments/`. (patch [45f0ae0e](https://github.com/appsignal/appsignal-ruby/commit/45f0ae0ebee92ea033b32cf0239de18893933362))
|
10
|
+
- Do not log long (error) messages to the internal AppSignal log. If an error like `ActionController::BadRequest` occurred and the error message contained the entire file upload, this would grow the `appsignal.log` file quickly if the error happens often. Internal log messages are now truncated by default. (patch [58401e31](https://github.com/appsignal/appsignal-ruby/commit/58401e31fd81dc1fc24c5bafe104a936cf646667))
|
11
|
+
|
3
12
|
## 4.7.4
|
4
13
|
|
5
14
|
_Published on 2025-10-02._
|
data/build_matrix.yml
CHANGED
@@ -115,7 +115,7 @@ matrix:
|
|
115
115
|
- "rails-7.1"
|
116
116
|
- "rails-7.2"
|
117
117
|
- "rails-8.0"
|
118
|
-
- "rails-8.1"
|
118
|
+
# - "rails-8.1"
|
119
119
|
|
120
120
|
ruby:
|
121
121
|
- ruby: "3.5.0-preview1"
|
@@ -245,13 +245,13 @@ matrix:
|
|
245
245
|
- "3.4.1"
|
246
246
|
- "3.3.4"
|
247
247
|
- "3.2.5"
|
248
|
-
- gem: "rails-8.1"
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
248
|
+
# - gem: "rails-8.1"
|
249
|
+
# only:
|
250
|
+
# ruby:
|
251
|
+
# - "3.5.0-preview1"
|
252
|
+
# - "3.4.1"
|
253
|
+
# - "3.3.4"
|
254
|
+
# - "3.2.5"
|
255
255
|
- gem: "sequel"
|
256
256
|
- gem: "sinatra"
|
257
257
|
- gem: "webmachine2"
|
data/lib/appsignal/logger.rb
CHANGED
@@ -93,7 +93,9 @@ module Appsignal
|
|
93
93
|
# @return [Proc]
|
94
94
|
def formatter=(formatter)
|
95
95
|
super
|
96
|
-
@loggers.each
|
96
|
+
@loggers.each do |logger|
|
97
|
+
logger.formatter = formatter if logger.respond_to?(:formatter=)
|
98
|
+
end
|
97
99
|
end
|
98
100
|
|
99
101
|
# We support the various methods in the Ruby
|
@@ -3,6 +3,31 @@
|
|
3
3
|
module Appsignal
|
4
4
|
module Utils
|
5
5
|
class IntegrationLogger < ::Logger
|
6
|
+
MAX_MESSAGE_LENGTH = 2_000
|
7
|
+
|
8
|
+
def add(severity, message = nil, progname = nil)
|
9
|
+
if message.nil? && !block_given?
|
10
|
+
# When called as logger.error("msg"), the message is in progname
|
11
|
+
progname = truncate_message(progname)
|
12
|
+
elsif message
|
13
|
+
message = truncate_message(message)
|
14
|
+
elsif block_given?
|
15
|
+
message = truncate_message(yield)
|
16
|
+
end
|
17
|
+
super
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def truncate_message(message)
|
23
|
+
return message unless message.is_a?(String)
|
24
|
+
|
25
|
+
if message.length > MAX_MESSAGE_LENGTH
|
26
|
+
"#{message[0, MAX_MESSAGE_LENGTH]}..."
|
27
|
+
else
|
28
|
+
message
|
29
|
+
end
|
30
|
+
end
|
6
31
|
end
|
7
32
|
end
|
8
33
|
end
|
data/lib/appsignal/version.rb
CHANGED
data/sig/appsignal.rbi
CHANGED
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.7.
|
4
|
+
version: 4.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
335
335
|
- !ruby/object:Gem::Version
|
336
336
|
version: '0'
|
337
337
|
requirements: []
|
338
|
-
rubygems_version: 3.
|
338
|
+
rubygems_version: 3.7.1
|
339
339
|
specification_version: 4
|
340
340
|
summary: Logs performance and exception data from your app to appsignal.com
|
341
341
|
test_files: []
|