opentelemetry-instrumentation-action_pack 0.1.1 → 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: 1d601ff90fa3e2b0417b3b0e4329f3f01c38defe0bb6f594240766821c8a51b8
4
- data.tar.gz: bef26456a884648dc4a5d732eb243b72e3cb42911a9c5300a03b6ba730e65cf2
3
+ metadata.gz: f54c8884f925fb4daf93d7b3e19dbeb2916bce8bb3c9c3712a62f6ca03406be9
4
+ data.tar.gz: c77e2a17c3cb09e381e1ee20ef3e302d98be301fd7d35a1d3437d19f3d550e58
5
5
  SHA512:
6
- metadata.gz: ec6f46180023f955a1f2bf6251fd1109cfc4a214287aa379d3d84c4ac9d41f79c5f3546a7056b41b2a8856d9babd38659afb00c2a83f925b84dc113cb0709e8c
7
- data.tar.gz: 3fb21e0db95bee9c746c683ac55689177a3fdb8884d809679520262153455ebcf2aca6e9c95aaf846b5df22c580f9b6f0fe82dbad181acdb63dce594537e4133
6
+ metadata.gz: 0d25ecdef19b36bdfde096bd8b3f240b4c10a9051695a09aa3fd042e78768e3191c694d00e102b170ef75e8e8c0ecd076beaf76f3d969a882230aa4c681bb63c
7
+ data.tar.gz: ae3f39973e0f34d7ea8df5475e10f33890bf68930142941b102e303f16c5781126107ef3f9d3c9f6f6e9f2dda245813dfc3a4818660fd7da648d66172fe33493
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
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
+
8
+ ### v0.1.3 / 2021-12-01
9
+
10
+ * FIXED: Instrumentation of Rails 7
11
+
12
+ ### v0.1.2 / 2021-10-06
13
+
14
+ * FIXED: Prevent high cardinality rack span name as a default
15
+
3
16
  ### v0.1.1 / 2021-09-29
4
17
 
5
18
  * (No significant changes)
@@ -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.1'
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.1
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-09-30 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,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.3
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.18.3
40
+ version: 0.20.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.19.1
47
+ version: 0.20.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.19.1
54
+ version: 0.20.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  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.1/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.1
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: