opentelemetry-instrumentation-rspec 0.6.0 → 0.8.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 +4 -4
- data/CHANGELOG.md +37 -29
- data/README.md +1 -1
- data/lib/opentelemetry/instrumentation/rspec/formatter.rb +10 -3
- data/lib/opentelemetry/instrumentation/rspec/version.rb +1 -1
- metadata +7 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f84c7cf9f93da78ceecc2ac7ed9a4b20158d156de92b8e33c3a25f8f8e402d8
|
|
4
|
+
data.tar.gz: 5b14c71f4fdc1c0bbbd22593a06a2aec647db97b8841774cb0e60cb41e2d967d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8ff033be9f82e5fdb9a04c52fa62a6fd071e20dc4acfa95d65d6d521fe908de7a4f6a8185bfcbb85842ebdb7e0e1e8a1e3a27f4f06380c641f766731e6d2be1
|
|
7
|
+
data.tar.gz: 0e6cdf6b1083393676ef6d4b817b2c488aa1ca58b39d9f976e90923f60b11d2f7c30382ba1fe7f30c3bf022dc4f36a16789c69a321cc4c3c4785f38004e30699
|
data/CHANGELOG.md
CHANGED
|
@@ -1,55 +1,63 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-rspec
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## v0.8.0 / 2026-04-14
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- BREAKING CHANGE: Min Ruby Version 3.3 (#2125)
|
|
6
|
+
- ADDED: Min Ruby Version 3.3 (#2125)
|
|
7
|
+
- ADDED: Add release tag into source code url of gem metadata (#1984)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
## v0.7.0 / 2025-11-04
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
- ADDED: Add example.id attribute to RSpec instrumentation
|
|
12
|
+
- FIXED: Capture correct descriptions for RSpec one-liner examples
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
## v0.6.0 / 2025-10-22
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
- BREAKING CHANGE: Min Ruby Version 3.2
|
|
17
|
+
- ADDED: Min Ruby Version 3.2
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
## v0.5.1 / 2025-09-30
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
- FIXED: Min OTel Ruby API 1.7
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## v0.5.0 / 2025-09-30
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
- ADDED: Bump minimum API Version to 1.7
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
## v0.4.0 / 2025-01-16
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
- BREAKING CHANGE: Set minimum supported version to Ruby 3.1
|
|
30
|
+
- ADDED: Set minimum supported version to Ruby 3.1
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
## v0.3.3 / 2024-04-30
|
|
28
33
|
|
|
29
|
-
|
|
34
|
+
- FIXED: Bundler conflict warnings
|
|
30
35
|
|
|
31
|
-
|
|
36
|
+
## v0.3.2 / 2023-11-23
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
- CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
## v0.3.1 / 2023-06-05
|
|
36
41
|
|
|
37
|
-
|
|
42
|
+
- FIXED: Base config options
|
|
38
43
|
|
|
39
|
-
|
|
40
|
-
* DOCS: Fix typo in rspec example
|
|
44
|
+
## v0.3.0 / 2023-04-17
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
- BREAKING CHANGE: Drop support for EoL Ruby 2.7
|
|
47
|
+
- ADDED: Drop support for EoL Ruby 2.7
|
|
48
|
+
- DOCS: Fix typo in rspec example
|
|
43
49
|
|
|
44
|
-
|
|
45
|
-
* DOCS: More gem documentation fixes
|
|
50
|
+
## v0.2.1 / 2023-01-14
|
|
46
51
|
|
|
47
|
-
|
|
52
|
+
- DOCS: Fix gem homepage
|
|
53
|
+
- DOCS: More gem documentation fixes
|
|
48
54
|
|
|
49
|
-
|
|
50
|
-
* FIXED: Strip console codes from RSpec messages and better handle multiple failures
|
|
51
|
-
* FIXED: Broken test file requirements
|
|
55
|
+
## v0.2.0 / 2022-06-09
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
- Upgrading Base dependency version
|
|
58
|
+
- FIXED: Strip console codes from RSpec messages and better handle multiple failures
|
|
59
|
+
- FIXED: Broken test file requirements
|
|
54
60
|
|
|
55
|
-
|
|
61
|
+
## v0.1.0 / 2021-12-01
|
|
62
|
+
|
|
63
|
+
- Initial release.
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ RSpec.configure do |config|
|
|
|
47
47
|
end
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
If you need to test trace
|
|
50
|
+
If you need to test trace behavior in your specs then you should be able to use a custom tracer provider and the instrumentation's output should not interfere with your specs.
|
|
51
51
|
|
|
52
52
|
### Sampling
|
|
53
53
|
|
|
@@ -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,13 @@
|
|
|
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.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenTelemetry Authors
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: opentelemetry-instrumentation-base
|
|
@@ -45,11 +44,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
45
44
|
licenses:
|
|
46
45
|
- Apache-2.0
|
|
47
46
|
metadata:
|
|
48
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.
|
|
49
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/
|
|
47
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.8.0/file/CHANGELOG.md
|
|
48
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-rspec/v0.8.0/instrumentation/rspec
|
|
50
49
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
51
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.
|
|
52
|
-
post_install_message:
|
|
50
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-rspec/0.8.0
|
|
53
51
|
rdoc_options: []
|
|
54
52
|
require_paths:
|
|
55
53
|
- lib
|
|
@@ -57,15 +55,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
57
55
|
requirements:
|
|
58
56
|
- - ">="
|
|
59
57
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '3.
|
|
58
|
+
version: '3.3'
|
|
61
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
60
|
requirements:
|
|
63
61
|
- - ">="
|
|
64
62
|
- !ruby/object:Gem::Version
|
|
65
63
|
version: '0'
|
|
66
64
|
requirements: []
|
|
67
|
-
rubygems_version:
|
|
68
|
-
signing_key:
|
|
65
|
+
rubygems_version: 4.0.6
|
|
69
66
|
specification_version: 4
|
|
70
67
|
summary: Rspec instrumentation for the OpenTelemetry framework
|
|
71
68
|
test_files: []
|