appsignal 5.0.1 → 5.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e73ebf33ae2f5bad56406790ab256648143d073881b1a3d14d8ca09171d36c0e
4
- data.tar.gz: 36cee0453b823e884447de04c004e02ee6a74981a6c4f2ee82e6b53dcecbf9e0
3
+ metadata.gz: 9c73f2ecdc63058c7961981d8fc044c0b2b0801d4cd2887dd1295ffd356975e5
4
+ data.tar.gz: d28d7b78d58597f8e4ce6f37111110405acd0cdcdc38efc290b6131c57501c86
5
5
  SHA512:
6
- metadata.gz: 77e642259af8ea8f4539872524d3a60a01ea72bdcdc45ec344d89caa55428495b21366574e3749116dd52008a7482961d3fd72db50145fc04e2ac09f230ece8c
7
- data.tar.gz: 5fcb6ca575a989b8123f2ba225036520fbe74ff88cbcdec64b3b12eb919aaff35adc3c0c9f10e331be6a7764d4d238c185c2cd7a546d9b3459278d99721531ae
6
+ metadata.gz: 63f7e6922357cb88e8b52623278deb0bc1037087f8df262798a53af3a3ac5e66f0340959ca5b9858d391ac50f7ebc8923b91381331f09b62b2d39a9401af18fe
7
+ data.tar.gz: 1dcb25bc71bed601aac8cf9a499182227f8f8b36c2550a203780b57a80f8758a061fb6a7c7b9427ec39b46828abfb6a6c47225aa602f89516d0d6142aa36878c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 5.0.2
4
+
5
+ _Published on 2026-10-06._
6
+
7
+ ### Changed
8
+
9
+ - Use the revision set by Heroku, Render, Kamal or Scalingo when the application also has a `REVISION` file. Since version 4.6.0, a `REVISION` file took precedence over the `HEROKU_SLUG_COMMIT`, `RENDER_GIT_COMMIT`, `KAMAL_VERSION` and `CONTAINER_VERSION` environment variables, so an application that kept a placeholder `REVISION` file in source control reported that placeholder as its revision. The `revision` config option and the `APP_REVISION` environment variable still take precedence over both.
10
+
11
+ Thanks to @rmm5t for their contribution!
12
+
13
+ (patch [bc14ef9c](https://github.com/appsignal/appsignal-ruby/commit/bc14ef9c6db3de71bf2ca8f23ad088f29294c0ff))
14
+
3
15
  ## 5.0.1
4
16
 
5
17
  _Published on 2026-10-02._
data/README.md CHANGED
@@ -318,7 +318,7 @@ Also see our [SUPPORT.md file](SUPPORT.md).
318
318
  [custom-instrumentation]: https://docs.appsignal.com/ruby/instrumentation.html
319
319
  [front-end-monitoring]: https://docs.appsignal.com/front-end.html
320
320
  [exception-handling]: https://docs.appsignal.com/ruby/instrumentation/exception-handling.html
321
- [tagging]: https://docs.appsignal.com/guides/custom-data/tagging-request.html
321
+ [tagging]: https://docs.appsignal.com/guides/tagging#ruby
322
322
  [host-metrics]: https://docs.appsignal.com/metrics/host.html
323
323
  [custom-metrics]: https://docs.appsignal.com/metrics/custom.html
324
324
 
@@ -177,9 +177,7 @@ module Appsignal
177
177
  }.freeze
178
178
 
179
179
  # Environment variables set by deployment platforms that name the
180
- # revision that is being deployed, in the order the agent reads them.
181
- # The agent detects the revision this way as well, but only for the data
182
- # it sends itself, so the gem has to do it for collector mode.
180
+ # revision that is being deployed, in the order they are read.
183
181
  # @!visibility private
184
182
  PLATFORM_REVISION_ENV_VARS = [
185
183
  "HEROKU_SLUG_COMMIT",
@@ -812,10 +810,10 @@ module Appsignal
812
810
 
813
811
  hash[:enable_at_exit_hook] = "always" if Appsignal::Extension.running_in_container?
814
812
 
815
- # Set the revision from a REVISION file in the project root, which
816
- # helps with Capistrano and Hatchbox.io deployments, or from the
817
- # environment variable the deployment platform sets.
818
- revision = detect_revision_from_file || detect_revision_from_platform
813
+ # Set the revision from the environment variable the deployment
814
+ # platform sets, or from a REVISION file in the project root, which
815
+ # helps with Capistrano and Hatchbox.io deployments.
816
+ revision = detect_revision_from_platform || detect_revision_from_file
819
817
  hash[:revision] = revision if revision
820
818
 
821
819
  hostname = detect_hostname
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Appsignal
4
4
  # @return [String]
5
- VERSION = "5.0.1"
5
+ VERSION = "5.0.2"
6
6
  end
data/sig/appsignal.rbi CHANGED
@@ -8,7 +8,7 @@
8
8
  module Appsignal
9
9
  extend Appsignal::Helpers::Metrics
10
10
  extend Appsignal::Helpers::Instrumentation
11
- VERSION = T.let("5.0.1", T.untyped)
11
+ VERSION = T.let("5.0.2", T.untyped)
12
12
 
13
13
  class << self
14
14
  # The loaded AppSignal configuration.
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: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman