opentelemetry-instrumentation-rspec 0.5.1 → 0.7.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80c01e6ca8e55a1ecb034f8ca5d58bd58149b63bf21898ff6a80ab9ab9e37900
|
|
4
|
+
data.tar.gz: 61cedbd4593c840acd0f25e8fd1d16c15191733547d27fd73f2f21a35aba72a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e9d0332e99466ad6f20cbc8469f237fcc3c34a98c9ef421d263779a868c062484140c0b01f1c2f4727944c26baab69227444412298eefc85f2a7a38812631f9
|
|
7
|
+
data.tar.gz: f197ea4c11feeb7d7c917c76ad9ae4e1af0196ed87e549785a2739793e0a6e6cee427c37b31a913b982d4ae7ad1f172691cb1c70970576a7813b65f9374367f2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-rspec
|
|
2
2
|
|
|
3
|
+
### v0.7.0 / 2025-11-04
|
|
4
|
+
|
|
5
|
+
* ADDED: Add example.id attribute to RSpec instrumentation
|
|
6
|
+
* FIXED: Capture correct descriptions for RSpec one-liner examples
|
|
7
|
+
|
|
8
|
+
### v0.6.0 / 2025-10-22
|
|
9
|
+
|
|
10
|
+
* BREAKING CHANGE: Min Ruby Version 3.2
|
|
11
|
+
|
|
12
|
+
* ADDED: Min Ruby Version 3.2
|
|
13
|
+
|
|
3
14
|
### v0.5.1 / 2025-09-30
|
|
4
15
|
|
|
5
16
|
* FIXED: Min OTel Ruby API 1.7
|
|
@@ -58,6 +58,7 @@ module OpenTelemetry
|
|
|
58
58
|
def example_started(notification)
|
|
59
59
|
example = notification.example
|
|
60
60
|
attributes = {
|
|
61
|
+
'rspec.example.id' => example.id.to_s,
|
|
61
62
|
'rspec.example.location' => example.location.to_s,
|
|
62
63
|
'rspec.example.full_description' => example.full_description.to_s,
|
|
63
64
|
'rspec.example.described_class' => example.metadata[:described_class].to_s
|
|
@@ -68,9 +69,15 @@ module OpenTelemetry
|
|
|
68
69
|
|
|
69
70
|
def example_finished(notification)
|
|
70
71
|
pop_and_finalize_span do |span|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
example = notification.example
|
|
73
|
+
result = example.execution_result
|
|
74
|
+
|
|
75
|
+
# Update name and full_description for one-liner examples where description is generated after execution
|
|
76
|
+
span.name = example.description
|
|
77
|
+
span.add_attributes(
|
|
78
|
+
'rspec.example.full_description' => example.full_description.to_s,
|
|
79
|
+
'rspec.example.result' => result.status.to_s
|
|
80
|
+
)
|
|
74
81
|
|
|
75
82
|
add_exception_and_failures(span, result.exception)
|
|
76
83
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opentelemetry-instrumentation-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.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: 2025-
|
|
11
|
+
date: 2025-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opentelemetry-instrumentation-base
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
19
|
+
version: '0.25'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
26
|
+
version: '0.25'
|
|
27
27
|
description: Rspec instrumentation for the OpenTelemetry framework
|
|
28
28
|
email:
|
|
29
29
|
- cncf-opentelemetry-contributors@lists.cncf.io
|
|
@@ -45,10 +45,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
45
45
|
licenses:
|
|
46
46
|
- Apache-2.0
|
|
47
47
|
metadata:
|
|
48
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.
|
|
48
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.7.0/file/CHANGELOG.md
|
|
49
49
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/rspec
|
|
50
50
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
51
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.
|
|
51
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.7.0
|
|
52
52
|
post_install_message:
|
|
53
53
|
rdoc_options: []
|
|
54
54
|
require_paths:
|
|
@@ -57,14 +57,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - ">="
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '3.
|
|
60
|
+
version: '3.2'
|
|
61
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
65
|
version: '0'
|
|
66
66
|
requirements: []
|
|
67
|
-
rubygems_version: 3.
|
|
67
|
+
rubygems_version: 3.4.19
|
|
68
68
|
signing_key:
|
|
69
69
|
specification_version: 4
|
|
70
70
|
summary: Rspec instrumentation for the OpenTelemetry framework
|