opentelemetry-test-helpers 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -4
- data/README.md +1 -4
- data/lib/opentelemetry/test_helpers/version.rb +1 -1
- data/lib/opentelemetry/test_helpers.rb +29 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c36c4434cb0043d4840d1922230611ceda7ce6b73d9c783a4bc85dfc1b5ffdd
|
4
|
+
data.tar.gz: 32c2e073615840a8e879f493423037b615ef9d4cda3ce245efbeb7ee48bcbedd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e645ba2e7a091ec8ad5978aa1c708c755df29eecaafbafbe4062c16658ec8f4006f6b82e39a9c9da6f0aeecf4e044f26b15b4869954649902ef8a4c51c87aa00
|
7
|
+
data.tar.gz: 2225aae58f967ee4083bf814f809b7c88febf9789f02e49210979906c305197abf2d7bfca53673652cda34b5d4458040fd40cfe0b39ee2e2e9d8d8073aba58e8
|
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
# Release History: opentelemetry-test-helpers
|
2
2
|
|
3
|
+
### v0.5.0 / 2024-12-04
|
4
|
+
|
5
|
+
* ADDED: Add OTLP Log Record Exporter
|
6
|
+
|
3
7
|
### v0.4.0 / 2023-06-08
|
4
8
|
|
5
|
-
* BREAKING CHANGE: Remove support for EoL Ruby 2.7
|
9
|
+
* BREAKING CHANGE: Remove support for EoL Ruby 2.7
|
6
10
|
|
7
|
-
* ADDED: Remove support for EoL Ruby 2.7
|
11
|
+
* ADDED: Remove support for EoL Ruby 2.7
|
8
12
|
|
9
13
|
### v0.3.0 / 2022-09-14
|
10
14
|
|
11
|
-
* ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
|
15
|
+
* ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
|
12
16
|
|
13
17
|
### v0.2.0 / 2022-06-09
|
14
18
|
|
15
|
-
* ADDED: Otlp grpc
|
19
|
+
* ADDED: Otlp grpc
|
16
20
|
|
17
21
|
### v0.1.0 / 2022-04-22
|
18
22
|
|
data/README.md
CHANGED
@@ -16,13 +16,12 @@ The `opentelemetry-test-helpers` gem is home to commonly used snippets of test c
|
|
16
16
|
|
17
17
|
Install the gem using:
|
18
18
|
|
19
|
-
```
|
19
|
+
```sh
|
20
20
|
gem install opentelemetry-test-helpers
|
21
21
|
```
|
22
22
|
|
23
23
|
Or, if you use [bundler][bundler-home], include `opentelemetry-test-helpers` in your `Gemfile`.
|
24
24
|
|
25
|
-
|
26
25
|
## How can I get involved?
|
27
26
|
|
28
27
|
The `opentelemetry-test-helpers` gem source is [on github][repo-github], along with related gems including `opentelemetry-api`.
|
@@ -33,12 +32,10 @@ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special int
|
|
33
32
|
|
34
33
|
The `opentelemetry-test-helpers` gem is distributed under the Apache 2.0 license. See [LICENSE][license-github] for more information.
|
35
34
|
|
36
|
-
|
37
35
|
[opentelemetry-home]: https://opentelemetry.io
|
38
36
|
[bundler-home]: https://bundler.io
|
39
37
|
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
|
40
38
|
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
|
41
|
-
[examples-github]: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/examples
|
42
39
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
43
40
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
44
41
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -72,5 +72,34 @@ module OpenTelemetry
|
|
72
72
|
total_recorded_events, total_recorded_links, start_timestamp, end_timestamp,
|
73
73
|
attributes, links, events, resource, instrumentation_scope, span_id, trace_id, trace_flags, tracestate)
|
74
74
|
end
|
75
|
+
|
76
|
+
def create_log_record_data(timestamp: OpenTelemetry::TestHelpers.exportable_timestamp,
|
77
|
+
observed_timestamp: OpenTelemetry::TestHelpers.exportable_timestamp,
|
78
|
+
severity_text: nil,
|
79
|
+
severity_number: nil,
|
80
|
+
body: nil,
|
81
|
+
attributes: nil,
|
82
|
+
trace_id: OpenTelemetry::Trace.generate_trace_id,
|
83
|
+
span_id: OpenTelemetry::Trace.generate_span_id,
|
84
|
+
trace_flags: OpenTelemetry::Trace::TraceFlags::DEFAULT,
|
85
|
+
resource: nil,
|
86
|
+
instrumentation_scope: OpenTelemetry::SDK::InstrumentationScope.new('', 'v0.0.1'),
|
87
|
+
total_recorded_attributes: 0)
|
88
|
+
resource ||= OpenTelemetry::SDK::Resources::Resource.telemetry_sdk
|
89
|
+
OpenTelemetry::SDK::Logs::LogRecordData.new(
|
90
|
+
timestamp,
|
91
|
+
observed_timestamp,
|
92
|
+
severity_text,
|
93
|
+
severity_number,
|
94
|
+
body,
|
95
|
+
attributes,
|
96
|
+
trace_id,
|
97
|
+
span_id,
|
98
|
+
trace_flags,
|
99
|
+
resource,
|
100
|
+
instrumentation_scope,
|
101
|
+
total_recorded_attributes
|
102
|
+
)
|
103
|
+
end
|
75
104
|
end
|
76
105
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-test-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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:
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
103
|
+
version: '1.65'
|
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.
|
110
|
+
version: '1.65'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,10 +168,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
168
168
|
licenses:
|
169
169
|
- Apache-2.0
|
170
170
|
metadata:
|
171
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.
|
171
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.5.0/file.CHANGELOG.html
|
172
172
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/test_helpers
|
173
173
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
174
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.
|
174
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.5.0
|
175
175
|
post_install_message:
|
176
176
|
rdoc_options: []
|
177
177
|
require_paths:
|