opentelemetry-exporter-otlp 0.20.5 → 0.20.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8530c195f058735185d2ea019dc1e889f9fb394cda91a0117386e41e7b5dd415
4
- data.tar.gz: cdcfb33aaef38cf55c458a709a652701d7baaeebf6ad963a88ed1a0beefd8ee4
3
+ metadata.gz: c371ae6174e5f9568a2d9545b47c2bf81a0b50cb056766254d3a2f8cb59068bb
4
+ data.tar.gz: 44fcd2f565d7c5ac58a018cc63c953ec18ffe5fe95d82b54f9562025e501f21e
5
5
  SHA512:
6
- metadata.gz: 127ac744ca9a47efd6780d11f36e5dec7e0989922b3ff07781ab74285131350b95c192a271cd56a319c1eb2c4a82f97ae96f181a847d777243de58d81d2d7999
7
- data.tar.gz: 03517ea7670f36d0df88478493a34452f5fd3aa58c0a58096533f10e48aeb8bec21033b67632584875628c7368655398dcd858ab2b324b1c8997373f51b36109
6
+ metadata.gz: 38bc3242be1adb40b97fe993fe2826016327c9eb8e98e4b944ba79a098ca762f91e4e0cbc663db74ba16a3be4f6390656f084ab3b7116322001675f598eb5f17
7
+ data.tar.gz: 13190a341dcb72c1b0e722e8f7b813dd703cbdbab4c0cb812715de0da3cfe4f21d929c2fc1fda7feaaeffdf49654304b6cd169da247db28f3fb79c4547383280
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History: opentelemetry-exporter-otlp
2
2
 
3
+ ### v0.20.6 / 2021-10-29
4
+
5
+ * FIXED: Add unexpected error handlign in BSP and OTLP exporter (#995)
6
+ * FIXED: Handle otlp exporter race condition gzip errors with retry
7
+
3
8
  ### v0.20.5 / 2021-09-29
4
9
 
5
10
  * (No significant changes)
data/README.md CHANGED
@@ -70,7 +70,7 @@ The collector exporter can be configured explicitly in code, or via environment
70
70
 
71
71
  | Parameter | Environment variable | Default |
72
72
  | ------------------- | -------------------------------------------- | ----------------------------------- |
73
- | `endpoint:` | `OTEL_EXPORTER_OTLP_ENDPOINT` | `"http://localhost:4317/v1/traces"` |
73
+ | `endpoint:` | `OTEL_EXPORTER_OTLP_ENDPOINT` | `"http://localhost:4318/v1/traces"` |
74
74
  | `certificate_file: `| `OTEL_EXPORTER_OTLP_CERTIFICATE` | |
75
75
  | `headers:` | `OTEL_EXPORTER_OTLP_HEADERS` | |
76
76
  | `compression:` | `OTEL_EXPORTER_OTLP_COMPRESSION` | |
@@ -44,7 +44,7 @@ module OpenTelemetry
44
44
  end
45
45
  end
46
46
 
47
- def initialize(endpoint: config_opt('OTEL_EXPORTER_OTLP_TRACES_ENDPOINT', 'OTEL_EXPORTER_OTLP_ENDPOINT', default: 'https://localhost:4317/v1/traces'), # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
47
+ def initialize(endpoint: config_opt('OTEL_EXPORTER_OTLP_TRACES_ENDPOINT', 'OTEL_EXPORTER_OTLP_ENDPOINT', default: 'https://localhost:4318/v1/traces'), # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength
48
48
  certificate_file: config_opt('OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE', 'OTEL_EXPORTER_OTLP_CERTIFICATE'),
49
49
  ssl_verify_mode: Exporter.ssl_verify_mode,
50
50
  headers: config_opt('OTEL_EXPORTER_OTLP_TRACES_HEADERS', 'OTEL_EXPORTER_OTLP_HEADERS', default: {}),
@@ -143,6 +143,8 @@ module OpenTelemetry
143
143
  end
144
144
 
145
145
  def send_bytes(bytes, timeout:) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
146
+ return FAILURE if bytes.nil?
147
+
146
148
  retry_count = 0
147
149
  timeout ||= @timeout
148
150
  start_time = OpenTelemetry::Common::Utilities.timeout_timestamp
@@ -206,6 +208,13 @@ module OpenTelemetry
206
208
  rescue EOFError
207
209
  retry if backoff?(retry_count: retry_count += 1, reason: 'eof_error')
208
210
  return FAILURE
211
+ rescue Zlib::DataError
212
+ retry if backoff?(retry_count: retry_count += 1, reason: 'zlib_error')
213
+ return FAILURE
214
+ rescue StandardError => e
215
+ OpenTelemetry.handle_error(exception: e, message: 'unexpected error in OTLP::Exporter#send_bytes')
216
+ @metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => e.class.to_s })
217
+ return FAILURE
209
218
  end
210
219
  ensure
211
220
  # Reset timeouts to defaults for the next call.
@@ -257,7 +266,7 @@ module OpenTelemetry
257
266
  true
258
267
  end
259
268
 
260
- def encode(span_data) # rubocop:disable Metrics/MethodLength
269
+ def encode(span_data) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
261
270
  Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest.encode(
262
271
  Opentelemetry::Proto::Collector::Trace::V1::ExportTraceServiceRequest.new(
263
272
  resource_spans: span_data
@@ -282,6 +291,9 @@ module OpenTelemetry
282
291
  end
283
292
  )
284
293
  )
294
+ rescue StandardError => e
295
+ OpenTelemetry.handle_error(exception: e, message: 'unexpected error in OTLP::Exporter#encode')
296
+ nil
285
297
  end
286
298
 
287
299
  def as_otlp_span(span_data) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
@@ -316,22 +328,29 @@ module OpenTelemetry
316
328
  end,
317
329
  dropped_links_count: span_data.total_recorded_links - span_data.links&.size.to_i,
318
330
  status: span_data.status&.yield_self do |status|
319
- # TODO: fix this based on spec update.
320
331
  Opentelemetry::Proto::Trace::V1::Status.new(
321
- code: status.code == OpenTelemetry::Trace::Status::ERROR ? Opentelemetry::Proto::Trace::V1::Status::StatusCode::UnknownError : Opentelemetry::Proto::Trace::V1::Status::StatusCode::Ok,
332
+ code: as_otlp_status_code(status.code),
322
333
  message: status.description
323
334
  )
324
335
  end
325
336
  )
326
337
  end
327
338
 
339
+ def as_otlp_status_code(code)
340
+ case code
341
+ when OpenTelemetry::Trace::Status::OK then Opentelemetry::Proto::Trace::V1::Status::StatusCode::STATUS_CODE_OK
342
+ when OpenTelemetry::Trace::Status::ERROR then Opentelemetry::Proto::Trace::V1::Status::StatusCode::STATUS_CODE_ERROR
343
+ else Opentelemetry::Proto::Trace::V1::Status::StatusCode::STATUS_CODE_UNSET
344
+ end
345
+ end
346
+
328
347
  def as_otlp_span_kind(kind)
329
348
  case kind
330
- when :internal then Opentelemetry::Proto::Trace::V1::Span::SpanKind::INTERNAL
331
- when :server then Opentelemetry::Proto::Trace::V1::Span::SpanKind::SERVER
332
- when :client then Opentelemetry::Proto::Trace::V1::Span::SpanKind::CLIENT
333
- when :producer then Opentelemetry::Proto::Trace::V1::Span::SpanKind::PRODUCER
334
- when :consumer then Opentelemetry::Proto::Trace::V1::Span::SpanKind::CONSUMER
349
+ when :internal then Opentelemetry::Proto::Trace::V1::Span::SpanKind::SPAN_KIND_INTERNAL
350
+ when :server then Opentelemetry::Proto::Trace::V1::Span::SpanKind::SPAN_KIND_SERVER
351
+ when :client then Opentelemetry::Proto::Trace::V1::Span::SpanKind::SPAN_KIND_CLIENT
352
+ when :producer then Opentelemetry::Proto::Trace::V1::Span::SpanKind::SPAN_KIND_PRODUCER
353
+ when :consumer then Opentelemetry::Proto::Trace::V1::Span::SpanKind::SPAN_KIND_CONSUMER
335
354
  else Opentelemetry::Proto::Trace::V1::Span::SpanKind::SPAN_KIND_UNSPECIFIED
336
355
  end
337
356
  end
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Exporter
9
9
  module OTLP
10
10
  ## Current OpenTelemetry OTLP exporter version
11
- VERSION = '0.20.5'
11
+ VERSION = '0.20.6'
12
12
  end
13
13
  end
14
14
  end
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: opentelemetry/proto/collector/logs/v1/logs_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'opentelemetry/proto/logs/v1/logs_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("opentelemetry/proto/collector/logs/v1/logs_service.proto", :syntax => :proto3) do
9
+ add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest" do
10
+ repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs"
11
+ end
12
+ add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse" do
13
+ end
14
+ end
15
+ end
16
+
17
+ module Opentelemetry
18
+ module Proto
19
+ module Collector
20
+ module Logs
21
+ module V1
22
+ ExportLogsServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest").msgclass
23
+ ExportLogsServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,50 @@
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
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'opentelemetry/proto/metrics/v1/metrics_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("opentelemetry/proto/collector/metrics/v1/metrics_service.proto", :syntax => :proto3) do
9
+ add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest" do
10
+ repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics"
11
+ end
12
+ add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse" do
13
+ end
14
+ end
15
+ end
16
+
17
+ module Opentelemetry
18
+ module Proto
19
+ module Collector
20
+ module Metrics
21
+ module V1
22
+ ExportMetricsServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest").msgclass
23
+ ExportMetricsServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,50 @@
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
@@ -0,0 +1,50 @@
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
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  optional :double_value, :double, 4
14
14
  optional :array_value, :message, 5, "opentelemetry.proto.common.v1.ArrayValue"
15
15
  optional :kvlist_value, :message, 6, "opentelemetry.proto.common.v1.KeyValueList"
16
+ optional :bytes_value, :bytes, 7
16
17
  end
17
18
  end
18
19
  add_message "opentelemetry.proto.common.v1.ArrayValue" do
@@ -0,0 +1,82 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: opentelemetry/proto/logs/v1/logs.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'opentelemetry/proto/common/v1/common_pb'
7
+ require 'opentelemetry/proto/resource/v1/resource_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("opentelemetry/proto/logs/v1/logs.proto", :syntax => :proto3) do
10
+ add_message "opentelemetry.proto.logs.v1.LogsData" do
11
+ repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs"
12
+ end
13
+ add_message "opentelemetry.proto.logs.v1.ResourceLogs" do
14
+ optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
15
+ repeated :instrumentation_library_logs, :message, 2, "opentelemetry.proto.logs.v1.InstrumentationLibraryLogs"
16
+ optional :schema_url, :string, 3
17
+ end
18
+ add_message "opentelemetry.proto.logs.v1.InstrumentationLibraryLogs" do
19
+ optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary"
20
+ repeated :logs, :message, 2, "opentelemetry.proto.logs.v1.LogRecord"
21
+ optional :schema_url, :string, 3
22
+ end
23
+ add_message "opentelemetry.proto.logs.v1.LogRecord" do
24
+ optional :time_unix_nano, :fixed64, 1
25
+ optional :severity_number, :enum, 2, "opentelemetry.proto.logs.v1.SeverityNumber"
26
+ optional :severity_text, :string, 3
27
+ optional :name, :string, 4
28
+ optional :body, :message, 5, "opentelemetry.proto.common.v1.AnyValue"
29
+ repeated :attributes, :message, 6, "opentelemetry.proto.common.v1.KeyValue"
30
+ optional :dropped_attributes_count, :uint32, 7
31
+ optional :flags, :fixed32, 8
32
+ optional :trace_id, :bytes, 9
33
+ optional :span_id, :bytes, 10
34
+ end
35
+ add_enum "opentelemetry.proto.logs.v1.SeverityNumber" do
36
+ value :SEVERITY_NUMBER_UNSPECIFIED, 0
37
+ value :SEVERITY_NUMBER_TRACE, 1
38
+ value :SEVERITY_NUMBER_TRACE2, 2
39
+ value :SEVERITY_NUMBER_TRACE3, 3
40
+ value :SEVERITY_NUMBER_TRACE4, 4
41
+ value :SEVERITY_NUMBER_DEBUG, 5
42
+ value :SEVERITY_NUMBER_DEBUG2, 6
43
+ value :SEVERITY_NUMBER_DEBUG3, 7
44
+ value :SEVERITY_NUMBER_DEBUG4, 8
45
+ value :SEVERITY_NUMBER_INFO, 9
46
+ value :SEVERITY_NUMBER_INFO2, 10
47
+ value :SEVERITY_NUMBER_INFO3, 11
48
+ value :SEVERITY_NUMBER_INFO4, 12
49
+ value :SEVERITY_NUMBER_WARN, 13
50
+ value :SEVERITY_NUMBER_WARN2, 14
51
+ value :SEVERITY_NUMBER_WARN3, 15
52
+ value :SEVERITY_NUMBER_WARN4, 16
53
+ value :SEVERITY_NUMBER_ERROR, 17
54
+ value :SEVERITY_NUMBER_ERROR2, 18
55
+ value :SEVERITY_NUMBER_ERROR3, 19
56
+ value :SEVERITY_NUMBER_ERROR4, 20
57
+ value :SEVERITY_NUMBER_FATAL, 21
58
+ value :SEVERITY_NUMBER_FATAL2, 22
59
+ value :SEVERITY_NUMBER_FATAL3, 23
60
+ value :SEVERITY_NUMBER_FATAL4, 24
61
+ end
62
+ add_enum "opentelemetry.proto.logs.v1.LogRecordFlags" do
63
+ value :LOG_RECORD_FLAG_UNSPECIFIED, 0
64
+ value :LOG_RECORD_FLAG_TRACE_FLAGS_MASK, 255
65
+ end
66
+ end
67
+ end
68
+
69
+ module Opentelemetry
70
+ module Proto
71
+ module Logs
72
+ module V1
73
+ LogsData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.LogsData").msgclass
74
+ ResourceLogs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.ResourceLogs").msgclass
75
+ InstrumentationLibraryLogs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.InstrumentationLibraryLogs").msgclass
76
+ LogRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.LogRecord").msgclass
77
+ SeverityNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.SeverityNumber").enummodule
78
+ LogRecordFlags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.logs.v1.LogRecordFlags").enummodule
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,43 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: opentelemetry/proto/metrics/experimental/metrics_config_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'opentelemetry/proto/resource/v1/resource_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("opentelemetry/proto/metrics/experimental/metrics_config_service.proto", :syntax => :proto3) do
9
+ add_message "opentelemetry.proto.metrics.experimental.MetricConfigRequest" do
10
+ optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
11
+ optional :last_known_fingerprint, :bytes, 2
12
+ end
13
+ add_message "opentelemetry.proto.metrics.experimental.MetricConfigResponse" do
14
+ optional :fingerprint, :bytes, 1
15
+ repeated :schedules, :message, 2, "opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule"
16
+ optional :suggested_wait_time_sec, :int32, 3
17
+ end
18
+ add_message "opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule" do
19
+ repeated :exclusion_patterns, :message, 1, "opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern"
20
+ repeated :inclusion_patterns, :message, 2, "opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern"
21
+ optional :period_sec, :int32, 3
22
+ end
23
+ add_message "opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern" do
24
+ oneof :match do
25
+ optional :equals, :string, 1
26
+ optional :starts_with, :string, 2
27
+ end
28
+ end
29
+ end
30
+ end
31
+
32
+ module Opentelemetry
33
+ module Proto
34
+ module Metrics
35
+ module Experimental
36
+ MetricConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.experimental.MetricConfigRequest").msgclass
37
+ MetricConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.experimental.MetricConfigResponse").msgclass
38
+ MetricConfigResponse::Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule").msgclass
39
+ MetricConfigResponse::Schedule::Pattern = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern").msgclass
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,202 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: opentelemetry/proto/metrics/v1/metrics.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'opentelemetry/proto/common/v1/common_pb'
7
+ require 'opentelemetry/proto/resource/v1/resource_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("opentelemetry/proto/metrics/v1/metrics.proto", :syntax => :proto3) do
10
+ add_message "opentelemetry.proto.metrics.v1.MetricsData" do
11
+ repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics"
12
+ end
13
+ add_message "opentelemetry.proto.metrics.v1.ResourceMetrics" do
14
+ optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
15
+ repeated :instrumentation_library_metrics, :message, 2, "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics"
16
+ optional :schema_url, :string, 3
17
+ end
18
+ add_message "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics" do
19
+ optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary"
20
+ repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric"
21
+ optional :schema_url, :string, 3
22
+ end
23
+ add_message "opentelemetry.proto.metrics.v1.Metric" do
24
+ optional :name, :string, 1
25
+ optional :description, :string, 2
26
+ optional :unit, :string, 3
27
+ oneof :data do
28
+ optional :int_gauge, :message, 4, "opentelemetry.proto.metrics.v1.IntGauge"
29
+ optional :gauge, :message, 5, "opentelemetry.proto.metrics.v1.Gauge"
30
+ optional :int_sum, :message, 6, "opentelemetry.proto.metrics.v1.IntSum"
31
+ optional :sum, :message, 7, "opentelemetry.proto.metrics.v1.Sum"
32
+ optional :int_histogram, :message, 8, "opentelemetry.proto.metrics.v1.IntHistogram"
33
+ optional :histogram, :message, 9, "opentelemetry.proto.metrics.v1.Histogram"
34
+ optional :exponential_histogram, :message, 10, "opentelemetry.proto.metrics.v1.ExponentialHistogram"
35
+ optional :summary, :message, 11, "opentelemetry.proto.metrics.v1.Summary"
36
+ end
37
+ end
38
+ add_message "opentelemetry.proto.metrics.v1.Gauge" do
39
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint"
40
+ end
41
+ add_message "opentelemetry.proto.metrics.v1.Sum" do
42
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint"
43
+ optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
44
+ optional :is_monotonic, :bool, 3
45
+ end
46
+ add_message "opentelemetry.proto.metrics.v1.Histogram" do
47
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.HistogramDataPoint"
48
+ optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
49
+ end
50
+ add_message "opentelemetry.proto.metrics.v1.ExponentialHistogram" do
51
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"
52
+ optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
53
+ end
54
+ add_message "opentelemetry.proto.metrics.v1.Summary" do
55
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.SummaryDataPoint"
56
+ end
57
+ add_message "opentelemetry.proto.metrics.v1.NumberDataPoint" do
58
+ repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue"
59
+ repeated :labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
60
+ optional :start_time_unix_nano, :fixed64, 2
61
+ optional :time_unix_nano, :fixed64, 3
62
+ repeated :exemplars, :message, 5, "opentelemetry.proto.metrics.v1.Exemplar"
63
+ optional :flags, :uint32, 8
64
+ oneof :value do
65
+ optional :as_double, :double, 4
66
+ optional :as_int, :sfixed64, 6
67
+ end
68
+ end
69
+ add_message "opentelemetry.proto.metrics.v1.HistogramDataPoint" do
70
+ repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue"
71
+ repeated :labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
72
+ optional :start_time_unix_nano, :fixed64, 2
73
+ optional :time_unix_nano, :fixed64, 3
74
+ optional :count, :fixed64, 4
75
+ optional :sum, :double, 5
76
+ repeated :bucket_counts, :fixed64, 6
77
+ repeated :explicit_bounds, :double, 7
78
+ repeated :exemplars, :message, 8, "opentelemetry.proto.metrics.v1.Exemplar"
79
+ optional :flags, :uint32, 10
80
+ end
81
+ add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" do
82
+ repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue"
83
+ optional :start_time_unix_nano, :fixed64, 2
84
+ optional :time_unix_nano, :fixed64, 3
85
+ optional :count, :fixed64, 4
86
+ optional :sum, :double, 5
87
+ optional :scale, :sint32, 6
88
+ optional :zero_count, :fixed64, 7
89
+ optional :positive, :message, 8, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"
90
+ optional :negative, :message, 9, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"
91
+ optional :flags, :uint32, 10
92
+ repeated :exemplars, :message, 11, "opentelemetry.proto.metrics.v1.Exemplar"
93
+ end
94
+ add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" do
95
+ optional :offset, :sint32, 1
96
+ repeated :bucket_counts, :uint64, 2
97
+ end
98
+ add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint" do
99
+ repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue"
100
+ repeated :labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
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
+ repeated :filtered_labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
115
+ optional :time_unix_nano, :fixed64, 2
116
+ optional :span_id, :bytes, 4
117
+ optional :trace_id, :bytes, 5
118
+ oneof :value do
119
+ optional :as_double, :double, 3
120
+ optional :as_int, :sfixed64, 6
121
+ end
122
+ end
123
+ add_message "opentelemetry.proto.metrics.v1.IntDataPoint" do
124
+ repeated :labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
125
+ optional :start_time_unix_nano, :fixed64, 2
126
+ optional :time_unix_nano, :fixed64, 3
127
+ optional :value, :sfixed64, 4
128
+ repeated :exemplars, :message, 5, "opentelemetry.proto.metrics.v1.IntExemplar"
129
+ end
130
+ add_message "opentelemetry.proto.metrics.v1.IntGauge" do
131
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.IntDataPoint"
132
+ end
133
+ add_message "opentelemetry.proto.metrics.v1.IntSum" do
134
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.IntDataPoint"
135
+ optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
136
+ optional :is_monotonic, :bool, 3
137
+ end
138
+ add_message "opentelemetry.proto.metrics.v1.IntHistogramDataPoint" do
139
+ repeated :labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
140
+ optional :start_time_unix_nano, :fixed64, 2
141
+ optional :time_unix_nano, :fixed64, 3
142
+ optional :count, :fixed64, 4
143
+ optional :sum, :sfixed64, 5
144
+ repeated :bucket_counts, :fixed64, 6
145
+ repeated :explicit_bounds, :double, 7
146
+ repeated :exemplars, :message, 8, "opentelemetry.proto.metrics.v1.IntExemplar"
147
+ end
148
+ add_message "opentelemetry.proto.metrics.v1.IntHistogram" do
149
+ repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.IntHistogramDataPoint"
150
+ optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality"
151
+ end
152
+ add_message "opentelemetry.proto.metrics.v1.IntExemplar" do
153
+ repeated :filtered_labels, :message, 1, "opentelemetry.proto.common.v1.StringKeyValue"
154
+ optional :time_unix_nano, :fixed64, 2
155
+ optional :value, :sfixed64, 3
156
+ optional :span_id, :bytes, 4
157
+ optional :trace_id, :bytes, 5
158
+ end
159
+ add_enum "opentelemetry.proto.metrics.v1.AggregationTemporality" do
160
+ value :AGGREGATION_TEMPORALITY_UNSPECIFIED, 0
161
+ value :AGGREGATION_TEMPORALITY_DELTA, 1
162
+ value :AGGREGATION_TEMPORALITY_CUMULATIVE, 2
163
+ end
164
+ add_enum "opentelemetry.proto.metrics.v1.DataPointFlags" do
165
+ value :FLAG_NONE, 0
166
+ value :FLAG_NO_RECORDED_VALUE, 1
167
+ end
168
+ end
169
+ end
170
+
171
+ module Opentelemetry
172
+ module Proto
173
+ module Metrics
174
+ module V1
175
+ MetricsData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.MetricsData").msgclass
176
+ ResourceMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.ResourceMetrics").msgclass
177
+ InstrumentationLibraryMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics").msgclass
178
+ Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Metric").msgclass
179
+ Gauge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Gauge").msgclass
180
+ Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Sum").msgclass
181
+ Histogram = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Histogram").msgclass
182
+ ExponentialHistogram = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.ExponentialHistogram").msgclass
183
+ Summary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Summary").msgclass
184
+ NumberDataPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.NumberDataPoint").msgclass
185
+ HistogramDataPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.HistogramDataPoint").msgclass
186
+ ExponentialHistogramDataPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint").msgclass
187
+ ExponentialHistogramDataPoint::Buckets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets").msgclass
188
+ SummaryDataPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.SummaryDataPoint").msgclass
189
+ SummaryDataPoint::ValueAtQuantile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile").msgclass
190
+ Exemplar = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.Exemplar").msgclass
191
+ IntDataPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.IntDataPoint").msgclass
192
+ IntGauge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.IntGauge").msgclass
193
+ IntSum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.IntSum").msgclass
194
+ IntHistogramDataPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.IntHistogramDataPoint").msgclass
195
+ IntHistogram = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.IntHistogram").msgclass
196
+ IntExemplar = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.IntExemplar").msgclass
197
+ AggregationTemporality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.AggregationTemporality").enummodule
198
+ DataPointFlags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.metrics.v1.DataPointFlags").enummodule
199
+ end
200
+ end
201
+ end
202
+ end
@@ -0,0 +1,49 @@
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
@@ -7,13 +7,18 @@ require 'opentelemetry/proto/common/v1/common_pb'
7
7
  require 'opentelemetry/proto/resource/v1/resource_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("opentelemetry/proto/trace/v1/trace.proto", :syntax => :proto3) do
10
+ add_message "opentelemetry.proto.trace.v1.TracesData" do
11
+ repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans"
12
+ end
10
13
  add_message "opentelemetry.proto.trace.v1.ResourceSpans" do
11
14
  optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource"
12
15
  repeated :instrumentation_library_spans, :message, 2, "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans"
16
+ optional :schema_url, :string, 3
13
17
  end
14
18
  add_message "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans" do
15
19
  optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary"
16
20
  repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span"
21
+ optional :schema_url, :string, 3
17
22
  end
18
23
  add_message "opentelemetry.proto.trace.v1.Span" do
19
24
  optional :trace_id, :bytes, 1
@@ -47,34 +52,40 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
47
52
  end
48
53
  add_enum "opentelemetry.proto.trace.v1.Span.SpanKind" do
49
54
  value :SPAN_KIND_UNSPECIFIED, 0
50
- value :INTERNAL, 1
51
- value :SERVER, 2
52
- value :CLIENT, 3
53
- value :PRODUCER, 4
54
- value :CONSUMER, 5
55
+ value :SPAN_KIND_INTERNAL, 1
56
+ value :SPAN_KIND_SERVER, 2
57
+ value :SPAN_KIND_CLIENT, 3
58
+ value :SPAN_KIND_PRODUCER, 4
59
+ value :SPAN_KIND_CONSUMER, 5
55
60
  end
56
61
  add_message "opentelemetry.proto.trace.v1.Status" do
57
- optional :code, :enum, 1, "opentelemetry.proto.trace.v1.Status.StatusCode"
62
+ optional :deprecated_code, :enum, 1, "opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode"
58
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.DeprecatedStatusCode" do
67
+ value :DEPRECATED_STATUS_CODE_OK, 0
68
+ value :DEPRECATED_STATUS_CODE_CANCELLED, 1
69
+ value :DEPRECATED_STATUS_CODE_UNKNOWN_ERROR, 2
70
+ value :DEPRECATED_STATUS_CODE_INVALID_ARGUMENT, 3
71
+ value :DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED, 4
72
+ value :DEPRECATED_STATUS_CODE_NOT_FOUND, 5
73
+ value :DEPRECATED_STATUS_CODE_ALREADY_EXISTS, 6
74
+ value :DEPRECATED_STATUS_CODE_PERMISSION_DENIED, 7
75
+ value :DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED, 8
76
+ value :DEPRECATED_STATUS_CODE_FAILED_PRECONDITION, 9
77
+ value :DEPRECATED_STATUS_CODE_ABORTED, 10
78
+ value :DEPRECATED_STATUS_CODE_OUT_OF_RANGE, 11
79
+ value :DEPRECATED_STATUS_CODE_UNIMPLEMENTED, 12
80
+ value :DEPRECATED_STATUS_CODE_INTERNAL_ERROR, 13
81
+ value :DEPRECATED_STATUS_CODE_UNAVAILABLE, 14
82
+ value :DEPRECATED_STATUS_CODE_DATA_LOSS, 15
83
+ value :DEPRECATED_STATUS_CODE_UNAUTHENTICATED, 16
59
84
  end
60
85
  add_enum "opentelemetry.proto.trace.v1.Status.StatusCode" do
61
- value :Ok, 0
62
- value :Cancelled, 1
63
- value :UnknownError, 2
64
- value :InvalidArgument, 3
65
- value :DeadlineExceeded, 4
66
- value :NotFound, 5
67
- value :AlreadyExists, 6
68
- value :PermissionDenied, 7
69
- value :ResourceExhausted, 8
70
- value :FailedPrecondition, 9
71
- value :Aborted, 10
72
- value :OutOfRange, 11
73
- value :Unimplemented, 12
74
- value :InternalError, 13
75
- value :Unavailable, 14
76
- value :DataLoss, 15
77
- value :Unauthenticated, 16
86
+ value :STATUS_CODE_UNSET, 0
87
+ value :STATUS_CODE_OK, 1
88
+ value :STATUS_CODE_ERROR, 2
78
89
  end
79
90
  end
80
91
  end
@@ -83,6 +94,7 @@ module Opentelemetry
83
94
  module Proto
84
95
  module Trace
85
96
  module V1
97
+ TracesData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.TracesData").msgclass
86
98
  ResourceSpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ResourceSpans").msgclass
87
99
  InstrumentationLibrarySpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.InstrumentationLibrarySpans").msgclass
88
100
  Span = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span").msgclass
@@ -90,6 +102,7 @@ module Opentelemetry
90
102
  Span::Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.Link").msgclass
91
103
  Span::SpanKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.SpanKind").enummodule
92
104
  Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Status").msgclass
105
+ Status::DeprecatedStatusCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode").enummodule
93
106
  Status::StatusCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Status.StatusCode").enummodule
94
107
  end
95
108
  end
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.20.5
4
+ version: 0.20.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-30 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -221,18 +221,27 @@ files:
221
221
  - lib/opentelemetry/exporter/otlp.rb
222
222
  - lib/opentelemetry/exporter/otlp/exporter.rb
223
223
  - lib/opentelemetry/exporter/otlp/version.rb
224
+ - lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb
225
+ - lib/opentelemetry/proto/collector/logs/v1/logs_service_services_pb.rb
226
+ - lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb
227
+ - lib/opentelemetry/proto/collector/metrics/v1/metrics_service_services_pb.rb
224
228
  - lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb
229
+ - lib/opentelemetry/proto/collector/trace/v1/trace_service_services_pb.rb
225
230
  - lib/opentelemetry/proto/common/v1/common_pb.rb
231
+ - lib/opentelemetry/proto/logs/v1/logs_pb.rb
232
+ - lib/opentelemetry/proto/metrics/experimental/metrics_config_service_pb.rb
233
+ - lib/opentelemetry/proto/metrics/v1/metrics_pb.rb
226
234
  - lib/opentelemetry/proto/resource/v1/resource_pb.rb
235
+ - lib/opentelemetry/proto/trace/v1/trace_config_pb.rb
227
236
  - lib/opentelemetry/proto/trace/v1/trace_pb.rb
228
237
  homepage: https://github.com/open-telemetry/opentelemetry-ruby
229
238
  licenses:
230
239
  - Apache-2.0
231
240
  metadata:
232
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.20.5/file.CHANGELOG.html
241
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.20.6/file.CHANGELOG.html
233
242
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/otlp
234
243
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
235
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.20.5
244
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-exporter-otlp/v0.20.6
236
245
  post_install_message:
237
246
  rdoc_options: []
238
247
  require_paths: