opentelemetry-instrumentation-action_pack 0.1.2 → 0.2.0

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: 7079299ffe1029283a22d40789494ec0a0ce064528664e0deb0f173f73251fae
4
- data.tar.gz: 68df09cac8e494cdc9f2f4d349e33bee0f706ebfb0ba61b474afebcc131c66f3
3
+ metadata.gz: 90c97528fda46be9250fc027e888c9521f27ca9aec2e67e66cd75ee12ee165ea
4
+ data.tar.gz: 0c727382b7453c5229a08d4bcc605abb1bd22a483abf351fd03dd55840aa97ca
5
5
  SHA512:
6
- metadata.gz: db2f1f0b4d04ca5330a3c7cc6e305f3b2dcc0034895ba6734f08ed7d07bab9fad67912045e0c4848abbd171520335a4a916a9a4626b1cf3764b570c929d7e4dd
7
- data.tar.gz: 38cfd415f3d9500c7891b0af448ef6b43f93e87eb2a54a3c1128e6a425d9be04f9044cef362249663c470463ba3388d8569a5ef855384fdc1eece81bacd9afb5
6
+ metadata.gz: 287321106f107b978b0fb21703af64c875690143e4f6d3b2f08f7a79329f1fcd31d667676c27d89fbb480e13744e39aa5e5f20f4b9463ddf164cbe7efa9081ca
7
+ data.tar.gz: 608f4a03a05c47517717275826ea99c60df0f4dfd77e592f10d98d4426098a70c65e12b27c0cc52d3fb7893703bef3fde66ee3c37cf4b777251b778e7572d294
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release History: opentelemetry-instrumentation-action_pack
2
2
 
3
+ ### v0.2.0 / 2022-06-09
4
+
5
+ * Upgrading Base dependency version
6
+ * FIXED: Broken test file requirements
7
+
8
+ ### v0.1.4 / 2022-05-02
9
+
10
+ * FIXED: Use rails request's filtered path as http.target attribute
11
+ * FIXED: RubyGems Fallback
12
+
13
+ ### v0.1.3 / 2021-12-01
14
+
15
+ * FIXED: Instrumentation of Rails 7
16
+
3
17
  ### v0.1.2 / 2021-10-06
4
18
 
5
19
  * FIXED: Prevent high cardinality rack span name as a default
@@ -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.2'
10
+ VERSION = '0.2.0'
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.2
4
+ version: 0.2.0
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-10-07 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.3
33
+ version: 0.21.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.18.3
40
+ version: 0.21.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-rack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.20.0
47
+ version: 0.21.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.20.0
54
+ version: 0.21.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.0'
103
+ version: '1.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.0'
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: opentelemetry-test-helpers
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rails
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -228,10 +242,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
228
242
  licenses:
229
243
  - Apache-2.0
230
244
  metadata:
231
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.1.2/file.CHANGELOG.html
245
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.2.0/file.CHANGELOG.html
232
246
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/action_pack
233
247
  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.2
248
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_pack/v0.2.0
235
249
  post_install_message:
236
250
  rdoc_options: []
237
251
  require_paths:
@@ -240,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
254
  requirements:
241
255
  - - ">="
242
256
  - !ruby/object:Gem::Version
243
- version: 2.5.0
257
+ version: 2.6.0
244
258
  required_rubygems_version: !ruby/object:Gem::Requirement
245
259
  requirements:
246
260
  - - ">="