opentelemetry-instrumentation-action_pack 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e343e45b825050cbf88ecccfdd4d10c7f99d6286d91b81981d6601e2d6431577
4
- data.tar.gz: 78e39d6b4e8f6b37d47208b613e528343186fe2d026eb90e5b5131ae4441d9a5
3
+ metadata.gz: f54c8884f925fb4daf93d7b3e19dbeb2916bce8bb3c9c3712a62f6ca03406be9
4
+ data.tar.gz: c77e2a17c3cb09e381e1ee20ef3e302d98be301fd7d35a1d3437d19f3d550e58
5
5
  SHA512:
6
- metadata.gz: 6f1dbd1f170e5931f7eeef56273453bb01c95bcc6052540e365a15cfcdc7a636634726cf1892135aca82df743b7950e7828031f73742811938d4762ea28f575d
7
- data.tar.gz: e393e0c707ec1516640ceac901ff813158102e5b373587bdadce9ea371aa76a292dffe6e605556169475ceb629e1e1e844412d6575d4832ae30683036ae17b3f
6
+ metadata.gz: 0d25ecdef19b36bdfde096bd8b3f240b4c10a9051695a09aa3fd042e78768e3191c694d00e102b170ef75e8e8c0ecd076beaf76f3d969a882230aa4c681bb63c
7
+ data.tar.gz: ae3f39973e0f34d7ea8df5475e10f33890bf68930142941b102e303f16c5781126107ef3f9d3c9f6f6e9f2dda245813dfc3a4818660fd7da648d66172fe33493
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History: opentelemetry-instrumentation-action_pack
2
2
 
3
+ ### v0.1.4 / 2022-05-02
4
+
5
+ * FIXED: Use rails request's filtered path as http.target attribute
6
+ * FIXED: RubyGems Fallback
7
+
3
8
  ### v0.1.3 / 2021-12-01
4
9
 
5
10
  * FIXED: Instrumentation of Rails 7
@@ -30,7 +30,7 @@ module OpenTelemetry
30
30
  private
31
31
 
32
32
  def gem_version
33
- Gem.loaded_specs['actionpack'].version
33
+ ::ActionPack.version
34
34
  end
35
35
 
36
36
  def patch
@@ -13,9 +13,14 @@ module OpenTelemetry
13
13
  module Metal
14
14
  def dispatch(name, request, response)
15
15
  rack_span = OpenTelemetry::Instrumentation::Rack.current_span
16
- rack_span.name = "#{self.class.name}##{name}" if rack_span.context.valid? && !request.env['action_dispatch.exception']
16
+ if rack_span.recording?
17
+ rack_span.name = "#{self.class.name}##{name}" unless request.env['action_dispatch.exception']
18
+
19
+ add_rails_route(rack_span, request) if instrumentation_config[:enable_recognize_route]
20
+
21
+ rack_span.set_attribute('http.target', request.filtered_path) if request.filtered_path != request.fullpath
22
+ end
17
23
 
18
- add_rails_route(rack_span, request) if instrumentation_config[:enable_recognize_route]
19
24
  super(name, request, response)
20
25
  end
21
26
 
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActionPack
10
- VERSION = '0.1.3'
10
+ VERSION = '0.1.4'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-action_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.19.0
33
+ version: 0.20.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.19.0
40
+ version: 0.20.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-rack
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -228,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
228
228
  licenses:
229
229
  - Apache-2.0
230
230
  metadata:
231
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.1.3/file.CHANGELOG.html
231
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.1.4/file.CHANGELOG.html
232
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/action_pack
233
233
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
234
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.1.3
234
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.1.4
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: