opentelemetry-exporter-otlp 0.26.3 → 0.29.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 +16 -0
- data/README.md +13 -11
- data/lib/opentelemetry/exporter/otlp/exporter.rb +15 -4
- data/lib/opentelemetry/exporter/otlp/version.rb +1 -1
- data/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb +6 -14
- data/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb +6 -14
- data/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb +6 -14
- data/lib/opentelemetry/proto/common/v1/common_pb.rb +6 -31
- data/lib/opentelemetry/proto/logs/v1/logs_pb.rb +6 -60
- data/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb +6 -124
- data/lib/opentelemetry/proto/resource/v1/resource_pb.rb +6 -8
- data/lib/opentelemetry/proto/trace/v1/trace_pb.rb +6 -64
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c56e204bfb604ef2808828160131ffc959afea396439f6618ca53008844eed
|
4
|
+
data.tar.gz: 6e472ba246caff69859e059f40af190a360abecefeee1a177b83b7d7781a3688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52fbc4098a8130ccc4544f6cd42beb6458d016ab9cdca053a832ae12008306de832f478c9c5eca6d13dfb5f92c037112311fdb45e6566d34c650d1e3e60fcca7
|
7
|
+
data.tar.gz: ce8a97c3a58f1d353203e0bcba363338ab12bd961bafe8b27c69900a6a3490964f6c036193f6491a21f1bc704bfc8e02bf05e0575802809b7a0e7780b5211889
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release History: opentelemetry-exporter-otlp
|
2
2
|
|
3
|
+
### v0.29.0 / 2024-08-27
|
4
|
+
|
5
|
+
* ADDED: Add support for mutual TLS.
|
6
|
+
|
7
|
+
### v0.28.1 / 2024-07-24
|
8
|
+
|
9
|
+
* ADDED: Improve SSL error logging.
|
10
|
+
|
11
|
+
### v0.28.0 / 2024-06-19
|
12
|
+
|
13
|
+
* ADDED: Bump google_protobuf >=3.18, < 5.a
|
14
|
+
|
15
|
+
### v0.27.0 / 2024-04-19
|
16
|
+
|
17
|
+
* ADDED: Add stats for serialization time in otlp exporter
|
18
|
+
|
3
19
|
### v0.26.3 / 2024-02-01
|
4
20
|
|
5
21
|
* FIXED: do not log request failure in backoff?
|
data/README.md
CHANGED
@@ -73,15 +73,17 @@ For additional examples, see the [examples on github][examples-github].
|
|
73
73
|
|
74
74
|
The collector exporter can be configured explicitly in code, or via environment variables as shown above. The configuration parameters, environment variables, and defaults are shown below.
|
75
75
|
|
76
|
-
| Parameter
|
77
|
-
|
78
|
-
| `endpoint:`
|
79
|
-
| `certificate_file
|
80
|
-
| `
|
81
|
-
| `
|
82
|
-
| `
|
83
|
-
| `
|
84
|
-
|
|
76
|
+
| Parameter | Environment variable | Default |
|
77
|
+
|---------------------------| -------------------------------------------- | ----------------------------------- |
|
78
|
+
| `endpoint:` | `OTEL_EXPORTER_OTLP_ENDPOINT` | `"http://localhost:4318/v1/traces"` |
|
79
|
+
| `certificate_file:` | `OTEL_EXPORTER_OTLP_CERTIFICATE` | |
|
80
|
+
| `client_certificate_file` | `OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE` | |
|
81
|
+
| `client_key_file` | `OTEL_EXPORTER_OTLP_CLIENT_KEY` | |
|
82
|
+
| `headers:` | `OTEL_EXPORTER_OTLP_HEADERS` | |
|
83
|
+
| `compression:` | `OTEL_EXPORTER_OTLP_COMPRESSION` | `"gzip"` |
|
84
|
+
| `timeout:` | `OTEL_EXPORTER_OTLP_TIMEOUT` | `10` |
|
85
|
+
| `ssl_verify_mode:` | `OTEL_RUBY_EXPORTER_OTLP_SSL_VERIFY_PEER` or | `OpenSSL::SSL:VERIFY_PEER` |
|
86
|
+
| | `OTEL_RUBY_EXPORTER_OTLP_SSL_VERIFY_NONE` | |
|
85
87
|
|
86
88
|
`ssl_verify_mode:` parameter values should be flags for server certificate verification: `OpenSSL::SSL:VERIFY_PEER` and `OpenSSL::SSL:VERIFY_NONE` are acceptable. These values can also be set using the appropriately named environment variables as shown where `VERIFY_PEER` will take precedence over `VERIFY_NONE`. Please see [the Net::HTTP docs](https://ruby-doc.org/stdlib-2.7.6/libdoc/net/http/rdoc/Net/HTTP.html#verify_mode) for more information about these flags.
|
87
89
|
|
@@ -97,7 +99,7 @@ The `opentelemetry-exporter-otlp` gem is distributed under the Apache 2.0 licens
|
|
97
99
|
|
98
100
|
## Working with Proto Definitions
|
99
101
|
|
100
|
-
The OTel community maintains a [repository with protobuf definitions][otel-proto-github] that language and collector
|
102
|
+
The OTel community maintains a [repository with protobuf definitions][otel-proto-github] that language and collector implementers use to generate code.
|
101
103
|
|
102
104
|
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
105
|
|
@@ -136,7 +138,7 @@ $> bundle exec rake test
|
|
136
138
|
|
137
139
|
```
|
138
140
|
|
139
|
-
**Commit the
|
141
|
+
**Commit the changes and open a PR!**
|
140
142
|
|
141
143
|
[opentelemetry-collector-home]: https://opentelemetry.io/docs/collector/about/
|
142
144
|
[opentelemetry-home]: https://opentelemetry.io
|
@@ -48,6 +48,8 @@ module OpenTelemetry
|
|
48
48
|
|
49
49
|
def initialize(endpoint: nil,
|
50
50
|
certificate_file: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE', 'OTEL_EXPORTER_OTLP_CERTIFICATE'),
|
51
|
+
client_certificate_file: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE', 'OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE'),
|
52
|
+
client_key_file: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY', 'OTEL_EXPORTER_OTLP_CLIENT_KEY'),
|
51
53
|
ssl_verify_mode: Exporter.ssl_verify_mode,
|
52
54
|
headers: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_HEADERS', 'OTEL_EXPORTER_OTLP_HEADERS', default: {}),
|
53
55
|
compression: OpenTelemetry::Common::Utilities.config_opt('OTEL_EXPORTER_OTLP_TRACES_COMPRESSION', 'OTEL_EXPORTER_OTLP_COMPRESSION', default: 'gzip'),
|
@@ -57,7 +59,7 @@ module OpenTelemetry
|
|
57
59
|
|
58
60
|
raise ArgumentError, "unsupported compression key #{compression}" unless compression.nil? || %w[gzip none].include?(compression)
|
59
61
|
|
60
|
-
@http = http_connection(@uri, ssl_verify_mode, certificate_file)
|
62
|
+
@http = http_connection(@uri, ssl_verify_mode, certificate_file, client_certificate_file, client_key_file)
|
61
63
|
|
62
64
|
@path = @uri.path
|
63
65
|
@headers = prepare_headers(headers)
|
@@ -102,11 +104,13 @@ module OpenTelemetry
|
|
102
104
|
|
103
105
|
private
|
104
106
|
|
105
|
-
def http_connection(uri, ssl_verify_mode, certificate_file)
|
107
|
+
def http_connection(uri, ssl_verify_mode, certificate_file, client_certificate_file, client_key_file)
|
106
108
|
http = Net::HTTP.new(uri.host, uri.port)
|
107
109
|
http.use_ssl = uri.scheme == 'https'
|
108
110
|
http.verify_mode = ssl_verify_mode
|
109
111
|
http.ca_file = certificate_file unless certificate_file.nil?
|
112
|
+
http.cert = OpenSSL::X509::Certificate.new(File.read(client_certificate_file)) unless client_certificate_file.nil?
|
113
|
+
http.key = OpenSSL::PKey::RSA.new(File.read(client_key_file)) unless client_key_file.nil?
|
110
114
|
http.keep_alive_timeout = KEEP_ALIVE_TIMEOUT
|
111
115
|
http
|
112
116
|
end
|
@@ -184,8 +188,9 @@ module OpenTelemetry
|
|
184
188
|
rescue Net::OpenTimeout, Net::ReadTimeout
|
185
189
|
retry if backoff?(retry_count: retry_count += 1, reason: 'timeout')
|
186
190
|
return FAILURE
|
187
|
-
rescue OpenSSL::SSL::SSLError
|
191
|
+
rescue OpenSSL::SSL::SSLError => e
|
188
192
|
retry if backoff?(retry_count: retry_count += 1, reason: 'openssl_error')
|
193
|
+
OpenTelemetry.handle_error(exception: e, message: 'SSL error in OTLP::Exporter#send_bytes')
|
189
194
|
return FAILURE
|
190
195
|
rescue SocketError
|
191
196
|
retry if backoff?(retry_count: retry_count += 1, reason: 'socket_error')
|
@@ -244,7 +249,7 @@ module OpenTelemetry
|
|
244
249
|
end
|
245
250
|
end
|
246
251
|
|
247
|
-
def backoff?(retry_count:, reason:, retry_after: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/
|
252
|
+
def backoff?(retry_count:, reason:, retry_after: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
248
253
|
@metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => reason })
|
249
254
|
return false if retry_count > RETRY_COUNT
|
250
255
|
|
@@ -271,6 +276,7 @@ module OpenTelemetry
|
|
271
276
|
end
|
272
277
|
|
273
278
|
def encode(span_data) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
|
279
|
+
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
274
280
|
Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest.encode(
|
275
281
|
Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest.new(
|
276
282
|
resource_spans: span_data
|
@@ -298,6 +304,11 @@ module OpenTelemetry
|
|
298
304
|
rescue StandardError => e
|
299
305
|
OpenTelemetry.handle_error(exception: e, message: 'unexpected error in OTLP::Exporter#encode')
|
300
306
|
nil
|
307
|
+
ensure
|
308
|
+
stop = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
309
|
+
duration_ms = 1000.0 * (stop - start)
|
310
|
+
@metrics_reporter.record_value('otel.otlp_exporter.encode_duration',
|
311
|
+
value: duration_ms)
|
301
312
|
end
|
302
313
|
|
303
314
|
def as_otlp_span(span_data) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/collector/logs/v1/logs_service.proto
|
3
4
|
|
@@ -5,20 +6,11 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'opentelemetry/proto/logs/v1/logs_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
9
|
+
|
10
|
+
descriptor_data = "\n8opentelemetry/proto/collector/logs/v1/logs_service.proto\x12%opentelemetry.proto.collector.logs.v1\x1a&opentelemetry/proto/logs/v1/logs.proto\"\\\n\x18\x45xportLogsServiceRequest\x12@\n\rresource_logs\x18\x01 \x03(\x0b\x32).opentelemetry.proto.logs.v1.ResourceLogs\"u\n\x19\x45xportLogsServiceResponse\x12X\n\x0fpartial_success\x18\x01 \x01(\x0b\x32?.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess\"O\n\x18\x45xportLogsPartialSuccess\x12\x1c\n\x14rejected_log_records\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\x9d\x01\n\x0bLogsService\x12\x8d\x01\n\x06\x45xport\x12?.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest\x1a@.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse\"\x00\x42\x98\x01\n(io.opentelemetry.proto.collector.logs.v1B\x10LogsServiceProtoP\x01Z0go.opentelemetry.io/proto/otlp/collector/logs/v1\xaa\x02%OpenTelemetry.Proto.Collector.Logs.V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
22
14
|
|
23
15
|
module Opentelemetry
|
24
16
|
module Proto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto
|
3
4
|
|
@@ -5,20 +6,11 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'opentelemetry/proto/metrics/v1/metrics_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
9
|
+
|
10
|
+
descriptor_data = "\n>opentelemetry/proto/collector/metrics/v1/metrics_service.proto\x12(opentelemetry.proto.collector.metrics.v1\x1a,opentelemetry/proto/metrics/v1/metrics.proto\"h\n\x1b\x45xportMetricsServiceRequest\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"~\n\x1c\x45xportMetricsServiceResponse\x12^\n\x0fpartial_success\x18\x01 \x01(\x0b\x32\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess\"R\n\x1b\x45xportMetricsPartialSuccess\x12\x1c\n\x14rejected_data_points\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\xac\x01\n\x0eMetricsService\x12\x99\x01\n\x06\x45xport\x12\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest\x1a\x46.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse\"\x00\x42\xa4\x01\n+io.opentelemetry.proto.collector.metrics.v1B\x13MetricsServiceProtoP\x01Z3go.opentelemetry.io/proto/otlp/collector/metrics/v1\xaa\x02(OpenTelemetry.Proto.Collector.Metrics.V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
22
14
|
|
23
15
|
module Opentelemetry
|
24
16
|
module Proto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/collector/trace/v1/trace_service.proto
|
3
4
|
|
@@ -5,20 +6,11 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'opentelemetry/proto/trace/v1/trace_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
9
|
+
|
10
|
+
descriptor_data = "\n:opentelemetry/proto/collector/trace/v1/trace_service.proto\x12&opentelemetry.proto.collector.trace.v1\x1a(opentelemetry/proto/trace/v1/trace.proto\"`\n\x19\x45xportTraceServiceRequest\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"x\n\x1a\x45xportTraceServiceResponse\x12Z\n\x0fpartial_success\x18\x01 \x01(\x0b\x32\x41.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess\"J\n\x19\x45xportTracePartialSuccess\x12\x16\n\x0erejected_spans\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\xa2\x01\n\x0cTraceService\x12\x91\x01\n\x06\x45xport\x12\x41.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest\x1a\x42.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse\"\x00\x42\x9c\x01\n)io.opentelemetry.proto.collector.trace.v1B\x11TraceServiceProtoP\x01Z1go.opentelemetry.io/proto/otlp/collector/trace/v1\xaa\x02&OpenTelemetry.Proto.Collector.Trace.V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
22
14
|
|
23
15
|
module Opentelemetry
|
24
16
|
module Proto
|
@@ -1,39 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/common/v1/common.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
optional :bool_value, :bool, 2
|
12
|
-
optional :int_value, :int64, 3
|
13
|
-
optional :double_value, :double, 4
|
14
|
-
optional :array_value, :message, 5, "opentelemetry.proto.common.v1.ArrayValue"
|
15
|
-
optional :kvlist_value, :message, 6, "opentelemetry.proto.common.v1.KeyValueList"
|
16
|
-
optional :bytes_value, :bytes, 7
|
17
|
-
end
|
18
|
-
end
|
19
|
-
add_message "opentelemetry.proto.common.v1.ArrayValue" do
|
20
|
-
repeated :values, :message, 1, "opentelemetry.proto.common.v1.AnyValue"
|
21
|
-
end
|
22
|
-
add_message "opentelemetry.proto.common.v1.KeyValueList" do
|
23
|
-
repeated :values, :message, 1, "opentelemetry.proto.common.v1.KeyValue"
|
24
|
-
end
|
25
|
-
add_message "opentelemetry.proto.common.v1.KeyValue" do
|
26
|
-
optional :key, :string, 1
|
27
|
-
optional :value, :message, 2, "opentelemetry.proto.common.v1.AnyValue"
|
28
|
-
end
|
29
|
-
add_message "opentelemetry.proto.common.v1.InstrumentationScope" do
|
30
|
-
optional :name, :string, 1
|
31
|
-
optional :version, :string, 2
|
32
|
-
repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue"
|
33
|
-
optional :dropped_attributes_count, :uint32, 4
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
7
|
+
|
8
|
+
descriptor_data = "\n*opentelemetry/proto/common/v1/common.proto\x12\x1dopentelemetry.proto.common.v1\"\x8c\x02\n\x08\x41nyValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12@\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32).opentelemetry.proto.common.v1.ArrayValueH\x00\x12\x43\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32+.opentelemetry.proto.common.v1.KeyValueListH\x00\x12\x15\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00\x42\x07\n\x05value\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"G\n\x0cKeyValueList\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\"O\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"\x94\x01\n\x14InstrumentationScope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12;\n\nattributes\x18\x03 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x04 \x01(\rB{\n io.opentelemetry.proto.common.v1B\x0b\x43ommonProtoP\x01Z(go.opentelemetry.io/proto/otlp/common/v1\xaa\x02\x1dOpenTelemetry.Proto.Common.V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
37
12
|
|
38
13
|
module Opentelemetry
|
39
14
|
module Proto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/logs/v1/logs.proto
|
3
4
|
|
@@ -6,66 +7,11 @@ require 'google/protobuf'
|
|
6
7
|
require 'opentelemetry/proto/common/v1/common_pb'
|
7
8
|
require 'opentelemetry/proto/resource/v1/resource_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
add_message "opentelemetry.proto.logs.v1.ResourceLogs" do
|
15
|
-
optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
|
16
|
-
repeated :scope_logs, :message, 2, "opentelemetry.proto.logs.v1.ScopeLogs"
|
17
|
-
optional :schema_url, :string, 3
|
18
|
-
end
|
19
|
-
add_message "opentelemetry.proto.logs.v1.ScopeLogs" do
|
20
|
-
optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope"
|
21
|
-
repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord"
|
22
|
-
optional :schema_url, :string, 3
|
23
|
-
end
|
24
|
-
add_message "opentelemetry.proto.logs.v1.LogRecord" do
|
25
|
-
optional :time_unix_nano, :fixed64, 1
|
26
|
-
optional :observed_time_unix_nano, :fixed64, 11
|
27
|
-
optional :severity_number, :enum, 2, "opentelemetry.proto.logs.v1.SeverityNumber"
|
28
|
-
optional :severity_text, :string, 3
|
29
|
-
optional :body, :message, 5, "opentelemetry.proto.common.v1.AnyValue"
|
30
|
-
repeated :attributes, :message, 6, "opentelemetry.proto.common.v1.KeyValue"
|
31
|
-
optional :dropped_attributes_count, :uint32, 7
|
32
|
-
optional :flags, :fixed32, 8
|
33
|
-
optional :trace_id, :bytes, 9
|
34
|
-
optional :span_id, :bytes, 10
|
35
|
-
end
|
36
|
-
add_enum "opentelemetry.proto.logs.v1.SeverityNumber" do
|
37
|
-
value :SEVERITY_NUMBER_UNSPECIFIED, 0
|
38
|
-
value :SEVERITY_NUMBER_TRACE, 1
|
39
|
-
value :SEVERITY_NUMBER_TRACE2, 2
|
40
|
-
value :SEVERITY_NUMBER_TRACE3, 3
|
41
|
-
value :SEVERITY_NUMBER_TRACE4, 4
|
42
|
-
value :SEVERITY_NUMBER_DEBUG, 5
|
43
|
-
value :SEVERITY_NUMBER_DEBUG2, 6
|
44
|
-
value :SEVERITY_NUMBER_DEBUG3, 7
|
45
|
-
value :SEVERITY_NUMBER_DEBUG4, 8
|
46
|
-
value :SEVERITY_NUMBER_INFO, 9
|
47
|
-
value :SEVERITY_NUMBER_INFO2, 10
|
48
|
-
value :SEVERITY_NUMBER_INFO3, 11
|
49
|
-
value :SEVERITY_NUMBER_INFO4, 12
|
50
|
-
value :SEVERITY_NUMBER_WARN, 13
|
51
|
-
value :SEVERITY_NUMBER_WARN2, 14
|
52
|
-
value :SEVERITY_NUMBER_WARN3, 15
|
53
|
-
value :SEVERITY_NUMBER_WARN4, 16
|
54
|
-
value :SEVERITY_NUMBER_ERROR, 17
|
55
|
-
value :SEVERITY_NUMBER_ERROR2, 18
|
56
|
-
value :SEVERITY_NUMBER_ERROR3, 19
|
57
|
-
value :SEVERITY_NUMBER_ERROR4, 20
|
58
|
-
value :SEVERITY_NUMBER_FATAL, 21
|
59
|
-
value :SEVERITY_NUMBER_FATAL2, 22
|
60
|
-
value :SEVERITY_NUMBER_FATAL3, 23
|
61
|
-
value :SEVERITY_NUMBER_FATAL4, 24
|
62
|
-
end
|
63
|
-
add_enum "opentelemetry.proto.logs.v1.LogRecordFlags" do
|
64
|
-
value :LOG_RECORD_FLAGS_DO_NOT_USE, 0
|
65
|
-
value :LOG_RECORD_FLAGS_TRACE_FLAGS_MASK, 255
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
10
|
+
|
11
|
+
descriptor_data = "\n&opentelemetry/proto/logs/v1/logs.proto\x12\x1bopentelemetry.proto.logs.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"L\n\x08LogsData\x12@\n\rresource_logs\x18\x01 \x03(\x0b\x32).opentelemetry.proto.logs.v1.ResourceLogs\"\xa3\x01\n\x0cResourceLogs\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12:\n\nscope_logs\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.ScopeLogs\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\xa0\x01\n\tScopeLogs\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12;\n\x0blog_records\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.LogRecord\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xef\x02\n\tLogRecord\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x1f\n\x17observed_time_unix_nano\x18\x0b \x01(\x06\x12\x44\n\x0fseverity_number\x18\x02 \x01(\x0e\x32+.opentelemetry.proto.logs.v1.SeverityNumber\x12\x15\n\rseverity_text\x18\x03 \x01(\t\x12\x35\n\x04\x62ody\x18\x05 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\x12;\n\nattributes\x18\x06 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x07 \x01(\r\x12\r\n\x05\x66lags\x18\x08 \x01(\x07\x12\x10\n\x08trace_id\x18\t \x01(\x0c\x12\x0f\n\x07span_id\x18\n \x01(\x0cJ\x04\x08\x04\x10\x05*\xc3\x05\n\x0eSeverityNumber\x12\x1f\n\x1bSEVERITY_NUMBER_UNSPECIFIED\x10\x00\x12\x19\n\x15SEVERITY_NUMBER_TRACE\x10\x01\x12\x1a\n\x16SEVERITY_NUMBER_TRACE2\x10\x02\x12\x1a\n\x16SEVERITY_NUMBER_TRACE3\x10\x03\x12\x1a\n\x16SEVERITY_NUMBER_TRACE4\x10\x04\x12\x19\n\x15SEVERITY_NUMBER_DEBUG\x10\x05\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG2\x10\x06\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG3\x10\x07\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG4\x10\x08\x12\x18\n\x14SEVERITY_NUMBER_INFO\x10\t\x12\x19\n\x15SEVERITY_NUMBER_INFO2\x10\n\x12\x19\n\x15SEVERITY_NUMBER_INFO3\x10\x0b\x12\x19\n\x15SEVERITY_NUMBER_INFO4\x10\x0c\x12\x18\n\x14SEVERITY_NUMBER_WARN\x10\r\x12\x19\n\x15SEVERITY_NUMBER_WARN2\x10\x0e\x12\x19\n\x15SEVERITY_NUMBER_WARN3\x10\x0f\x12\x19\n\x15SEVERITY_NUMBER_WARN4\x10\x10\x12\x19\n\x15SEVERITY_NUMBER_ERROR\x10\x11\x12\x1a\n\x16SEVERITY_NUMBER_ERROR2\x10\x12\x12\x1a\n\x16SEVERITY_NUMBER_ERROR3\x10\x13\x12\x1a\n\x16SEVERITY_NUMBER_ERROR4\x10\x14\x12\x19\n\x15SEVERITY_NUMBER_FATAL\x10\x15\x12\x1a\n\x16SEVERITY_NUMBER_FATAL2\x10\x16\x12\x1a\n\x16SEVERITY_NUMBER_FATAL3\x10\x17\x12\x1a\n\x16SEVERITY_NUMBER_FATAL4\x10\x18*Y\n\x0eLogRecordFlags\x12\x1f\n\x1bLOG_RECORD_FLAGS_DO_NOT_USE\x10\x00\x12&\n!LOG_RECORD_FLAGS_TRACE_FLAGS_MASK\x10\xff\x01\x42s\n\x1eio.opentelemetry.proto.logs.v1B\tLogsProtoP\x01Z&go.opentelemetry.io/proto/otlp/logs/v1\xaa\x02\x1bOpenTelemetry.Proto.Logs.V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
69
15
|
|
70
16
|
module Opentelemetry
|
71
17
|
module Proto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/metrics/v1/metrics.proto
|
3
4
|
|
@@ -6,130 +7,11 @@ require 'google/protobuf'
|
|
6
7
|
require 'opentelemetry/proto/common/v1/common_pb'
|
7
8
|
require 'opentelemetry/proto/resource/v1/resource_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
add_message "opentelemetry.proto.metrics.v1.ResourceMetrics" do
|
15
|
-
optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
|
16
|
-
repeated :scope_metrics, :message, 2, "opentelemetry.proto.metrics.v1.ScopeMetrics"
|
17
|
-
optional :schema_url, :string, 3
|
18
|
-
end
|
19
|
-
add_message "opentelemetry.proto.metrics.v1.ScopeMetrics" do
|
20
|
-
optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope"
|
21
|
-
repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric"
|
22
|
-
optional :schema_url, :string, 3
|
23
|
-
end
|
24
|
-
add_message "opentelemetry.proto.metrics.v1.Metric" do
|
25
|
-
optional :name, :string, 1
|
26
|
-
optional :description, :string, 2
|
27
|
-
optional :unit, :string, 3
|
28
|
-
oneof :data do
|
29
|
-
optional :gauge, :message, 5, "opentelemetry.proto.metrics.v1.Gauge"
|
30
|
-
optional :sum, :message, 7, "opentelemetry.proto.metrics.v1.Sum"
|
31
|
-
optional :histogram, :message, 9, "opentelemetry.proto.metrics.v1.Histogram"
|
32
|
-
optional :exponential_histogram, :message, 10, "opentelemetry.proto.metrics.v1.ExponentialHistogram"
|
33
|
-
optional :summary, :message, 11, "opentelemetry.proto.metrics.v1.Summary"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
add_message "opentelemetry.proto.metrics.v1.Gauge" do
|
37
|
-
repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint"
|
38
|
-
end
|
39
|
-
add_message "opentelemetry.proto.metrics.v1.Sum" do
|
40
|
-
repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint"
|
41
|
-
optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
|
42
|
-
optional :is_monotonic, :bool, 3
|
43
|
-
end
|
44
|
-
add_message "opentelemetry.proto.metrics.v1.Histogram" do
|
45
|
-
repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.HistogramDataPoint"
|
46
|
-
optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
|
47
|
-
end
|
48
|
-
add_message "opentelemetry.proto.metrics.v1.ExponentialHistogram" do
|
49
|
-
repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"
|
50
|
-
optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
|
51
|
-
end
|
52
|
-
add_message "opentelemetry.proto.metrics.v1.Summary" do
|
53
|
-
repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.SummaryDataPoint"
|
54
|
-
end
|
55
|
-
add_message "opentelemetry.proto.metrics.v1.NumberDataPoint" do
|
56
|
-
repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue"
|
57
|
-
optional :start_time_unix_nano, :fixed64, 2
|
58
|
-
optional :time_unix_nano, :fixed64, 3
|
59
|
-
repeated :exemplars, :message, 5, "opentelemetry.proto.metrics.v1.Exemplar"
|
60
|
-
optional :flags, :uint32, 8
|
61
|
-
oneof :value do
|
62
|
-
optional :as_double, :double, 4
|
63
|
-
optional :as_int, :sfixed64, 6
|
64
|
-
end
|
65
|
-
end
|
66
|
-
add_message "opentelemetry.proto.metrics.v1.HistogramDataPoint" do
|
67
|
-
repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue"
|
68
|
-
optional :start_time_unix_nano, :fixed64, 2
|
69
|
-
optional :time_unix_nano, :fixed64, 3
|
70
|
-
optional :count, :fixed64, 4
|
71
|
-
proto3_optional :sum, :double, 5
|
72
|
-
repeated :bucket_counts, :fixed64, 6
|
73
|
-
repeated :explicit_bounds, :double, 7
|
74
|
-
repeated :exemplars, :message, 8, "opentelemetry.proto.metrics.v1.Exemplar"
|
75
|
-
optional :flags, :uint32, 10
|
76
|
-
proto3_optional :min, :double, 11
|
77
|
-
proto3_optional :max, :double, 12
|
78
|
-
end
|
79
|
-
add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" do
|
80
|
-
repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue"
|
81
|
-
optional :start_time_unix_nano, :fixed64, 2
|
82
|
-
optional :time_unix_nano, :fixed64, 3
|
83
|
-
optional :count, :fixed64, 4
|
84
|
-
proto3_optional :sum, :double, 5
|
85
|
-
optional :scale, :sint32, 6
|
86
|
-
optional :zero_count, :fixed64, 7
|
87
|
-
optional :positive, :message, 8, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"
|
88
|
-
optional :negative, :message, 9, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"
|
89
|
-
optional :flags, :uint32, 10
|
90
|
-
repeated :exemplars, :message, 11, "opentelemetry.proto.metrics.v1.Exemplar"
|
91
|
-
proto3_optional :min, :double, 12
|
92
|
-
proto3_optional :max, :double, 13
|
93
|
-
optional :zero_threshold, :double, 14
|
94
|
-
end
|
95
|
-
add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" do
|
96
|
-
optional :offset, :sint32, 1
|
97
|
-
repeated :bucket_counts, :uint64, 2
|
98
|
-
end
|
99
|
-
add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint" do
|
100
|
-
repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue"
|
101
|
-
optional :start_time_unix_nano, :fixed64, 2
|
102
|
-
optional :time_unix_nano, :fixed64, 3
|
103
|
-
optional :count, :fixed64, 4
|
104
|
-
optional :sum, :double, 5
|
105
|
-
repeated :quantile_values, :message, 6, "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"
|
106
|
-
optional :flags, :uint32, 8
|
107
|
-
end
|
108
|
-
add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" do
|
109
|
-
optional :quantile, :double, 1
|
110
|
-
optional :value, :double, 2
|
111
|
-
end
|
112
|
-
add_message "opentelemetry.proto.metrics.v1.Exemplar" do
|
113
|
-
repeated :filtered_attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue"
|
114
|
-
optional :time_unix_nano, :fixed64, 2
|
115
|
-
optional :span_id, :bytes, 4
|
116
|
-
optional :trace_id, :bytes, 5
|
117
|
-
oneof :value do
|
118
|
-
optional :as_double, :double, 3
|
119
|
-
optional :as_int, :sfixed64, 6
|
120
|
-
end
|
121
|
-
end
|
122
|
-
add_enum "opentelemetry.proto.metrics.v1.AggregationTemporality" do
|
123
|
-
value :AGGREGATION_TEMPORALITY_UNSPECIFIED, 0
|
124
|
-
value :AGGREGATION_TEMPORALITY_DELTA, 1
|
125
|
-
value :AGGREGATION_TEMPORALITY_CUMULATIVE, 2
|
126
|
-
end
|
127
|
-
add_enum "opentelemetry.proto.metrics.v1.DataPointFlags" do
|
128
|
-
value :DATA_POINT_FLAGS_DO_NOT_USE, 0
|
129
|
-
value :DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK, 1
|
130
|
-
end
|
131
|
-
end
|
132
|
-
end
|
10
|
+
|
11
|
+
descriptor_data = "\n,opentelemetry/proto/metrics/v1/metrics.proto\x12\x1eopentelemetry.proto.metrics.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"X\n\x0bMetricsData\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"\xaf\x01\n\x0fResourceMetrics\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12\x43\n\rscope_metrics\x18\x02 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.ScopeMetrics\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\x9f\x01\n\x0cScopeMetrics\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x37\n\x07metrics\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.metrics.v1.Metric\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\x92\x03\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04unit\x18\x03 \x01(\t\x12\x36\n\x05gauge\x18\x05 \x01(\x0b\x32%.opentelemetry.proto.metrics.v1.GaugeH\x00\x12\x32\n\x03sum\x18\x07 \x01(\x0b\x32#.opentelemetry.proto.metrics.v1.SumH\x00\x12>\n\thistogram\x18\t \x01(\x0b\x32).opentelemetry.proto.metrics.v1.HistogramH\x00\x12U\n\x15\x65xponential_histogram\x18\n \x01(\x0b\x32\x34.opentelemetry.proto.metrics.v1.ExponentialHistogramH\x00\x12:\n\x07summary\x18\x0b \x01(\x0b\x32\'.opentelemetry.proto.metrics.v1.SummaryH\x00\x42\x06\n\x04\x64\x61taJ\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x08\x10\t\"M\n\x05Gauge\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\"\xba\x01\n\x03Sum\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\x12\x14\n\x0cis_monotonic\x18\x03 \x01(\x08\"\xad\x01\n\tHistogram\x12G\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x32.opentelemetry.proto.metrics.v1.HistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xc3\x01\n\x14\x45xponentialHistogram\x12R\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"P\n\x07Summary\x12\x45\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x30.opentelemetry.proto.metrics.v1.SummaryDataPoint\"\x86\x02\n\x0fNumberDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\x13\n\tas_double\x18\x04 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12;\n\texemplars\x18\x05 \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\r\n\x05\x66lags\x18\x08 \x01(\rB\x07\n\x05valueJ\x04\x08\x01\x10\x02\"\xe6\x02\n\x12HistogramDataPoint\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\x15\n\rbucket_counts\x18\x06 \x03(\x06\x12\x17\n\x0f\x65xplicit_bounds\x18\x07 \x03(\x01\x12;\n\texemplars\x18\x08 \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\r\n\x05\x66lags\x18\n \x01(\r\x12\x10\n\x03min\x18\x0b \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\x0c \x01(\x01H\x02\x88\x01\x01\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_maxJ\x04\x08\x01\x10\x02\"\xda\x04\n\x1d\x45xponentialHistogramDataPoint\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\r\n\x05scale\x18\x06 \x01(\x11\x12\x12\n\nzero_count\x18\x07 \x01(\x06\x12W\n\x08positive\x18\x08 \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12W\n\x08negative\x18\t \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12\r\n\x05\x66lags\x18\n \x01(\r\x12;\n\texemplars\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\x10\n\x03min\x18\x0c \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\r \x01(\x01H\x02\x88\x01\x01\x12\x16\n\x0ezero_threshold\x18\x0e \x01(\x01\x1a\x30\n\x07\x42uckets\x12\x0e\n\x06offset\x18\x01 \x01(\x11\x12\x15\n\rbucket_counts\x18\x02 \x03(\x04\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_max\"\xc5\x02\n\x10SummaryDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x0b\n\x03sum\x18\x05 \x01(\x01\x12Y\n\x0fquantile_values\x18\x06 \x03(\x0b\x32@.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile\x12\r\n\x05\x66lags\x18\x08 \x01(\r\x1a\x32\n\x0fValueAtQuantile\x12\x10\n\x08quantile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01J\x04\x08\x01\x10\x02\"\xc1\x01\n\x08\x45xemplar\x12\x44\n\x13\x66iltered_attributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\x13\n\tas_double\x18\x03 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c\x42\x07\n\x05valueJ\x04\x08\x01\x10\x02*\x8c\x01\n\x16\x41ggregationTemporality\x12\'\n#AGGREGATION_TEMPORALITY_UNSPECIFIED\x10\x00\x12!\n\x1d\x41GGREGATION_TEMPORALITY_DELTA\x10\x01\x12&\n\"AGGREGATION_TEMPORALITY_CUMULATIVE\x10\x02*^\n\x0e\x44\x61taPointFlags\x12\x1f\n\x1b\x44\x41TA_POINT_FLAGS_DO_NOT_USE\x10\x00\x12+\n\'DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK\x10\x01\x42\x7f\n!io.opentelemetry.proto.metrics.v1B\x0cMetricsProtoP\x01Z)go.opentelemetry.io/proto/otlp/metrics/v1\xaa\x02\x1eOpenTelemetry.Proto.Metrics.V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
133
15
|
|
134
16
|
module Opentelemetry
|
135
17
|
module Proto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/resource/v1/resource.proto
|
3
4
|
|
@@ -5,14 +6,11 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'opentelemetry/proto/common/v1/common_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
9
|
+
|
10
|
+
descriptor_data = "\n.opentelemetry/proto/resource/v1/resource.proto\x12\x1fopentelemetry.proto.resource.v1\x1a*opentelemetry/proto/common/v1/common.proto\"i\n\x08Resource\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\rB\x83\x01\n\"io.opentelemetry.proto.resource.v1B\rResourceProtoP\x01Z*go.opentelemetry.io/proto/otlp/resource/v1\xaa\x02\x1fOpenTelemetry.Proto.Resource.V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
16
14
|
|
17
15
|
module Opentelemetry
|
18
16
|
module Proto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: opentelemetry/proto/trace/v1/trace.proto
|
3
4
|
|
@@ -6,70 +7,11 @@ require 'google/protobuf'
|
|
6
7
|
require 'opentelemetry/proto/common/v1/common_pb'
|
7
8
|
require 'opentelemetry/proto/resource/v1/resource_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
add_message "opentelemetry.proto.trace.v1.ResourceSpans" do
|
15
|
-
optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
|
16
|
-
repeated :scope_spans, :message, 2, "opentelemetry.proto.trace.v1.ScopeSpans"
|
17
|
-
optional :schema_url, :string, 3
|
18
|
-
end
|
19
|
-
add_message "opentelemetry.proto.trace.v1.ScopeSpans" do
|
20
|
-
optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope"
|
21
|
-
repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span"
|
22
|
-
optional :schema_url, :string, 3
|
23
|
-
end
|
24
|
-
add_message "opentelemetry.proto.trace.v1.Span" do
|
25
|
-
optional :trace_id, :bytes, 1
|
26
|
-
optional :span_id, :bytes, 2
|
27
|
-
optional :trace_state, :string, 3
|
28
|
-
optional :parent_span_id, :bytes, 4
|
29
|
-
optional :name, :string, 5
|
30
|
-
optional :kind, :enum, 6, "opentelemetry.proto.trace.v1.Span.SpanKind"
|
31
|
-
optional :start_time_unix_nano, :fixed64, 7
|
32
|
-
optional :end_time_unix_nano, :fixed64, 8
|
33
|
-
repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue"
|
34
|
-
optional :dropped_attributes_count, :uint32, 10
|
35
|
-
repeated :events, :message, 11, "opentelemetry.proto.trace.v1.Span.Event"
|
36
|
-
optional :dropped_events_count, :uint32, 12
|
37
|
-
repeated :links, :message, 13, "opentelemetry.proto.trace.v1.Span.Link"
|
38
|
-
optional :dropped_links_count, :uint32, 14
|
39
|
-
optional :status, :message, 15, "opentelemetry.proto.trace.v1.Status"
|
40
|
-
end
|
41
|
-
add_message "opentelemetry.proto.trace.v1.Span.Event" do
|
42
|
-
optional :time_unix_nano, :fixed64, 1
|
43
|
-
optional :name, :string, 2
|
44
|
-
repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue"
|
45
|
-
optional :dropped_attributes_count, :uint32, 4
|
46
|
-
end
|
47
|
-
add_message "opentelemetry.proto.trace.v1.Span.Link" do
|
48
|
-
optional :trace_id, :bytes, 1
|
49
|
-
optional :span_id, :bytes, 2
|
50
|
-
optional :trace_state, :string, 3
|
51
|
-
repeated :attributes, :message, 4, "opentelemetry.proto.common.v1.KeyValue"
|
52
|
-
optional :dropped_attributes_count, :uint32, 5
|
53
|
-
end
|
54
|
-
add_enum "opentelemetry.proto.trace.v1.Span.SpanKind" do
|
55
|
-
value :SPAN_KIND_UNSPECIFIED, 0
|
56
|
-
value :SPAN_KIND_INTERNAL, 1
|
57
|
-
value :SPAN_KIND_SERVER, 2
|
58
|
-
value :SPAN_KIND_CLIENT, 3
|
59
|
-
value :SPAN_KIND_PRODUCER, 4
|
60
|
-
value :SPAN_KIND_CONSUMER, 5
|
61
|
-
end
|
62
|
-
add_message "opentelemetry.proto.trace.v1.Status" do
|
63
|
-
optional :message, :string, 2
|
64
|
-
optional :code, :enum, 3, "opentelemetry.proto.trace.v1.Status.StatusCode"
|
65
|
-
end
|
66
|
-
add_enum "opentelemetry.proto.trace.v1.Status.StatusCode" do
|
67
|
-
value :STATUS_CODE_UNSET, 0
|
68
|
-
value :STATUS_CODE_OK, 1
|
69
|
-
value :STATUS_CODE_ERROR, 2
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
10
|
+
|
11
|
+
descriptor_data = "\n(opentelemetry/proto/trace/v1/trace.proto\x12\x1copentelemetry.proto.trace.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"Q\n\nTracesData\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"\xa7\x01\n\rResourceSpans\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12=\n\x0bscope_spans\x18\x02 \x03(\x0b\x32(.opentelemetry.proto.trace.v1.ScopeSpans\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\x97\x01\n\nScopeSpans\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x31\n\x05spans\x18\x02 \x03(\x0b\x32\".opentelemetry.proto.trace.v1.Span\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xe6\x07\n\x04Span\x12\x10\n\x08trace_id\x18\x01 \x01(\x0c\x12\x0f\n\x07span_id\x18\x02 \x01(\x0c\x12\x13\n\x0btrace_state\x18\x03 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x04 \x01(\x0c\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x39\n\x04kind\x18\x06 \x01(\x0e\x32+.opentelemetry.proto.trace.v1.Span.SpanKind\x12\x1c\n\x14start_time_unix_nano\x18\x07 \x01(\x06\x12\x1a\n\x12\x65nd_time_unix_nano\x18\x08 \x01(\x06\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\n \x01(\r\x12\x38\n\x06\x65vents\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.trace.v1.Span.Event\x12\x1c\n\x14\x64ropped_events_count\x18\x0c \x01(\r\x12\x36\n\x05links\x18\r \x03(\x0b\x32\'.opentelemetry.proto.trace.v1.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x0e \x01(\r\x12\x34\n\x06status\x18\x0f \x01(\x0b\x32$.opentelemetry.proto.trace.v1.Status\x1a\x8c\x01\n\x05\x45vent\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x0c\n\x04name\x18\x02 \x01(\t\x12;\n\nattributes\x18\x03 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x04 \x01(\r\x1a\x9d\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\x0c\x12\x0f\n\x07span_id\x18\x02 \x01(\x0c\x12\x13\n\x0btrace_state\x18\x03 \x01(\t\x12;\n\nattributes\x18\x04 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x05 \x01(\r\"\x99\x01\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x16\n\x12SPAN_KIND_INTERNAL\x10\x01\x12\x14\n\x10SPAN_KIND_SERVER\x10\x02\x12\x14\n\x10SPAN_KIND_CLIENT\x10\x03\x12\x16\n\x12SPAN_KIND_PRODUCER\x10\x04\x12\x16\n\x12SPAN_KIND_CONSUMER\x10\x05\"\xae\x01\n\x06Status\x12\x0f\n\x07message\x18\x02 \x01(\t\x12=\n\x04\x63ode\x18\x03 \x01(\x0e\x32/.opentelemetry.proto.trace.v1.Status.StatusCode\"N\n\nStatusCode\x12\x15\n\x11STATUS_CODE_UNSET\x10\x00\x12\x12\n\x0eSTATUS_CODE_OK\x10\x01\x12\x15\n\x11STATUS_CODE_ERROR\x10\x02J\x04\x08\x01\x10\x02\x42w\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z\'go.opentelemetry.io/proto/otlp/trace/v1\xaa\x02\x1cOpenTelemetry.Proto.Trace.V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
73
15
|
|
74
16
|
module Opentelemetry
|
75
17
|
module Proto
|
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.29.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: 2024-
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleapis-common-protos-types
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: google-protobuf
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.18'
|
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.18'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: opentelemetry-api
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,14 +198,14 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '1.
|
201
|
+
version: '1.65'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '1.
|
208
|
+
version: '1.65'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: simplecov
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -289,10 +289,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
289
289
|
licenses:
|
290
290
|
- Apache-2.0
|
291
291
|
metadata:
|
292
|
-
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.29.0/file.CHANGELOG.html
|
293
293
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp
|
294
294
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
295
|
-
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.29.0
|
296
296
|
post_install_message:
|
297
297
|
rdoc_options: []
|
298
298
|
require_paths:
|