opentelemetry-exporter-otlp 0.26.0 → 0.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +51 -2
- data/lib/opentelemetry/exporter/otlp/version.rb +1 -1
- metadata +20 -10
- data/lib/opentelemetry/proto/collector/logs/v1/logs_service_services_pb.rb +0 -50
- data/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_services_pb.rb +0 -50
- data/lib/opentelemetry/proto/collector/trace/v1/trace_service_services_pb.rb +0 -50
- data/lib/opentelemetry/proto/trace/v1/trace_config_pb.rb +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb071dc1c0134311f132447de543f3ca59c2f0180f1fce9e5a944649626b0afc
|
4
|
+
data.tar.gz: 67bbd4fcfdb43ff12e0634de1c2fb1894de132cf5ebab5d52f78762a007f266c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64cbdfa923fd9c836a4d315d44798df650b74b31936024300562e3d65a688166e5ce3c8e518db6047f908f1411bb9ebb00ce3fa9246c1cae0fcf24b7ccaea968
|
7
|
+
data.tar.gz: 1a47dabce4a7ae7f623ee533fa8e99287efcc12e873153f6fe1966039cde385df7d38ba90472694843aaccdf6bcabea13cf76c36d4f1c6dd6e57a72d1494ec63
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,15 +16,17 @@ Generally, *libraries* that produce telemetry data should avoid depending direct
|
|
16
16
|
|
17
17
|
### Supported protocol version
|
18
18
|
|
19
|
-
This gem supports the [v0.
|
19
|
+
This gem supports the [v0.20.0 release][otel-proto-release] of OTLP.
|
20
20
|
|
21
21
|
## How do I get started?
|
22
22
|
|
23
23
|
Install the gem using:
|
24
24
|
|
25
|
-
```
|
25
|
+
```console
|
26
|
+
|
26
27
|
gem install opentelemetry-sdk
|
27
28
|
gem install opentelemetry-exporter-otlp
|
29
|
+
|
28
30
|
```
|
29
31
|
|
30
32
|
Or, if you use [bundler][bundler-home], include `opentelemetry-sdk` in your `Gemfile`.
|
@@ -93,6 +95,48 @@ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special int
|
|
93
95
|
|
94
96
|
The `opentelemetry-exporter-otlp` gem is distributed under the Apache 2.0 license. See [LICENSE][license-github] for more information.
|
95
97
|
|
98
|
+
## Working with Proto Definitions
|
99
|
+
|
100
|
+
The OTel community maintains a [repository with protobuf definitions][otel-proto-github] that language and collector implementors use to generate code.
|
101
|
+
|
102
|
+
Maintainers are expected to keep up to date with the latest version of protos. This guide will provide you with step-by-step instructions on updating the OTLP Exporter gem with the latest definitions.
|
103
|
+
|
104
|
+
### System Requirements
|
105
|
+
|
106
|
+
- [`git` 2.41+][git-install]
|
107
|
+
- [`protoc` 22.5][protoc-install]
|
108
|
+
- [Ruby 3+][ruby-downloads]
|
109
|
+
|
110
|
+
> :warning: `protoc 23.x` *changes the Ruby code generator to emit a serialized proto instead of a DSL.* <https://protobuf.dev/news/2023-04-20/>. Please ensure you use `protoc` version `22.x` in order to ensure we remain compatible with versions of protobuf prior to `google-protobuf` gem `3.18`.
|
111
|
+
|
112
|
+
### Upgrade Proto Definitions
|
113
|
+
|
114
|
+
**Update the target otel-proto version in the `Rakefile` that matches a release `tag` in the proto repo, e.g.**
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
# Rakefile
|
118
|
+
|
119
|
+
# https://github.com/open-telemetry/opentelemetry-proto/tree/v0.20.0
|
120
|
+
PROTO_VERSION = `v0.20.0`
|
121
|
+
```
|
122
|
+
|
123
|
+
**Generate the Ruby source files using `rake`:**
|
124
|
+
|
125
|
+
```console
|
126
|
+
|
127
|
+
$> bundle exec rake protobuf:generate
|
128
|
+
|
129
|
+
```
|
130
|
+
|
131
|
+
**Run tests and fix any errors:**
|
132
|
+
|
133
|
+
```console
|
134
|
+
|
135
|
+
$> bundle exec rake test
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
**Commit the chnages and open a PR!**
|
96
140
|
|
97
141
|
[opentelemetry-collector-home]: https://opentelemetry.io/docs/collector/about/
|
98
142
|
[opentelemetry-home]: https://opentelemetry.io
|
@@ -103,3 +147,8 @@ The `opentelemetry-exporter-otlp` gem is distributed under the Apache 2.0 licens
|
|
103
147
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
104
148
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
105
149
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
150
|
+
[git-install]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
|
151
|
+
[protoc-install]: https://github.com/protocolbuffers/protobuf/releases/tag/v22.5
|
152
|
+
[ruby-downloads]: https://www.ruby-lang.org/en/downloads/
|
153
|
+
[otel-proto-github]: https://github.com/open-telemetry/opentelemetry-proto
|
154
|
+
[otel-proto-release]: https://github.com/open-telemetry/opentelemetry-proto/releases/tag/v0.20.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-exporter-otlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleapis-common-protos-types
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.14'
|
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: '3.
|
40
|
+
version: '3.14'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: opentelemetry-api
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: appraisal
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.2.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.2.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: bundler
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -264,25 +278,21 @@ files:
|
|
264
278
|
- lib/opentelemetry/exporter/otlp/exporter.rb
|
265
279
|
- lib/opentelemetry/exporter/otlp/version.rb
|
266
280
|
- lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb
|
267
|
-
- lib/opentelemetry/proto/collector/logs/v1/logs_service_services_pb.rb
|
268
281
|
- lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb
|
269
|
-
- lib/opentelemetry/proto/collector/metrics/v1/metrics_service_services_pb.rb
|
270
282
|
- lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb
|
271
|
-
- lib/opentelemetry/proto/collector/trace/v1/trace_service_services_pb.rb
|
272
283
|
- lib/opentelemetry/proto/common/v1/common_pb.rb
|
273
284
|
- lib/opentelemetry/proto/logs/v1/logs_pb.rb
|
274
285
|
- lib/opentelemetry/proto/metrics/v1/metrics_pb.rb
|
275
286
|
- lib/opentelemetry/proto/resource/v1/resource_pb.rb
|
276
|
-
- lib/opentelemetry/proto/trace/v1/trace_config_pb.rb
|
277
287
|
- lib/opentelemetry/proto/trace/v1/trace_pb.rb
|
278
288
|
homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
279
289
|
licenses:
|
280
290
|
- Apache-2.0
|
281
291
|
metadata:
|
282
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.
|
292
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.1/file.CHANGELOG.html
|
283
293
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp
|
284
294
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
285
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.
|
295
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.1
|
286
296
|
post_install_message:
|
287
297
|
rdoc_options: []
|
288
298
|
require_paths:
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: opentelemetry/proto/collector/logs/v1/logs_service.proto for package 'opentelemetry.proto.collector.logs.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2020, OpenTelemetry Authors
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require 'grpc'
|
20
|
-
require 'opentelemetry/proto/collector/logs/v1/logs_service_pb'
|
21
|
-
|
22
|
-
module Opentelemetry
|
23
|
-
module Proto
|
24
|
-
module Collector
|
25
|
-
module Logs
|
26
|
-
module V1
|
27
|
-
module LogsService
|
28
|
-
# Service that can be used to push logs between one Application instrumented with
|
29
|
-
# OpenTelemetry and an collector, or between an collector and a central collector (in this
|
30
|
-
# case logs are sent/received to/from multiple Applications).
|
31
|
-
class Service
|
32
|
-
|
33
|
-
include ::GRPC::GenericService
|
34
|
-
|
35
|
-
self.marshal_class_method = :encode
|
36
|
-
self.unmarshal_class_method = :decode
|
37
|
-
self.service_name = 'opentelemetry.proto.collector.logs.v1.LogsService'
|
38
|
-
|
39
|
-
# For performance reasons, it is recommended to keep this RPC
|
40
|
-
# alive for the entire life of the application.
|
41
|
-
rpc :Export, ::Opentelemetry::Proto::Collector::Logs::V1::ExportLogsServiceRequest, ::Opentelemetry::Proto::Collector::Logs::V1::ExportLogsServiceResponse
|
42
|
-
end
|
43
|
-
|
44
|
-
Stub = Service.rpc_stub_class
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto for package 'opentelemetry.proto.collector.metrics.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019, OpenTelemetry Authors
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require 'grpc'
|
20
|
-
require 'opentelemetry/proto/collector/metrics/v1/metrics_service_pb'
|
21
|
-
|
22
|
-
module Opentelemetry
|
23
|
-
module Proto
|
24
|
-
module Collector
|
25
|
-
module Metrics
|
26
|
-
module V1
|
27
|
-
module MetricsService
|
28
|
-
# Service that can be used to push metrics between one Application
|
29
|
-
# instrumented with OpenTelemetry and a collector, or between a collector and a
|
30
|
-
# central collector.
|
31
|
-
class Service
|
32
|
-
|
33
|
-
include ::GRPC::GenericService
|
34
|
-
|
35
|
-
self.marshal_class_method = :encode
|
36
|
-
self.unmarshal_class_method = :decode
|
37
|
-
self.service_name = 'opentelemetry.proto.collector.metrics.v1.MetricsService'
|
38
|
-
|
39
|
-
# For performance reasons, it is recommended to keep this RPC
|
40
|
-
# alive for the entire life of the application.
|
41
|
-
rpc :Export, ::Opentelemetry::Proto::Collector::Metrics::V1::ExportMetricsServiceRequest, ::Opentelemetry::Proto::Collector::Metrics::V1::ExportMetricsServiceResponse
|
42
|
-
end
|
43
|
-
|
44
|
-
Stub = Service.rpc_stub_class
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: opentelemetry/proto/collector/trace/v1/trace_service.proto for package 'opentelemetry.proto.collector.trace.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019, OpenTelemetry Authors
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
require 'grpc'
|
20
|
-
require 'opentelemetry/proto/collector/trace/v1/trace_service_pb'
|
21
|
-
|
22
|
-
module Opentelemetry
|
23
|
-
module Proto
|
24
|
-
module Collector
|
25
|
-
module Trace
|
26
|
-
module V1
|
27
|
-
module TraceService
|
28
|
-
# Service that can be used to push spans between one Application instrumented with
|
29
|
-
# OpenTelemetry and a collector, or between a collector and a central collector (in this
|
30
|
-
# case spans are sent/received to/from multiple Applications).
|
31
|
-
class Service
|
32
|
-
|
33
|
-
include ::GRPC::GenericService
|
34
|
-
|
35
|
-
self.marshal_class_method = :encode
|
36
|
-
self.unmarshal_class_method = :decode
|
37
|
-
self.service_name = 'opentelemetry.proto.collector.trace.v1.TraceService'
|
38
|
-
|
39
|
-
# For performance reasons, it is recommended to keep this RPC
|
40
|
-
# alive for the entire life of the application.
|
41
|
-
rpc :Export, ::Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest, ::Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceResponse
|
42
|
-
end
|
43
|
-
|
44
|
-
Stub = Service.rpc_stub_class
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: opentelemetry/proto/trace/v1/trace_config.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("opentelemetry/proto/trace/v1/trace_config.proto", :syntax => :proto3) do
|
8
|
-
add_message "opentelemetry.proto.trace.v1.TraceConfig" do
|
9
|
-
optional :max_number_of_attributes, :int64, 4
|
10
|
-
optional :max_number_of_timed_events, :int64, 5
|
11
|
-
optional :max_number_of_attributes_per_timed_event, :int64, 6
|
12
|
-
optional :max_number_of_links, :int64, 7
|
13
|
-
optional :max_number_of_attributes_per_link, :int64, 8
|
14
|
-
oneof :sampler do
|
15
|
-
optional :constant_sampler, :message, 1, "opentelemetry.proto.trace.v1.ConstantSampler"
|
16
|
-
optional :trace_id_ratio_based, :message, 2, "opentelemetry.proto.trace.v1.TraceIdRatioBased"
|
17
|
-
optional :rate_limiting_sampler, :message, 3, "opentelemetry.proto.trace.v1.RateLimitingSampler"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
add_message "opentelemetry.proto.trace.v1.ConstantSampler" do
|
21
|
-
optional :decision, :enum, 1, "opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision"
|
22
|
-
end
|
23
|
-
add_enum "opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision" do
|
24
|
-
value :ALWAYS_OFF, 0
|
25
|
-
value :ALWAYS_ON, 1
|
26
|
-
value :ALWAYS_PARENT, 2
|
27
|
-
end
|
28
|
-
add_message "opentelemetry.proto.trace.v1.TraceIdRatioBased" do
|
29
|
-
optional :samplingRatio, :double, 1
|
30
|
-
end
|
31
|
-
add_message "opentelemetry.proto.trace.v1.RateLimitingSampler" do
|
32
|
-
optional :qps, :int64, 1
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
module Opentelemetry
|
38
|
-
module Proto
|
39
|
-
module Trace
|
40
|
-
module V1
|
41
|
-
TraceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.TraceConfig").msgclass
|
42
|
-
ConstantSampler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ConstantSampler").msgclass
|
43
|
-
ConstantSampler::ConstantDecision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision").enummodule
|
44
|
-
TraceIdRatioBased = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.TraceIdRatioBased").msgclass
|
45
|
-
RateLimitingSampler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.RateLimitingSampler").msgclass
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|