opentelemetry-exporter-otlp 0.24.0 → 0.26.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +51 -2
- data/lib/opentelemetry/exporter/otlp/exporter.rb +44 -18
- data/lib/opentelemetry/exporter/otlp/version.rb +1 -1
- data/lib/opentelemetry/exporter/otlp.rb +1 -1
- data/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb +6 -0
- data/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb +6 -0
- data/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb +6 -0
- data/lib/opentelemetry/proto/common/v1/common_pb.rb +2 -5
- data/lib/opentelemetry/proto/logs/v1/logs_pb.rb +2 -9
- data/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb +3 -9
- data/lib/opentelemetry/proto/trace/v1/trace_pb.rb +0 -7
- metadata +24 -14
- 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: 7bc7e8bbf3754ac0b3e7666565be7a3b18c5a0efe17324785a50585d091bbf4a
|
4
|
+
data.tar.gz: d69c6affa0eaa01c894f86bf943e71053ea0c18b127e4492b219c397ca1376e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f882b1c1e1ae24c283ce2e83c97f80b055a1ae95d0d35b27f7dc3bd271053b712232b0b939d44b4cd35fd9cd2edbaff50ac54a2e698f834773d7e3c5e448519a
|
7
|
+
data.tar.gz: 65c48f81bf8a89d24ded2d1078d819894f26cbabf6ce0df6a48d8f64fc62a1e8246aad91495733838f1c6e38339eddb6d1651fc39520f7832db000eb5d99c1a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,36 @@
|
|
1
1
|
# Release History: opentelemetry-exporter-otlp
|
2
2
|
|
3
|
+
### v0.26.3 / 2024-02-01
|
4
|
+
|
5
|
+
* FIXED: do not log request failure in backoff?
|
6
|
+
|
7
|
+
### v0.26.2 / 2024-01-23
|
8
|
+
|
9
|
+
* FIXED: Align endpoint environment variable handling with spec
|
10
|
+
* FIXED: Require csv for ruby-3.4 compatibility
|
11
|
+
* FIXED: Add context to metrics reporting of buffer-full events
|
12
|
+
|
13
|
+
### v0.26.1 / 2023-07-29
|
14
|
+
|
15
|
+
* FIXED: Regenerate v0.20.0 protos
|
16
|
+
* ADDED: Allow google-protobuf ~> 3.14
|
17
|
+
|
18
|
+
### v0.26.0 / 2023-06-13
|
19
|
+
|
20
|
+
* ADDED: Use OTLP 0.20.0 protos
|
21
|
+
|
22
|
+
### v0.25.0 / 2023-06-01
|
23
|
+
|
24
|
+
* BREAKING CHANGE: Remove support for EoL Ruby 2.7
|
25
|
+
|
26
|
+
* ADDED: Remove support for EoL Ruby 2.7
|
27
|
+
* FIXED: Make version available to user agent header #1458
|
28
|
+
|
29
|
+
### v0.24.1 / 2023-05-30
|
30
|
+
|
31
|
+
* FIXED: Add Ruby 3.2 to CI and do small fix
|
32
|
+
* FIXED: Adds User-Agent header in OTLP exporter
|
33
|
+
|
3
34
|
### v0.24.0 / 2022-09-14
|
4
35
|
|
5
36
|
* ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
|
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
|
@@ -7,7 +7,6 @@
|
|
7
7
|
require 'opentelemetry/common'
|
8
8
|
require 'opentelemetry/sdk'
|
9
9
|
require 'net/http'
|
10
|
-
require 'csv'
|
11
10
|
require 'zlib'
|
12
11
|
|
13
12
|
require 'google/rpc/status_pb'
|
@@ -35,6 +34,8 @@ module OpenTelemetry
|
|
35
34
|
ERROR_MESSAGE_INVALID_HEADERS = 'headers must be a String with comma-separated URL Encoded UTF-8 k=v pairs or a Hash'
|
36
35
|
private_constant(:ERROR_MESSAGE_INVALID_HEADERS)
|
37
36
|
|
37
|
+
DEFAULT_USER_AGENT = "OTel-OTLP-Exporter-Ruby/#{OpenTelemetry::Exporter::OTLP::VERSION} Ruby/#{RUBY_VERSION} (#{RUBY_PLATFORM}; #{RUBY_ENGINE}/#{RUBY_ENGINE_VERSION})".freeze
|
38
|
+
|
38
39
|
def self.ssl_verify_mode
|
39
40
|
if ENV.key?('OTEL_RUBY_EXPORTER_OTLP_SSL_VERIFY_PEER')
|
40
41
|
OpenSSL::SSL::VERIFY_PEER
|
@@ -45,31 +46,21 @@ module OpenTelemetry
|
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
48
|
-
def initialize(endpoint:
|
49
|
+
def initialize(endpoint: nil,
|
49
50
|
certificate_file: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE', 'OTEL_EXPORTER_OTLP_CERTIFICATE'),
|
50
51
|
ssl_verify_mode: Exporter.ssl_verify_mode,
|
51
52
|
headers: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_HEADERS', 'OTEL_EXPORTER_OTLP_HEADERS', default: {}),
|
52
53
|
compression: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_COMPRESSION', 'OTEL_EXPORTER_OTLP_COMPRESSION', default: 'gzip'),
|
53
54
|
timeout: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_TIMEOUT', 'OTEL_EXPORTER_OTLP_TIMEOUT', default: 10),
|
54
55
|
metrics_reporter: nil)
|
55
|
-
|
56
|
-
raise ArgumentError, "unsupported compression key #{compression}" unless compression.nil? || %w[gzip none].include?(compression)
|
56
|
+
@uri = prepare_endpoint(endpoint)
|
57
57
|
|
58
|
-
|
59
|
-
URI.join(endpoint, 'v1/traces')
|
60
|
-
else
|
61
|
-
URI(endpoint)
|
62
|
-
end
|
58
|
+
raise ArgumentError, "unsupported compression key #{compression}" unless compression.nil? || %w[gzip none].include?(compression)
|
63
59
|
|
64
60
|
@http = http_connection(@uri, ssl_verify_mode, certificate_file)
|
65
61
|
|
66
62
|
@path = @uri.path
|
67
|
-
@headers =
|
68
|
-
when String then parse_headers(headers)
|
69
|
-
when Hash then headers
|
70
|
-
else
|
71
|
-
raise ArgumentError, ERROR_MESSAGE_INVALID_HEADERS
|
72
|
-
end
|
63
|
+
@headers = prepare_headers(headers)
|
73
64
|
@timeout = timeout.to_f
|
74
65
|
@compression = compression
|
75
66
|
@metrics_reporter = metrics_reporter || OpenTelemetry::SDK::Trace::Export::MetricsReporter
|
@@ -175,8 +166,7 @@ module OpenTelemetry
|
|
175
166
|
redo if backoff?(retry_count: retry_count += 1, reason: response.code)
|
176
167
|
FAILURE
|
177
168
|
when Net::HTTPNotFound
|
178
|
-
|
179
|
-
@metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => response.code })
|
169
|
+
log_request_failure(response.code)
|
180
170
|
FAILURE
|
181
171
|
when Net::HTTPBadRequest, Net::HTTPClientError, Net::HTTPServerError
|
182
172
|
log_status(response.body)
|
@@ -188,6 +178,7 @@ module OpenTelemetry
|
|
188
178
|
redo if backoff?(retry_after: 0, retry_count: retry_count += 1, reason: response.code)
|
189
179
|
else
|
190
180
|
@http.finish
|
181
|
+
log_request_failure(response.code)
|
191
182
|
FAILURE
|
192
183
|
end
|
193
184
|
rescue Net::OpenTimeout, Net::ReadTimeout
|
@@ -230,11 +221,16 @@ module OpenTelemetry
|
|
230
221
|
klass_or_nil = ::Google::Protobuf::DescriptorPool.generated_pool.lookup(detail.type_name).msgclass
|
231
222
|
detail.unpack(klass_or_nil) if klass_or_nil
|
232
223
|
end.compact
|
233
|
-
OpenTelemetry.handle_error(message: "OTLP exporter received rpc.Status{message=#{status.message}, details=#{details}}")
|
224
|
+
OpenTelemetry.handle_error(message: "OTLP exporter received rpc.Status{message=#{status.message}, details=#{details}} for uri=#{@uri}")
|
234
225
|
rescue StandardError => e
|
235
226
|
OpenTelemetry.handle_error(exception: e, message: 'unexpected error decoding rpc.Status in OTLP::Exporter#log_status')
|
236
227
|
end
|
237
228
|
|
229
|
+
def log_request_failure(response_code)
|
230
|
+
OpenTelemetry.handle_error(message: "OTLP exporter received http.code=#{response_code} for uri='#{@uri}' in OTLP::Exporter#send_bytes")
|
231
|
+
@metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => response_code })
|
232
|
+
end
|
233
|
+
|
238
234
|
def measure_request_duration
|
239
235
|
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
240
236
|
begin
|
@@ -389,6 +385,34 @@ module OpenTelemetry
|
|
389
385
|
result
|
390
386
|
end
|
391
387
|
|
388
|
+
def prepare_endpoint(endpoint)
|
389
|
+
endpoint ||= ENV['OTEL_EXPORTER_OTLP_TRACES_ENDPOINT']
|
390
|
+
if endpoint.nil?
|
391
|
+
endpoint = ENV['OTEL_EXPORTER_OTLP_ENDPOINT'] || 'http://localhost:4318'
|
392
|
+
endpoint += '/' unless endpoint.end_with?('/')
|
393
|
+
URI.join(endpoint, 'v1/traces')
|
394
|
+
elsif endpoint.strip.empty?
|
395
|
+
raise ArgumentError, "invalid url for OTLP::Exporter #{endpoint}"
|
396
|
+
else
|
397
|
+
URI(endpoint)
|
398
|
+
end
|
399
|
+
rescue URI::InvalidURIError
|
400
|
+
raise ArgumentError, "invalid url for OTLP::Exporter #{endpoint}"
|
401
|
+
end
|
402
|
+
|
403
|
+
def prepare_headers(config_headers)
|
404
|
+
headers = case config_headers
|
405
|
+
when String then parse_headers(config_headers)
|
406
|
+
when Hash then config_headers.dup
|
407
|
+
else
|
408
|
+
raise ArgumentError, ERROR_MESSAGE_INVALID_HEADERS
|
409
|
+
end
|
410
|
+
|
411
|
+
headers['User-Agent'] = "#{headers.fetch('User-Agent', '')} #{DEFAULT_USER_AGENT}".strip
|
412
|
+
|
413
|
+
headers
|
414
|
+
end
|
415
|
+
|
392
416
|
def parse_headers(raw)
|
393
417
|
entries = raw.split(',')
|
394
418
|
raise ArgumentError, ERROR_MESSAGE_INVALID_HEADERS if entries.empty?
|
@@ -398,6 +422,8 @@ module OpenTelemetry
|
|
398
422
|
begin
|
399
423
|
k = k.to_s.strip
|
400
424
|
v = v.to_s.strip
|
425
|
+
rescue Encoding::CompatibilityError
|
426
|
+
raise ArgumentError, ERROR_MESSAGE_INVALID_HEADERS
|
401
427
|
rescue ArgumentError => e
|
402
428
|
raise e, ERROR_MESSAGE_INVALID_HEADERS
|
403
429
|
end
|
@@ -4,8 +4,8 @@
|
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
7
|
-
require 'opentelemetry/exporter/otlp/exporter'
|
8
7
|
require 'opentelemetry/exporter/otlp/version'
|
8
|
+
require 'opentelemetry/exporter/otlp/exporter'
|
9
9
|
|
10
10
|
# OpenTelemetry is an open source observability framework, providing a
|
11
11
|
# general-purpose API, SDK, and related tools required for the instrumentation
|
@@ -11,6 +11,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs"
|
12
12
|
end
|
13
13
|
add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse" do
|
14
|
+
optional :partial_success, :message, 1, "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"
|
15
|
+
end
|
16
|
+
add_message "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess" do
|
17
|
+
optional :rejected_log_records, :int64, 1
|
18
|
+
optional :error_message, :string, 2
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
@@ -22,6 +27,7 @@ module Opentelemetry
|
|
22
27
|
module V1
|
23
28
|
ExportLogsServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest").msgclass
|
24
29
|
ExportLogsServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse").msgclass
|
30
|
+
ExportLogsPartialSuccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess").msgclass
|
25
31
|
end
|
26
32
|
end
|
27
33
|
end
|
@@ -11,6 +11,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics"
|
12
12
|
end
|
13
13
|
add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse" do
|
14
|
+
optional :partial_success, :message, 1, "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"
|
15
|
+
end
|
16
|
+
add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess" do
|
17
|
+
optional :rejected_data_points, :int64, 1
|
18
|
+
optional :error_message, :string, 2
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
@@ -22,6 +27,7 @@ module Opentelemetry
|
|
22
27
|
module V1
|
23
28
|
ExportMetricsServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest").msgclass
|
24
29
|
ExportMetricsServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse").msgclass
|
30
|
+
ExportMetricsPartialSuccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess").msgclass
|
25
31
|
end
|
26
32
|
end
|
27
33
|
end
|
@@ -11,6 +11,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans"
|
12
12
|
end
|
13
13
|
add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse" do
|
14
|
+
optional :partial_success, :message, 1, "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"
|
15
|
+
end
|
16
|
+
add_message "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess" do
|
17
|
+
optional :rejected_spans, :int64, 1
|
18
|
+
optional :error_message, :string, 2
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
@@ -22,6 +27,7 @@ module Opentelemetry
|
|
22
27
|
module V1
|
23
28
|
ExportTraceServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest").msgclass
|
24
29
|
ExportTraceServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse").msgclass
|
30
|
+
ExportTracePartialSuccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess").msgclass
|
25
31
|
end
|
26
32
|
end
|
27
33
|
end
|
@@ -26,13 +26,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
optional :key, :string, 1
|
27
27
|
optional :value, :message, 2, "opentelemetry.proto.common.v1.AnyValue"
|
28
28
|
end
|
29
|
-
add_message "opentelemetry.proto.common.v1.InstrumentationLibrary" do
|
30
|
-
optional :name, :string, 1
|
31
|
-
optional :version, :string, 2
|
32
|
-
end
|
33
29
|
add_message "opentelemetry.proto.common.v1.InstrumentationScope" do
|
34
30
|
optional :name, :string, 1
|
35
31
|
optional :version, :string, 2
|
32
|
+
repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue"
|
33
|
+
optional :dropped_attributes_count, :uint32, 4
|
36
34
|
end
|
37
35
|
end
|
38
36
|
end
|
@@ -45,7 +43,6 @@ module Opentelemetry
|
|
45
43
|
ArrayValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.common.v1.ArrayValue").msgclass
|
46
44
|
KeyValueList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.common.v1.KeyValueList").msgclass
|
47
45
|
KeyValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.common.v1.KeyValue").msgclass
|
48
|
-
InstrumentationLibrary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.common.v1.InstrumentationLibrary").msgclass
|
49
46
|
InstrumentationScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.common.v1.InstrumentationScope").msgclass
|
50
47
|
end
|
51
48
|
end
|
@@ -14,7 +14,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
14
|
add_message "opentelemetry.proto.logs.v1.ResourceLogs" do
|
15
15
|
optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
|
16
16
|
repeated :scope_logs, :message, 2, "opentelemetry.proto.logs.v1.ScopeLogs"
|
17
|
-
repeated :instrumentation_library_logs, :message, 1000, "opentelemetry.proto.logs.v1.InstrumentationLibraryLogs"
|
18
17
|
optional :schema_url, :string, 3
|
19
18
|
end
|
20
19
|
add_message "opentelemetry.proto.logs.v1.ScopeLogs" do
|
@@ -22,11 +21,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
21
|
repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord"
|
23
22
|
optional :schema_url, :string, 3
|
24
23
|
end
|
25
|
-
add_message "opentelemetry.proto.logs.v1.InstrumentationLibraryLogs" do
|
26
|
-
optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary"
|
27
|
-
repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord"
|
28
|
-
optional :schema_url, :string, 3
|
29
|
-
end
|
30
24
|
add_message "opentelemetry.proto.logs.v1.LogRecord" do
|
31
25
|
optional :time_unix_nano, :fixed64, 1
|
32
26
|
optional :observed_time_unix_nano, :fixed64, 11
|
@@ -67,8 +61,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
67
61
|
value :SEVERITY_NUMBER_FATAL4, 24
|
68
62
|
end
|
69
63
|
add_enum "opentelemetry.proto.logs.v1.LogRecordFlags" do
|
70
|
-
value :
|
71
|
-
value :
|
64
|
+
value :LOG_RECORD_FLAGS_DO_NOT_USE, 0
|
65
|
+
value :LOG_RECORD_FLAGS_TRACE_FLAGS_MASK, 255
|
72
66
|
end
|
73
67
|
end
|
74
68
|
end
|
@@ -80,7 +74,6 @@ module Opentelemetry
|
|
80
74
|
LogsData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.LogsData").msgclass
|
81
75
|
ResourceLogs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.ResourceLogs").msgclass
|
82
76
|
ScopeLogs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.ScopeLogs").msgclass
|
83
|
-
InstrumentationLibraryLogs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.InstrumentationLibraryLogs").msgclass
|
84
77
|
LogRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.LogRecord").msgclass
|
85
78
|
SeverityNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.SeverityNumber").enummodule
|
86
79
|
LogRecordFlags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.LogRecordFlags").enummodule
|
@@ -14,7 +14,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
14
|
add_message "opentelemetry.proto.metrics.v1.ResourceMetrics" do
|
15
15
|
optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
|
16
16
|
repeated :scope_metrics, :message, 2, "opentelemetry.proto.metrics.v1.ScopeMetrics"
|
17
|
-
repeated :instrumentation_library_metrics, :message, 1000, "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics"
|
18
17
|
optional :schema_url, :string, 3
|
19
18
|
end
|
20
19
|
add_message "opentelemetry.proto.metrics.v1.ScopeMetrics" do
|
@@ -22,11 +21,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
21
|
repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric"
|
23
22
|
optional :schema_url, :string, 3
|
24
23
|
end
|
25
|
-
add_message "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics" do
|
26
|
-
optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary"
|
27
|
-
repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric"
|
28
|
-
optional :schema_url, :string, 3
|
29
|
-
end
|
30
24
|
add_message "opentelemetry.proto.metrics.v1.Metric" do
|
31
25
|
optional :name, :string, 1
|
32
26
|
optional :description, :string, 2
|
@@ -96,6 +90,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
96
90
|
repeated :exemplars, :message, 11, "opentelemetry.proto.metrics.v1.Exemplar"
|
97
91
|
proto3_optional :min, :double, 12
|
98
92
|
proto3_optional :max, :double, 13
|
93
|
+
optional :zero_threshold, :double, 14
|
99
94
|
end
|
100
95
|
add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" do
|
101
96
|
optional :offset, :sint32, 1
|
@@ -130,8 +125,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
130
125
|
value :AGGREGATION_TEMPORALITY_CUMULATIVE, 2
|
131
126
|
end
|
132
127
|
add_enum "opentelemetry.proto.metrics.v1.DataPointFlags" do
|
133
|
-
value :
|
134
|
-
value :
|
128
|
+
value :DATA_POINT_FLAGS_DO_NOT_USE, 0
|
129
|
+
value :DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK, 1
|
135
130
|
end
|
136
131
|
end
|
137
132
|
end
|
@@ -143,7 +138,6 @@ module Opentelemetry
|
|
143
138
|
MetricsData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.MetricsData").msgclass
|
144
139
|
ResourceMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.ResourceMetrics").msgclass
|
145
140
|
ScopeMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.ScopeMetrics").msgclass
|
146
|
-
InstrumentationLibraryMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics").msgclass
|
147
141
|
Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Metric").msgclass
|
148
142
|
Gauge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Gauge").msgclass
|
149
143
|
Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Sum").msgclass
|
@@ -14,7 +14,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
14
|
add_message "opentelemetry.proto.trace.v1.ResourceSpans" do
|
15
15
|
optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
|
16
16
|
repeated :scope_spans, :message, 2, "opentelemetry.proto.trace.v1.ScopeSpans"
|
17
|
-
repeated :instrumentation_library_spans, :message, 1000, "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans"
|
18
17
|
optional :schema_url, :string, 3
|
19
18
|
end
|
20
19
|
add_message "opentelemetry.proto.trace.v1.ScopeSpans" do
|
@@ -22,11 +21,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
21
|
repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span"
|
23
22
|
optional :schema_url, :string, 3
|
24
23
|
end
|
25
|
-
add_message "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans" do
|
26
|
-
optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary"
|
27
|
-
repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span"
|
28
|
-
optional :schema_url, :string, 3
|
29
|
-
end
|
30
24
|
add_message "opentelemetry.proto.trace.v1.Span" do
|
31
25
|
optional :trace_id, :bytes, 1
|
32
26
|
optional :span_id, :bytes, 2
|
@@ -84,7 +78,6 @@ module Opentelemetry
|
|
84
78
|
TracesData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.TracesData").msgclass
|
85
79
|
ResourceSpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ResourceSpans").msgclass
|
86
80
|
ScopeSpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ScopeSpans").msgclass
|
87
|
-
InstrumentationLibrarySpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.InstrumentationLibrarySpans").msgclass
|
88
81
|
Span = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span").msgclass
|
89
82
|
Span::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.Event").msgclass
|
90
83
|
Span::Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.Link").msgclass
|
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.
|
4
|
+
version: 0.26.3
|
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-02-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
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: '0.20'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: '0.20'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: opentelemetry-sdk
|
71
71
|
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.
|
292
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.3/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.
|
295
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.26.3
|
286
296
|
post_install_message:
|
287
297
|
rdoc_options: []
|
288
298
|
require_paths:
|
@@ -291,14 +301,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
291
301
|
requirements:
|
292
302
|
- - ">="
|
293
303
|
- !ruby/object:Gem::Version
|
294
|
-
version:
|
304
|
+
version: '3.0'
|
295
305
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
306
|
requirements:
|
297
307
|
- - ">="
|
298
308
|
- !ruby/object:Gem::Version
|
299
309
|
version: '0'
|
300
310
|
requirements: []
|
301
|
-
rubygems_version: 3.
|
311
|
+
rubygems_version: 3.2.33
|
302
312
|
signing_key:
|
303
313
|
specification_version: 4
|
304
314
|
summary: OTLP exporter for the OpenTelemetry framework
|
@@ -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
|