opentelemetry-instrumentation-action_pack 0.18.0 → 0.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d2da76604c34e9ecf873db5938aea70f28a828d849a09fab4550b4fd11f213f
4
- data.tar.gz: 036a24ab890f7fb967b9f87a9854873995f9528017183e4494a82dda0d3ff756
3
+ metadata.gz: 46431af488a6114772a586e88736f364c00ca349d0167f135873b8f0c6bb3553
4
+ data.tar.gz: 4fff4df9a8b8b08f17d2c18160cc38c999dc0d67b76dffd6d492a52a9bbe3152
5
5
  SHA512:
6
- metadata.gz: a878f6b70fc249dc4c94093443c77a5a220091d9426f74ab20dcbbbf8dc9257ad44d3a465d0555665ab214f2657493380eddc7defa8e3d9ad9b02f8391bf0486
7
- data.tar.gz: 0043dc169696e92328ea7f293593e4ca367354bf77b009b7b7241b057ddeb1c154d5e0523d0f8f6df9144571bbb20c3fcea75b52e9441f0c41836c38f6b70658
6
+ metadata.gz: ac906bf3efc05332cbdc33647a71b4f60680e9017bdbcdabea1dc1d68df9551f61eddeaa521270cf39cb34d4ce5368e29ae74efccc808cbbf4bef3481c847b47
7
+ data.tar.gz: 11092c5aa54f6546ba2e571bf03c266766383db2af759b81a3191eba07d2ce4a45fb1f764a10d06a362d7c292636a894cebbed681d08025263116394cd0583af
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-action_pack
2
2
 
3
+ ## v0.18.1 / 2026-08-18
4
+
5
+ - FIXED: Prepend engine mount path to http.route for mounted Rails engines (#2499)
6
+
3
7
  ## v0.18.0 / 2026-04-28
4
8
 
5
9
  - BREAKING CHANGE: Min Rails 7.1 (enforced this time) (#2283)
data/README.md CHANGED
@@ -48,7 +48,9 @@ This instrumentation generally uses [HTTP server semantic conventions](https://o
48
48
 
49
49
  For Rails 7.1+, the span name is updated to match the HTTP method and route that was matched for the request using [`ActionDispatch::Request#route_uri_pattern`](https://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-route_uri_pattern), e.g.: `GET /users/:id`
50
50
 
51
- > ![NOTE]: Users may override the `span_naming` option to default to Legacy Span Naming Behavior that uses the controller's class name and action in Ruby documentation syntax, e.g. `ExampleController#index`.
51
+ > [!NOTE]
52
+ >
53
+ > Users may override the `span_naming` option to default to Legacy Span Naming Behavior that uses the controller's class name and action in Ruby documentation syntax, e.g. `ExampleController#index`.
52
54
 
53
55
  This instrumentation does not emit any custom attributes.
54
56
 
@@ -32,6 +32,8 @@ module OpenTelemetry
32
32
  # https://github.com/rails/rails/blob/747f85f200e7bb2c1a31b4e26e5a5655e2dc0cdc/actionpack/lib/action_dispatch/http/request.rb#L160
33
33
  http_route = request.route_uri_pattern&.chomp('(.:format)') if request.respond_to?(:route_uri_pattern)
34
34
 
35
+ http_route = "#{request.script_name}#{http_route}" if http_route && !request.script_name.empty?
36
+
35
37
  attributes = {
36
38
  OpenTelemetry::SemanticConventions::Trace::CODE_NAMESPACE => String(payload[:controller]),
37
39
  OpenTelemetry::SemanticConventions::Trace::CODE_FUNCTION => String(payload[:action])
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActionPack
10
- VERSION = '0.18.0'
10
+ VERSION = '0.18.1'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-action_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
@@ -46,10 +46,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
46
46
  licenses:
47
47
  - Apache-2.0
48
48
  metadata:
49
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-action_pack/0.18.0/file/CHANGELOG.md
50
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-action_pack/v0.18.0/instrumentation/action_pack
49
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-action_pack/0.18.1/file/CHANGELOG.md
50
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-action_pack/v0.18.1/instrumentation/action_pack
51
51
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
52
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-action_pack/0.18.0
52
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-action_pack/0.18.1
53
53
  rdoc_options: []
54
54
  require_paths:
55
55
  - lib
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 4.0.6
67
+ rubygems_version: 4.0.16
68
68
  specification_version: 4
69
69
  summary: ActionPack instrumentation for the OpenTelemetry framework
70
70
  test_files: []