diff --git a/.flake8 b/.flake8
index 292bb01461a..83786a686a7 100644
--- a/.flake8
+++ b/.flake8
@@ -23,10 +23,6 @@ exclude =
venv*/
target
__pycache__
- exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/
- exporter/opentelemetry-exporter-jaeger-proto-grpc/build/*
- exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/
- exporter/opentelemetry-exporter-jaeger-thrift/build/*
exporter/opentelemetry-exporter-zipkin-proto-http/src/opentelemetry/exporter/zipkin/proto/http/v2/gen/
docs/examples/opentelemetry-example-app/src/opentelemetry_example_app/grpc/gen/
docs/examples/opentelemetry-example-app/build/*
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4f895dec6a2..23c58969a38 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
+- Remove Jaeger exporters
+ ([#3554](https://github.com/open-telemetry/opentelemetry-python/pull/3554))
- Log stacktrace on `UNKNOWN` status OTLP export error
([#3536](https://github.com/open-telemetry/opentelemetry-python/pull/3536))
- Fix OTLPExporterMixin shutdown timeout period
diff --git a/docs/exporter/jaeger/jaeger.rst b/docs/exporter/jaeger/jaeger.rst
deleted file mode 100644
index 1fc02948d8d..00000000000
--- a/docs/exporter/jaeger/jaeger.rst
+++ /dev/null
@@ -1,35 +0,0 @@
-OpenTelemetry Jaeger Exporters
-==============================
-
-.. automodule:: opentelemetry.exporter.jaeger
- :members:
- :undoc-members:
- :show-inheritance:
-
-.. automodule:: opentelemetry.exporter.jaeger.thrift
- :members:
- :undoc-members:
- :show-inheritance:
-
-.. automodule:: opentelemetry.exporter.jaeger.proto.grpc
- :members:
- :undoc-members:
- :show-inheritance:
-
-Submodules
-----------
-
-.. automodule:: opentelemetry.exporter.jaeger.thrift.gen.jaeger.ttypes
- :members:
- :undoc-members:
- :show-inheritance:
-
-.. automodule:: opentelemetry.exporter.jaeger.thrift.send
- :members:
- :undoc-members:
- :show-inheritance:
-
-.. automodule:: opentelemetry.exporter.jaeger.proto.grpc.gen.collector_pb2_grpc
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/getting_started/jaeger_example.py b/docs/getting_started/jaeger_example.py
deleted file mode 100644
index 3d31b18fb93..00000000000
--- a/docs/getting_started/jaeger_example.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# jaeger_example.py
-from opentelemetry import trace
-from opentelemetry.exporter.jaeger.thrift import JaegerExporter
-from opentelemetry.sdk.resources import SERVICE_NAME, Resource
-from opentelemetry.sdk.trace import TracerProvider
-from opentelemetry.sdk.trace.export import BatchSpanProcessor
-
-trace.set_tracer_provider(
- TracerProvider(
- resource=Resource.create({SERVICE_NAME: "my-helloworld-service"})
- )
-)
-
-jaeger_exporter = JaegerExporter(
- agent_host_name="localhost",
- agent_port=6831,
-)
-
-trace.get_tracer_provider().add_span_processor(
- BatchSpanProcessor(jaeger_exporter)
-)
-
-tracer = trace.get_tracer(__name__)
-
-with tracer.start_as_current_span("foo"):
- with tracer.start_as_current_span("bar"):
- with tracer.start_as_current_span("baz"):
- print("Hello world from OpenTelemetry Python!")
diff --git a/eachdist.ini b/eachdist.ini
index 3a2205712b6..7d94c9e64cf 100644
--- a/eachdist.ini
+++ b/eachdist.ini
@@ -24,9 +24,6 @@ packages=
opentelemetry-exporter-otlp-proto-grpc
opentelemetry-exporter-otlp-proto-http
opentelemetry-exporter-otlp
- opentelemetry-exporter-jaeger-thrift
- opentelemetry-exporter-jaeger-proto-grpc
- opentelemetry-exporter-jaeger
opentelemetry-api
[prerelease]
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/LICENSE b/exporter/opentelemetry-exporter-jaeger-proto-grpc/LICENSE
deleted file mode 100644
index 1ef7dad2c5c..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright The OpenTelemetry Authors
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst b/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst
deleted file mode 100644
index f371fd0c3ef..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/README.rst
+++ /dev/null
@@ -1,42 +0,0 @@
-OpenTelemetry Jaeger Protobuf Exporter
-======================================
-
-.. warning::
- Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead.
- Support for this exporter will end July 2023.
-
- This package is no longer being tested.
-
-|pypi|
-
-.. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-jaeger-proto-grpc.svg
- :target: https://pypi.org/project/opentelemetry-exporter-jaeger-proto-grpc/
-
-This library allows to export tracing data to `Jaeger `_.
-
-Installation
-------------
-
-::
-
- pip install opentelemetry-exporter-jaeger-proto-grpc
-
-
-.. _Jaeger: https://www.jaegertracing.io/
-.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/
-
-Configuration
--------------
-
-OpenTelemetry Jaeger Exporter can be configured by setting `JaegerExporter parameters
-`_ or by setting
-`environment variables `_
-
-References
-----------
-
-* `OpenTelemetry Jaeger Exporter `_
-* `Jaeger `_
-* `OpenTelemetry Project `_
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/examples/jaeger_exporter_example.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/examples/jaeger_exporter_example.py
deleted file mode 100644
index dc3c539e753..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/examples/jaeger_exporter_example.py
+++ /dev/null
@@ -1,45 +0,0 @@
-import time
-
-from opentelemetry import trace
-from opentelemetry.exporter.jaeger.proto import grpc
-from opentelemetry.sdk.trace import TracerProvider
-from opentelemetry.sdk.trace.export import BatchSpanProcessor
-
-trace.set_tracer_provider(TracerProvider())
-tracer = trace.get_tracer(__name__)
-
-# Create a JaegerExporter to send spans with gRPC
-# If there is no encryption or authentication set `insecure` to True
-# If server has authentication with SSL/TLS you can set the
-# parameter credentials=ChannelCredentials(...) or the environment variable
-# `EXPORTER_JAEGER_CERTIFICATE` with file containing creds.
-
-jaeger_exporter = grpc.JaegerExporter(
- collector_endpoint="localhost:14250",
- insecure=True,
-)
-
-# create a BatchSpanProcessor and add the exporter to it
-span_processor = BatchSpanProcessor(jaeger_exporter)
-
-# add to the tracer factory
-trace.get_tracer_provider().add_span_processor(span_processor)
-
-# create some spans for testing
-with tracer.start_as_current_span("foo") as foo:
- time.sleep(0.1)
- foo.set_attribute("my_atribbute", True)
- foo.add_event("event in foo", {"name": "foo1"})
- with tracer.start_as_current_span(
- "bar", links=[trace.Link(foo.get_span_context())]
- ) as bar:
- time.sleep(0.2)
- bar.set_attribute("speed", 100.0)
-
- with tracer.start_as_current_span("baz") as baz:
- time.sleep(0.3)
- baz.set_attribute("name", "mauricio")
-
- time.sleep(0.2)
-
- time.sleep(0.1)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/proto/api_v2/collector.proto b/exporter/opentelemetry-exporter-jaeger-proto-grpc/proto/api_v2/collector.proto
deleted file mode 100644
index e897a043cd6..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/proto/api_v2/collector.proto
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2019 The Jaeger Authors.
-// Copyright (c) 2018 Uber Technologies, Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-syntax="proto3";
-
-package jaeger.api_v2;
-
-import "model.proto";
-import "gogoproto/gogo.proto";
-import "google/api/annotations.proto";
-import "protoc-gen-swagger/options/annotations.proto";
-
-option go_package = "api_v2";
-option java_package = "io.jaegertracing.api_v2";
-
-// Enable gogoprotobuf extensions (https://github.com/gogo/protobuf/blob/master/extensions.md).
-// Enable custom Marshal method.
-option (gogoproto.marshaler_all) = true;
-// Enable custom Unmarshal method.
-option (gogoproto.unmarshaler_all) = true;
-// Enable custom Size method (Required by Marshal and Unmarshal).
-option (gogoproto.sizer_all) = true;
-// Enable registration with golang/protobuf for the grpc-gateway.
-option (gogoproto.goproto_registration) = true;
-
-option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
- info: {
- version: "1.0";
- };
- external_docs: {
- url: "https://github.com/jaegertracing/jaeger";
- description: "Jaeger API";
- }
- schemes: HTTP;
- schemes: HTTPS;
-};
-
-message PostSpansRequest {
- Batch batch = 1 [
- (gogoproto.nullable) = false
- ];
-}
-
-message PostSpansResponse {
-}
-
-service CollectorService {
- rpc PostSpans(PostSpansRequest) returns (PostSpansResponse) {
- option (google.api.http) = {
- post: "/api/v2/spans"
- body: "*"
- };
- }
-}
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/proto/api_v2/model.proto b/exporter/opentelemetry-exporter-jaeger-proto-grpc/proto/api_v2/model.proto
deleted file mode 100644
index 3cc15df3b88..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/proto/api_v2/model.proto
+++ /dev/null
@@ -1,166 +0,0 @@
-// Copyright (c) 2018 Uber Technologies, Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-syntax="proto3";
-
-package jaeger.api_v2;
-
-import "gogoproto/gogo.proto";
-import "google/protobuf/timestamp.proto";
-import "google/protobuf/duration.proto";
-
-// TODO: document all types and fields
-
-// TODO: once this moves to jaeger-idl repo, we may want to change Go pkg to api_v2
-// and rewrite it to model only in this repo. That should make it easier to generate
-// classes in other languages.
-option go_package = "model";
-option java_package = "io.jaegertracing.api_v2";
-
-// Enable gogoprotobuf extensions (https://github.com/gogo/protobuf/blob/master/extensions.md).
-// Enable custom Marshal method.
-option (gogoproto.marshaler_all) = true;
-// Enable custom Unmarshal method.
-option (gogoproto.unmarshaler_all) = true;
-// Enable custom Size method (Required by Marshal and Unmarshal).
-option (gogoproto.sizer_all) = true;
-// Enable registration with golang/protobuf for the grpc-gateway.
-option (gogoproto.goproto_registration) = true;
-
-enum ValueType {
- STRING = 0;
- BOOL = 1;
- INT64 = 2;
- FLOAT64 = 3;
- BINARY = 4;
-};
-
-message KeyValue {
- option (gogoproto.equal) = true;
- option (gogoproto.compare) = true;
-
- string key = 1;
- ValueType v_type = 2;
- string v_str = 3;
- bool v_bool = 4;
- int64 v_int64 = 5;
- double v_float64 = 6;
- bytes v_binary = 7;
-}
-
-message Log {
- google.protobuf.Timestamp timestamp = 1 [
- (gogoproto.stdtime) = true,
- (gogoproto.nullable) = false
- ];
- repeated KeyValue fields = 2 [
- (gogoproto.nullable) = false
- ];
-}
-
-enum SpanRefType {
- CHILD_OF = 0;
- FOLLOWS_FROM = 1;
-};
-
-message SpanRef {
- bytes trace_id = 1 [
- (gogoproto.nullable) = false,
- (gogoproto.customtype) = "TraceID",
- (gogoproto.customname) = "TraceID"
- ];
- bytes span_id = 2 [
- (gogoproto.nullable) = false,
- (gogoproto.customtype) = "SpanID",
- (gogoproto.customname) = "SpanID"
- ];
- SpanRefType ref_type = 3;
-}
-
-message Process {
- string service_name = 1;
- repeated KeyValue tags = 2 [
- (gogoproto.nullable) = false
- ];
-}
-
-message Span {
- bytes trace_id = 1 [
- (gogoproto.nullable) = false,
- (gogoproto.customtype) = "TraceID",
- (gogoproto.customname) = "TraceID"
- ];
- bytes span_id = 2 [
- (gogoproto.nullable) = false,
- (gogoproto.customtype) = "SpanID",
- (gogoproto.customname) = "SpanID"
- ];
- string operation_name = 3;
- repeated SpanRef references = 4 [
- (gogoproto.nullable) = false
- ];
- uint32 flags = 5 [
- (gogoproto.nullable) = false,
- (gogoproto.customtype) = "Flags"
- ];
- google.protobuf.Timestamp start_time = 6 [
- (gogoproto.stdtime) = true,
- (gogoproto.nullable) = false
- ];
- google.protobuf.Duration duration = 7 [
- (gogoproto.stdduration) = true,
- (gogoproto.nullable) = false
- ];
- repeated KeyValue tags = 8 [
- (gogoproto.nullable) = false
- ];
- repeated Log logs = 9 [
- (gogoproto.nullable) = false
- ];
- Process process = 10;
- string process_id = 11 [
- (gogoproto.customname) = "ProcessID"
- ];
- repeated string warnings = 12;
-}
-
-message Trace {
- message ProcessMapping {
- string process_id = 1 [
- (gogoproto.customname) = "ProcessID"
- ];
- Process process = 2 [
- (gogoproto.nullable) = false
- ];
- }
- repeated Span spans = 1;
- repeated ProcessMapping process_map = 2 [
- (gogoproto.nullable) = false
- ];
- repeated string warnings = 3;
-}
-
-message Batch {
- repeated Span spans = 1;
- Process process = 2 [
- (gogoproto.nullable) = true
- ];
-}
-
-message DependencyLink {
- string parent = 1;
- string child = 2;
- uint64 call_count = 3;
- string source = 4;
-}
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/pyproject.toml b/exporter/opentelemetry-exporter-jaeger-proto-grpc/pyproject.toml
deleted file mode 100644
index 131f12a0b4a..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/pyproject.toml
+++ /dev/null
@@ -1,54 +0,0 @@
-[build-system]
-requires = ["hatchling"]
-build-backend = "hatchling.build"
-
-[project]
-name = "opentelemetry-exporter-jaeger-proto-grpc"
-dynamic = ["version"]
-description = "Jaeger Protobuf Exporter for OpenTelemetry"
-readme = "README.rst"
-license = "Apache-2.0"
-requires-python = ">=3.7"
-authors = [
- { name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" },
-]
-classifiers = [
- "Development Status :: 5 - Production/Stable",
- "Intended Audience :: Developers",
- "License :: OSI Approved :: Apache Software License",
- "Programming Language :: Python",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
- "Programming Language :: Python :: 3.10",
- "Programming Language :: Python :: 3.11",
- "Typing :: Typed",
-]
-dependencies = [
- "googleapis-common-protos ~= 1.52, < 1.60.0",
- "grpcio >= 1.0.0, < 2.0.0",
- "opentelemetry-api ~= 1.3",
- "opentelemetry-sdk ~= 1.11",
-]
-
-[project.optional-dependencies]
-test = []
-
-[project.entry-points.opentelemetry_traces_exporter]
-jaeger_proto = "opentelemetry.exporter.jaeger.proto.grpc:JaegerExporter"
-
-[project.urls]
-Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-jaeger-proto-grpc"
-
-[tool.hatch.version]
-path = "src/opentelemetry/exporter/jaeger/proto/grpc/version.py"
-
-[tool.hatch.build.targets.sdist]
-include = [
- "/src",
- "/tests",
-]
-
-[tool.hatch.build.targets.wheel]
-packages = ["src/opentelemetry"]
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py
deleted file mode 100644
index f08b20e726c..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/__init__.py
+++ /dev/null
@@ -1,196 +0,0 @@
-# Copyright 2018, OpenCensus Authors
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""
-
-OpenTelemetry Jaeger Protobuf Exporter
---------------------------------------
-
-The **OpenTelemetry Jaeger Protobuf Exporter** allows to export `OpenTelemetry`_ traces to `Jaeger`_.
-This exporter always sends traces to the configured agent using Protobuf via gRPC.
-
-Usage
------
-
-.. code:: python
-
- from opentelemetry import trace
- from opentelemetry.exporter.jaeger.proto.grpc import JaegerExporter
- from opentelemetry.sdk.trace import TracerProvider
- from opentelemetry.sdk.trace.export import BatchSpanProcessor
-
- trace.set_tracer_provider(TracerProvider())
- tracer = trace.get_tracer(__name__)
-
- # create a JaegerExporter
- jaeger_exporter = JaegerExporter(
- # optional: configure collector
- # collector_endpoint='localhost:14250',
- # insecure=True, # optional
- # credentials=xxx # optional channel creds
- # max_tag_value_length=None # optional
- )
-
- # Create a BatchSpanProcessor and add the exporter to it
- span_processor = BatchSpanProcessor(jaeger_exporter)
-
- # add to the tracer
- trace.get_tracer_provider().add_span_processor(span_processor)
-
- with tracer.start_as_current_span('foo'):
- print('Hello world!')
-
-You can configure the exporter with the following environment variables:
-
-- :envvar:`OTEL_EXPORTER_JAEGER_ENDPOINT`
-- :envvar:`OTEL_EXPORTER_JAEGER_CERTIFICATE`
-- :envvar:`OTEL_EXPORTER_JAEGER_TIMEOUT`
-
-API
----
-.. _Jaeger: https://www.jaegertracing.io/
-.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/
-"""
-# pylint: disable=protected-access
-
-import logging
-from os import environ
-from typing import Optional
-from deprecated import deprecated
-
-from grpc import ChannelCredentials, RpcError, insecure_channel, secure_channel
-
-from opentelemetry import trace
-from opentelemetry.exporter.jaeger.proto.grpc import util
-from opentelemetry.exporter.jaeger.proto.grpc.gen import model_pb2
-from opentelemetry.exporter.jaeger.proto.grpc.gen.collector_pb2 import (
- PostSpansRequest,
-)
-from opentelemetry.exporter.jaeger.proto.grpc.gen.collector_pb2_grpc import (
- CollectorServiceStub,
-)
-from opentelemetry.exporter.jaeger.proto.grpc.translate import (
- ProtobufTranslator,
- Translate,
-)
-from opentelemetry.sdk.environment_variables import (
- OTEL_EXPORTER_JAEGER_ENDPOINT,
- OTEL_EXPORTER_JAEGER_TIMEOUT,
- OTEL_EXPORTER_JAEGER_GRPC_INSECURE,
-)
-from opentelemetry.sdk.resources import SERVICE_NAME, Resource
-from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult
-
-DEFAULT_GRPC_COLLECTOR_ENDPOINT = "localhost:14250"
-DEFAULT_EXPORT_TIMEOUT = 10
-
-logger = logging.getLogger(__name__)
-
-
-class JaegerExporter(SpanExporter):
- """Jaeger span exporter for OpenTelemetry.
-
- Args:
- collector_endpoint: The endpoint of the Jaeger collector that uses
- Protobuf via gRPC.
- insecure: True if collector has no encryption or authentication
- credentials: Credentials for server authentication.
- max_tag_value_length: Max length string attribute values can have. Set to None to disable.
- timeout: Maximum time the Jaeger exporter should wait for each batch export.
- """
-
- @deprecated(
- version="1.16.0",
- reason="Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. Support for this exporter will end July 2023.",
- )
- def __init__(
- self,
- collector_endpoint: Optional[str] = None,
- insecure: Optional[bool] = None,
- credentials: Optional[ChannelCredentials] = None,
- max_tag_value_length: Optional[int] = None,
- timeout: Optional[int] = None,
- ):
- self._max_tag_value_length = max_tag_value_length
-
- self.collector_endpoint = collector_endpoint or environ.get(
- OTEL_EXPORTER_JAEGER_ENDPOINT, DEFAULT_GRPC_COLLECTOR_ENDPOINT
- )
- self.insecure = (
- insecure
- or environ.get(OTEL_EXPORTER_JAEGER_GRPC_INSECURE, "")
- .strip()
- .lower()
- == "true"
- )
- self._timeout = timeout or int(
- environ.get(OTEL_EXPORTER_JAEGER_TIMEOUT, DEFAULT_EXPORT_TIMEOUT)
- )
- self._grpc_client = None
- self.credentials = util._get_credentials(credentials)
- tracer_provider = trace.get_tracer_provider()
- self.service_name = (
- tracer_provider.resource.attributes[SERVICE_NAME]
- if getattr(tracer_provider, "resource", None)
- else Resource.create().attributes.get(SERVICE_NAME)
- )
-
- @property
- def _collector_grpc_client(self) -> Optional[CollectorServiceStub]:
-
- if self._grpc_client is None:
- if self.insecure:
- self._grpc_client = CollectorServiceStub(
- insecure_channel(self.collector_endpoint)
- )
- else:
- self._grpc_client = CollectorServiceStub(
- secure_channel(self.collector_endpoint, self.credentials)
- )
- return self._grpc_client
-
- def export(self, spans) -> SpanExportResult:
- # Populate service_name from first span
- # We restrict any SpanProcessor to be only associated with a single
- # TracerProvider, so it is safe to assume that all Spans in a single
- # batch all originate from one TracerProvider (and in turn have all
- # the same service.name)
- if spans:
- service_name = spans[0].resource.attributes.get(SERVICE_NAME)
- if service_name:
- self.service_name = service_name
- translator = Translate(spans)
- pb_translator = ProtobufTranslator(
- self.service_name, self._max_tag_value_length
- )
- jaeger_spans = translator._translate(pb_translator)
- batch = model_pb2.Batch(spans=jaeger_spans)
- request = PostSpansRequest(batch=batch)
- try:
- self._collector_grpc_client.PostSpans(
- request, timeout=self._timeout
- )
- return SpanExportResult.SUCCESS
- except RpcError as error:
- logger.warning(
- "Failed to export batch. Status code: %s", error.code()
- )
- return SpanExportResult.FAILURE
-
- def shutdown(self):
- pass
-
- def force_flush(self, timeout_millis: int = 30000) -> bool:
- return True
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/__init__.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/__init__.py
deleted file mode 100644
index 52b3cfb3e9c..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-
-import sys
-from os.path import dirname
-sys.path.append(dirname(__file__))
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/collector_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/collector_pb2.py
deleted file mode 100644
index cdb8562a945..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/collector_pb2.py
+++ /dev/null
@@ -1,134 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: collector.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from opentelemetry.exporter.jaeger.proto.grpc.gen import model_pb2 as model__pb2
-from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
-from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
-from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='collector.proto',
- package='jaeger.api_v2',
- syntax='proto3',
- serialized_options=_b('\n\027io.jaegertracing.api_v2Z\006api_v2\310\342\036\001\320\342\036\001\340\342\036\001\300\343\036\001\222AB\022\0052\0031.0*\002\001\002r5\n\nJaeger API\022\'https://github.com/jaegertracing/jaeger'),
- serialized_pb=_b('\n\x0f\x63ollector.proto\x12\rjaeger.api_v2\x1a\x0bmodel.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"=\n\x10PostSpansRequest\x12)\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32\x14.jaeger.api_v2.BatchB\x04\xc8\xde\x1f\x00\"\x13\n\x11PostSpansResponse2|\n\x10\x43ollectorService\x12h\n\tPostSpans\x12\x1f.jaeger.api_v2.PostSpansRequest\x1a .jaeger.api_v2.PostSpansResponse\"\x18\x82\xd3\xe4\x93\x02\x12\"\r/api/v2/spans:\x01*Bv\n\x17io.jaegertracing.api_v2Z\x06\x61pi_v2\xc8\xe2\x1e\x01\xd0\xe2\x1e\x01\xe0\xe2\x1e\x01\xc0\xe3\x1e\x01\x92\x41\x42\x12\x05\x32\x03\x31.0*\x02\x01\x02r5\n\nJaeger API\x12\'https://github.com/jaegertracing/jaegerb\x06proto3')
- ,
- dependencies=[model__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,protoc__gen__swagger_dot_options_dot_annotations__pb2.DESCRIPTOR,])
-
-
-
-
-_POSTSPANSREQUEST = _descriptor.Descriptor(
- name='PostSpansRequest',
- full_name='jaeger.api_v2.PostSpansRequest',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='batch', full_name='jaeger.api_v2.PostSpansRequest.batch', index=0,
- number=1, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=145,
- serialized_end=206,
-)
-
-
-_POSTSPANSRESPONSE = _descriptor.Descriptor(
- name='PostSpansResponse',
- full_name='jaeger.api_v2.PostSpansResponse',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=208,
- serialized_end=227,
-)
-
-_POSTSPANSREQUEST.fields_by_name['batch'].message_type = model__pb2._BATCH
-DESCRIPTOR.message_types_by_name['PostSpansRequest'] = _POSTSPANSREQUEST
-DESCRIPTOR.message_types_by_name['PostSpansResponse'] = _POSTSPANSRESPONSE
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-PostSpansRequest = _reflection.GeneratedProtocolMessageType('PostSpansRequest', (_message.Message,), {
- 'DESCRIPTOR' : _POSTSPANSREQUEST,
- '__module__' : 'collector_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.PostSpansRequest)
- })
-_sym_db.RegisterMessage(PostSpansRequest)
-
-PostSpansResponse = _reflection.GeneratedProtocolMessageType('PostSpansResponse', (_message.Message,), {
- 'DESCRIPTOR' : _POSTSPANSRESPONSE,
- '__module__' : 'collector_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.PostSpansResponse)
- })
-_sym_db.RegisterMessage(PostSpansResponse)
-
-
-DESCRIPTOR._options = None
-_POSTSPANSREQUEST.fields_by_name['batch']._options = None
-
-_COLLECTORSERVICE = _descriptor.ServiceDescriptor(
- name='CollectorService',
- full_name='jaeger.api_v2.CollectorService',
- file=DESCRIPTOR,
- index=0,
- serialized_options=None,
- serialized_start=229,
- serialized_end=353,
- methods=[
- _descriptor.MethodDescriptor(
- name='PostSpans',
- full_name='jaeger.api_v2.CollectorService.PostSpans',
- index=0,
- containing_service=None,
- input_type=_POSTSPANSREQUEST,
- output_type=_POSTSPANSRESPONSE,
- serialized_options=_b('\202\323\344\223\002\022\"\r/api/v2/spans:\001*'),
- ),
-])
-_sym_db.RegisterServiceDescriptor(_COLLECTORSERVICE)
-
-DESCRIPTOR.services_by_name['CollectorService'] = _COLLECTORSERVICE
-
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/collector_pb2_grpc.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/collector_pb2_grpc.py
deleted file mode 100644
index b6fcc3592a9..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/collector_pb2_grpc.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
-import grpc
-
-import collector_pb2 as collector__pb2
-
-
-class CollectorServiceStub(object):
- # missing associated documentation comment in .proto file
- pass
-
- def __init__(self, channel):
- """Constructor.
-
- Args:
- channel: A grpc.Channel.
- """
- self.PostSpans = channel.unary_unary(
- '/jaeger.api_v2.CollectorService/PostSpans',
- request_serializer=collector__pb2.PostSpansRequest.SerializeToString,
- response_deserializer=collector__pb2.PostSpansResponse.FromString,
- )
-
-
-class CollectorServiceServicer(object):
- # missing associated documentation comment in .proto file
- pass
-
- def PostSpans(self, request, context):
- # missing associated documentation comment in .proto file
- pass
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
- context.set_details('Method not implemented!')
- raise NotImplementedError('Method not implemented!')
-
-
-def add_CollectorServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'PostSpans': grpc.unary_unary_rpc_method_handler(
- servicer.PostSpans,
- request_deserializer=collector__pb2.PostSpansRequest.FromString,
- response_serializer=collector__pb2.PostSpansResponse.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'jaeger.api_v2.CollectorService', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/gogoproto/gogo_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/gogoproto/gogo_pb2.py
deleted file mode 100644
index 7268c1b693b..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/gogoproto/gogo_pb2.py
+++ /dev/null
@@ -1,794 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: gogoproto/gogo.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='gogoproto/gogo.proto',
- package='gogoproto',
- syntax='proto2',
- serialized_options=_b('\n\023com.google.protobufB\nGoGoProtosZ\"github.com/gogo/protobuf/gogoproto'),
- serialized_pb=_b('\n\x14gogoproto/gogo.proto\x12\tgogoproto\x1a google/protobuf/descriptor.proto:;\n\x13goproto_enum_prefix\x12\x1c.google.protobuf.EnumOptions\x18\xb1\xe4\x03 \x01(\x08:=\n\x15goproto_enum_stringer\x12\x1c.google.protobuf.EnumOptions\x18\xc5\xe4\x03 \x01(\x08:5\n\renum_stringer\x12\x1c.google.protobuf.EnumOptions\x18\xc6\xe4\x03 \x01(\x08:7\n\x0f\x65num_customname\x12\x1c.google.protobuf.EnumOptions\x18\xc7\xe4\x03 \x01(\t:0\n\x08\x65numdecl\x12\x1c.google.protobuf.EnumOptions\x18\xc8\xe4\x03 \x01(\x08:A\n\x14\x65numvalue_customname\x12!.google.protobuf.EnumValueOptions\x18\xd1\x83\x04 \x01(\t:;\n\x13goproto_getters_all\x12\x1c.google.protobuf.FileOptions\x18\x99\xec\x03 \x01(\x08:?\n\x17goproto_enum_prefix_all\x12\x1c.google.protobuf.FileOptions\x18\x9a\xec\x03 \x01(\x08:<\n\x14goproto_stringer_all\x12\x1c.google.protobuf.FileOptions\x18\x9b\xec\x03 \x01(\x08:9\n\x11verbose_equal_all\x12\x1c.google.protobuf.FileOptions\x18\x9c\xec\x03 \x01(\x08:0\n\x08\x66\x61\x63\x65_all\x12\x1c.google.protobuf.FileOptions\x18\x9d\xec\x03 \x01(\x08:4\n\x0cgostring_all\x12\x1c.google.protobuf.FileOptions\x18\x9e\xec\x03 \x01(\x08:4\n\x0cpopulate_all\x12\x1c.google.protobuf.FileOptions\x18\x9f\xec\x03 \x01(\x08:4\n\x0cstringer_all\x12\x1c.google.protobuf.FileOptions\x18\xa0\xec\x03 \x01(\x08:3\n\x0bonlyone_all\x12\x1c.google.protobuf.FileOptions\x18\xa1\xec\x03 \x01(\x08:1\n\tequal_all\x12\x1c.google.protobuf.FileOptions\x18\xa5\xec\x03 \x01(\x08:7\n\x0f\x64\x65scription_all\x12\x1c.google.protobuf.FileOptions\x18\xa6\xec\x03 \x01(\x08:3\n\x0btestgen_all\x12\x1c.google.protobuf.FileOptions\x18\xa7\xec\x03 \x01(\x08:4\n\x0c\x62\x65nchgen_all\x12\x1c.google.protobuf.FileOptions\x18\xa8\xec\x03 \x01(\x08:5\n\rmarshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xa9\xec\x03 \x01(\x08:7\n\x0funmarshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xaa\xec\x03 \x01(\x08:<\n\x14stable_marshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xab\xec\x03 \x01(\x08:1\n\tsizer_all\x12\x1c.google.protobuf.FileOptions\x18\xac\xec\x03 \x01(\x08:A\n\x19goproto_enum_stringer_all\x12\x1c.google.protobuf.FileOptions\x18\xad\xec\x03 \x01(\x08:9\n\x11\x65num_stringer_all\x12\x1c.google.protobuf.FileOptions\x18\xae\xec\x03 \x01(\x08:<\n\x14unsafe_marshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xaf\xec\x03 \x01(\x08:>\n\x16unsafe_unmarshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xb0\xec\x03 \x01(\x08:B\n\x1agoproto_extensions_map_all\x12\x1c.google.protobuf.FileOptions\x18\xb1\xec\x03 \x01(\x08:@\n\x18goproto_unrecognized_all\x12\x1c.google.protobuf.FileOptions\x18\xb2\xec\x03 \x01(\x08:8\n\x10gogoproto_import\x12\x1c.google.protobuf.FileOptions\x18\xb3\xec\x03 \x01(\x08:6\n\x0eprotosizer_all\x12\x1c.google.protobuf.FileOptions\x18\xb4\xec\x03 \x01(\x08:3\n\x0b\x63ompare_all\x12\x1c.google.protobuf.FileOptions\x18\xb5\xec\x03 \x01(\x08:4\n\x0ctypedecl_all\x12\x1c.google.protobuf.FileOptions\x18\xb6\xec\x03 \x01(\x08:4\n\x0c\x65numdecl_all\x12\x1c.google.protobuf.FileOptions\x18\xb7\xec\x03 \x01(\x08:<\n\x14goproto_registration\x12\x1c.google.protobuf.FileOptions\x18\xb8\xec\x03 \x01(\x08:7\n\x0fmessagename_all\x12\x1c.google.protobuf.FileOptions\x18\xb9\xec\x03 \x01(\x08:=\n\x15goproto_sizecache_all\x12\x1c.google.protobuf.FileOptions\x18\xba\xec\x03 \x01(\x08:;\n\x13goproto_unkeyed_all\x12\x1c.google.protobuf.FileOptions\x18\xbb\xec\x03 \x01(\x08::\n\x0fgoproto_getters\x12\x1f.google.protobuf.MessageOptions\x18\x81\xf4\x03 \x01(\x08:;\n\x10goproto_stringer\x12\x1f.google.protobuf.MessageOptions\x18\x83\xf4\x03 \x01(\x08:8\n\rverbose_equal\x12\x1f.google.protobuf.MessageOptions\x18\x84\xf4\x03 \x01(\x08:/\n\x04\x66\x61\x63\x65\x12\x1f.google.protobuf.MessageOptions\x18\x85\xf4\x03 \x01(\x08:3\n\x08gostring\x12\x1f.google.protobuf.MessageOptions\x18\x86\xf4\x03 \x01(\x08:3\n\x08populate\x12\x1f.google.protobuf.MessageOptions\x18\x87\xf4\x03 \x01(\x08:3\n\x08stringer\x12\x1f.google.protobuf.MessageOptions\x18\xc0\x8b\x04 \x01(\x08:2\n\x07onlyone\x12\x1f.google.protobuf.MessageOptions\x18\x89\xf4\x03 \x01(\x08:0\n\x05\x65qual\x12\x1f.google.protobuf.MessageOptions\x18\x8d\xf4\x03 \x01(\x08:6\n\x0b\x64\x65scription\x12\x1f.google.protobuf.MessageOptions\x18\x8e\xf4\x03 \x01(\x08:2\n\x07testgen\x12\x1f.google.protobuf.MessageOptions\x18\x8f\xf4\x03 \x01(\x08:3\n\x08\x62\x65nchgen\x12\x1f.google.protobuf.MessageOptions\x18\x90\xf4\x03 \x01(\x08:4\n\tmarshaler\x12\x1f.google.protobuf.MessageOptions\x18\x91\xf4\x03 \x01(\x08:6\n\x0bunmarshaler\x12\x1f.google.protobuf.MessageOptions\x18\x92\xf4\x03 \x01(\x08:;\n\x10stable_marshaler\x12\x1f.google.protobuf.MessageOptions\x18\x93\xf4\x03 \x01(\x08:0\n\x05sizer\x12\x1f.google.protobuf.MessageOptions\x18\x94\xf4\x03 \x01(\x08:;\n\x10unsafe_marshaler\x12\x1f.google.protobuf.MessageOptions\x18\x97\xf4\x03 \x01(\x08:=\n\x12unsafe_unmarshaler\x12\x1f.google.protobuf.MessageOptions\x18\x98\xf4\x03 \x01(\x08:A\n\x16goproto_extensions_map\x12\x1f.google.protobuf.MessageOptions\x18\x99\xf4\x03 \x01(\x08:?\n\x14goproto_unrecognized\x12\x1f.google.protobuf.MessageOptions\x18\x9a\xf4\x03 \x01(\x08:5\n\nprotosizer\x12\x1f.google.protobuf.MessageOptions\x18\x9c\xf4\x03 \x01(\x08:2\n\x07\x63ompare\x12\x1f.google.protobuf.MessageOptions\x18\x9d\xf4\x03 \x01(\x08:3\n\x08typedecl\x12\x1f.google.protobuf.MessageOptions\x18\x9e\xf4\x03 \x01(\x08:6\n\x0bmessagename\x12\x1f.google.protobuf.MessageOptions\x18\xa1\xf4\x03 \x01(\x08:<\n\x11goproto_sizecache\x12\x1f.google.protobuf.MessageOptions\x18\xa2\xf4\x03 \x01(\x08::\n\x0fgoproto_unkeyed\x12\x1f.google.protobuf.MessageOptions\x18\xa3\xf4\x03 \x01(\x08:1\n\x08nullable\x12\x1d.google.protobuf.FieldOptions\x18\xe9\xfb\x03 \x01(\x08:.\n\x05\x65mbed\x12\x1d.google.protobuf.FieldOptions\x18\xea\xfb\x03 \x01(\x08:3\n\ncustomtype\x12\x1d.google.protobuf.FieldOptions\x18\xeb\xfb\x03 \x01(\t:3\n\ncustomname\x12\x1d.google.protobuf.FieldOptions\x18\xec\xfb\x03 \x01(\t:0\n\x07jsontag\x12\x1d.google.protobuf.FieldOptions\x18\xed\xfb\x03 \x01(\t:1\n\x08moretags\x12\x1d.google.protobuf.FieldOptions\x18\xee\xfb\x03 \x01(\t:1\n\x08\x63\x61sttype\x12\x1d.google.protobuf.FieldOptions\x18\xef\xfb\x03 \x01(\t:0\n\x07\x63\x61stkey\x12\x1d.google.protobuf.FieldOptions\x18\xf0\xfb\x03 \x01(\t:2\n\tcastvalue\x12\x1d.google.protobuf.FieldOptions\x18\xf1\xfb\x03 \x01(\t:0\n\x07stdtime\x12\x1d.google.protobuf.FieldOptions\x18\xf2\xfb\x03 \x01(\x08:4\n\x0bstdduration\x12\x1d.google.protobuf.FieldOptions\x18\xf3\xfb\x03 \x01(\x08:3\n\nwktpointer\x12\x1d.google.protobuf.FieldOptions\x18\xf4\xfb\x03 \x01(\x08\x42\x45\n\x13\x63om.google.protobufB\nGoGoProtosZ\"github.com/gogo/protobuf/gogoproto')
- ,
- dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,])
-
-
-GOPROTO_ENUM_PREFIX_FIELD_NUMBER = 62001
-goproto_enum_prefix = _descriptor.FieldDescriptor(
- name='goproto_enum_prefix', full_name='gogoproto.goproto_enum_prefix', index=0,
- number=62001, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_ENUM_STRINGER_FIELD_NUMBER = 62021
-goproto_enum_stringer = _descriptor.FieldDescriptor(
- name='goproto_enum_stringer', full_name='gogoproto.goproto_enum_stringer', index=1,
- number=62021, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ENUM_STRINGER_FIELD_NUMBER = 62022
-enum_stringer = _descriptor.FieldDescriptor(
- name='enum_stringer', full_name='gogoproto.enum_stringer', index=2,
- number=62022, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ENUM_CUSTOMNAME_FIELD_NUMBER = 62023
-enum_customname = _descriptor.FieldDescriptor(
- name='enum_customname', full_name='gogoproto.enum_customname', index=3,
- number=62023, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ENUMDECL_FIELD_NUMBER = 62024
-enumdecl = _descriptor.FieldDescriptor(
- name='enumdecl', full_name='gogoproto.enumdecl', index=4,
- number=62024, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ENUMVALUE_CUSTOMNAME_FIELD_NUMBER = 66001
-enumvalue_customname = _descriptor.FieldDescriptor(
- name='enumvalue_customname', full_name='gogoproto.enumvalue_customname', index=5,
- number=66001, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_GETTERS_ALL_FIELD_NUMBER = 63001
-goproto_getters_all = _descriptor.FieldDescriptor(
- name='goproto_getters_all', full_name='gogoproto.goproto_getters_all', index=6,
- number=63001, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_ENUM_PREFIX_ALL_FIELD_NUMBER = 63002
-goproto_enum_prefix_all = _descriptor.FieldDescriptor(
- name='goproto_enum_prefix_all', full_name='gogoproto.goproto_enum_prefix_all', index=7,
- number=63002, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_STRINGER_ALL_FIELD_NUMBER = 63003
-goproto_stringer_all = _descriptor.FieldDescriptor(
- name='goproto_stringer_all', full_name='gogoproto.goproto_stringer_all', index=8,
- number=63003, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-VERBOSE_EQUAL_ALL_FIELD_NUMBER = 63004
-verbose_equal_all = _descriptor.FieldDescriptor(
- name='verbose_equal_all', full_name='gogoproto.verbose_equal_all', index=9,
- number=63004, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-FACE_ALL_FIELD_NUMBER = 63005
-face_all = _descriptor.FieldDescriptor(
- name='face_all', full_name='gogoproto.face_all', index=10,
- number=63005, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOSTRING_ALL_FIELD_NUMBER = 63006
-gostring_all = _descriptor.FieldDescriptor(
- name='gostring_all', full_name='gogoproto.gostring_all', index=11,
- number=63006, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-POPULATE_ALL_FIELD_NUMBER = 63007
-populate_all = _descriptor.FieldDescriptor(
- name='populate_all', full_name='gogoproto.populate_all', index=12,
- number=63007, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-STRINGER_ALL_FIELD_NUMBER = 63008
-stringer_all = _descriptor.FieldDescriptor(
- name='stringer_all', full_name='gogoproto.stringer_all', index=13,
- number=63008, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ONLYONE_ALL_FIELD_NUMBER = 63009
-onlyone_all = _descriptor.FieldDescriptor(
- name='onlyone_all', full_name='gogoproto.onlyone_all', index=14,
- number=63009, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-EQUAL_ALL_FIELD_NUMBER = 63013
-equal_all = _descriptor.FieldDescriptor(
- name='equal_all', full_name='gogoproto.equal_all', index=15,
- number=63013, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-DESCRIPTION_ALL_FIELD_NUMBER = 63014
-description_all = _descriptor.FieldDescriptor(
- name='description_all', full_name='gogoproto.description_all', index=16,
- number=63014, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-TESTGEN_ALL_FIELD_NUMBER = 63015
-testgen_all = _descriptor.FieldDescriptor(
- name='testgen_all', full_name='gogoproto.testgen_all', index=17,
- number=63015, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-BENCHGEN_ALL_FIELD_NUMBER = 63016
-benchgen_all = _descriptor.FieldDescriptor(
- name='benchgen_all', full_name='gogoproto.benchgen_all', index=18,
- number=63016, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-MARSHALER_ALL_FIELD_NUMBER = 63017
-marshaler_all = _descriptor.FieldDescriptor(
- name='marshaler_all', full_name='gogoproto.marshaler_all', index=19,
- number=63017, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-UNMARSHALER_ALL_FIELD_NUMBER = 63018
-unmarshaler_all = _descriptor.FieldDescriptor(
- name='unmarshaler_all', full_name='gogoproto.unmarshaler_all', index=20,
- number=63018, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-STABLE_MARSHALER_ALL_FIELD_NUMBER = 63019
-stable_marshaler_all = _descriptor.FieldDescriptor(
- name='stable_marshaler_all', full_name='gogoproto.stable_marshaler_all', index=21,
- number=63019, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-SIZER_ALL_FIELD_NUMBER = 63020
-sizer_all = _descriptor.FieldDescriptor(
- name='sizer_all', full_name='gogoproto.sizer_all', index=22,
- number=63020, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_ENUM_STRINGER_ALL_FIELD_NUMBER = 63021
-goproto_enum_stringer_all = _descriptor.FieldDescriptor(
- name='goproto_enum_stringer_all', full_name='gogoproto.goproto_enum_stringer_all', index=23,
- number=63021, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ENUM_STRINGER_ALL_FIELD_NUMBER = 63022
-enum_stringer_all = _descriptor.FieldDescriptor(
- name='enum_stringer_all', full_name='gogoproto.enum_stringer_all', index=24,
- number=63022, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-UNSAFE_MARSHALER_ALL_FIELD_NUMBER = 63023
-unsafe_marshaler_all = _descriptor.FieldDescriptor(
- name='unsafe_marshaler_all', full_name='gogoproto.unsafe_marshaler_all', index=25,
- number=63023, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-UNSAFE_UNMARSHALER_ALL_FIELD_NUMBER = 63024
-unsafe_unmarshaler_all = _descriptor.FieldDescriptor(
- name='unsafe_unmarshaler_all', full_name='gogoproto.unsafe_unmarshaler_all', index=26,
- number=63024, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_EXTENSIONS_MAP_ALL_FIELD_NUMBER = 63025
-goproto_extensions_map_all = _descriptor.FieldDescriptor(
- name='goproto_extensions_map_all', full_name='gogoproto.goproto_extensions_map_all', index=27,
- number=63025, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_UNRECOGNIZED_ALL_FIELD_NUMBER = 63026
-goproto_unrecognized_all = _descriptor.FieldDescriptor(
- name='goproto_unrecognized_all', full_name='gogoproto.goproto_unrecognized_all', index=28,
- number=63026, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOGOPROTO_IMPORT_FIELD_NUMBER = 63027
-gogoproto_import = _descriptor.FieldDescriptor(
- name='gogoproto_import', full_name='gogoproto.gogoproto_import', index=29,
- number=63027, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-PROTOSIZER_ALL_FIELD_NUMBER = 63028
-protosizer_all = _descriptor.FieldDescriptor(
- name='protosizer_all', full_name='gogoproto.protosizer_all', index=30,
- number=63028, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-COMPARE_ALL_FIELD_NUMBER = 63029
-compare_all = _descriptor.FieldDescriptor(
- name='compare_all', full_name='gogoproto.compare_all', index=31,
- number=63029, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-TYPEDECL_ALL_FIELD_NUMBER = 63030
-typedecl_all = _descriptor.FieldDescriptor(
- name='typedecl_all', full_name='gogoproto.typedecl_all', index=32,
- number=63030, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ENUMDECL_ALL_FIELD_NUMBER = 63031
-enumdecl_all = _descriptor.FieldDescriptor(
- name='enumdecl_all', full_name='gogoproto.enumdecl_all', index=33,
- number=63031, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_REGISTRATION_FIELD_NUMBER = 63032
-goproto_registration = _descriptor.FieldDescriptor(
- name='goproto_registration', full_name='gogoproto.goproto_registration', index=34,
- number=63032, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-MESSAGENAME_ALL_FIELD_NUMBER = 63033
-messagename_all = _descriptor.FieldDescriptor(
- name='messagename_all', full_name='gogoproto.messagename_all', index=35,
- number=63033, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_SIZECACHE_ALL_FIELD_NUMBER = 63034
-goproto_sizecache_all = _descriptor.FieldDescriptor(
- name='goproto_sizecache_all', full_name='gogoproto.goproto_sizecache_all', index=36,
- number=63034, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_UNKEYED_ALL_FIELD_NUMBER = 63035
-goproto_unkeyed_all = _descriptor.FieldDescriptor(
- name='goproto_unkeyed_all', full_name='gogoproto.goproto_unkeyed_all', index=37,
- number=63035, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_GETTERS_FIELD_NUMBER = 64001
-goproto_getters = _descriptor.FieldDescriptor(
- name='goproto_getters', full_name='gogoproto.goproto_getters', index=38,
- number=64001, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_STRINGER_FIELD_NUMBER = 64003
-goproto_stringer = _descriptor.FieldDescriptor(
- name='goproto_stringer', full_name='gogoproto.goproto_stringer', index=39,
- number=64003, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-VERBOSE_EQUAL_FIELD_NUMBER = 64004
-verbose_equal = _descriptor.FieldDescriptor(
- name='verbose_equal', full_name='gogoproto.verbose_equal', index=40,
- number=64004, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-FACE_FIELD_NUMBER = 64005
-face = _descriptor.FieldDescriptor(
- name='face', full_name='gogoproto.face', index=41,
- number=64005, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOSTRING_FIELD_NUMBER = 64006
-gostring = _descriptor.FieldDescriptor(
- name='gostring', full_name='gogoproto.gostring', index=42,
- number=64006, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-POPULATE_FIELD_NUMBER = 64007
-populate = _descriptor.FieldDescriptor(
- name='populate', full_name='gogoproto.populate', index=43,
- number=64007, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-STRINGER_FIELD_NUMBER = 67008
-stringer = _descriptor.FieldDescriptor(
- name='stringer', full_name='gogoproto.stringer', index=44,
- number=67008, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-ONLYONE_FIELD_NUMBER = 64009
-onlyone = _descriptor.FieldDescriptor(
- name='onlyone', full_name='gogoproto.onlyone', index=45,
- number=64009, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-EQUAL_FIELD_NUMBER = 64013
-equal = _descriptor.FieldDescriptor(
- name='equal', full_name='gogoproto.equal', index=46,
- number=64013, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-DESCRIPTION_FIELD_NUMBER = 64014
-description = _descriptor.FieldDescriptor(
- name='description', full_name='gogoproto.description', index=47,
- number=64014, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-TESTGEN_FIELD_NUMBER = 64015
-testgen = _descriptor.FieldDescriptor(
- name='testgen', full_name='gogoproto.testgen', index=48,
- number=64015, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-BENCHGEN_FIELD_NUMBER = 64016
-benchgen = _descriptor.FieldDescriptor(
- name='benchgen', full_name='gogoproto.benchgen', index=49,
- number=64016, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-MARSHALER_FIELD_NUMBER = 64017
-marshaler = _descriptor.FieldDescriptor(
- name='marshaler', full_name='gogoproto.marshaler', index=50,
- number=64017, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-UNMARSHALER_FIELD_NUMBER = 64018
-unmarshaler = _descriptor.FieldDescriptor(
- name='unmarshaler', full_name='gogoproto.unmarshaler', index=51,
- number=64018, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-STABLE_MARSHALER_FIELD_NUMBER = 64019
-stable_marshaler = _descriptor.FieldDescriptor(
- name='stable_marshaler', full_name='gogoproto.stable_marshaler', index=52,
- number=64019, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-SIZER_FIELD_NUMBER = 64020
-sizer = _descriptor.FieldDescriptor(
- name='sizer', full_name='gogoproto.sizer', index=53,
- number=64020, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-UNSAFE_MARSHALER_FIELD_NUMBER = 64023
-unsafe_marshaler = _descriptor.FieldDescriptor(
- name='unsafe_marshaler', full_name='gogoproto.unsafe_marshaler', index=54,
- number=64023, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-UNSAFE_UNMARSHALER_FIELD_NUMBER = 64024
-unsafe_unmarshaler = _descriptor.FieldDescriptor(
- name='unsafe_unmarshaler', full_name='gogoproto.unsafe_unmarshaler', index=55,
- number=64024, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_EXTENSIONS_MAP_FIELD_NUMBER = 64025
-goproto_extensions_map = _descriptor.FieldDescriptor(
- name='goproto_extensions_map', full_name='gogoproto.goproto_extensions_map', index=56,
- number=64025, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_UNRECOGNIZED_FIELD_NUMBER = 64026
-goproto_unrecognized = _descriptor.FieldDescriptor(
- name='goproto_unrecognized', full_name='gogoproto.goproto_unrecognized', index=57,
- number=64026, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-PROTOSIZER_FIELD_NUMBER = 64028
-protosizer = _descriptor.FieldDescriptor(
- name='protosizer', full_name='gogoproto.protosizer', index=58,
- number=64028, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-COMPARE_FIELD_NUMBER = 64029
-compare = _descriptor.FieldDescriptor(
- name='compare', full_name='gogoproto.compare', index=59,
- number=64029, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-TYPEDECL_FIELD_NUMBER = 64030
-typedecl = _descriptor.FieldDescriptor(
- name='typedecl', full_name='gogoproto.typedecl', index=60,
- number=64030, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-MESSAGENAME_FIELD_NUMBER = 64033
-messagename = _descriptor.FieldDescriptor(
- name='messagename', full_name='gogoproto.messagename', index=61,
- number=64033, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_SIZECACHE_FIELD_NUMBER = 64034
-goproto_sizecache = _descriptor.FieldDescriptor(
- name='goproto_sizecache', full_name='gogoproto.goproto_sizecache', index=62,
- number=64034, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-GOPROTO_UNKEYED_FIELD_NUMBER = 64035
-goproto_unkeyed = _descriptor.FieldDescriptor(
- name='goproto_unkeyed', full_name='gogoproto.goproto_unkeyed', index=63,
- number=64035, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-NULLABLE_FIELD_NUMBER = 65001
-nullable = _descriptor.FieldDescriptor(
- name='nullable', full_name='gogoproto.nullable', index=64,
- number=65001, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-EMBED_FIELD_NUMBER = 65002
-embed = _descriptor.FieldDescriptor(
- name='embed', full_name='gogoproto.embed', index=65,
- number=65002, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-CUSTOMTYPE_FIELD_NUMBER = 65003
-customtype = _descriptor.FieldDescriptor(
- name='customtype', full_name='gogoproto.customtype', index=66,
- number=65003, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-CUSTOMNAME_FIELD_NUMBER = 65004
-customname = _descriptor.FieldDescriptor(
- name='customname', full_name='gogoproto.customname', index=67,
- number=65004, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-JSONTAG_FIELD_NUMBER = 65005
-jsontag = _descriptor.FieldDescriptor(
- name='jsontag', full_name='gogoproto.jsontag', index=68,
- number=65005, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-MORETAGS_FIELD_NUMBER = 65006
-moretags = _descriptor.FieldDescriptor(
- name='moretags', full_name='gogoproto.moretags', index=69,
- number=65006, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-CASTTYPE_FIELD_NUMBER = 65007
-casttype = _descriptor.FieldDescriptor(
- name='casttype', full_name='gogoproto.casttype', index=70,
- number=65007, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-CASTKEY_FIELD_NUMBER = 65008
-castkey = _descriptor.FieldDescriptor(
- name='castkey', full_name='gogoproto.castkey', index=71,
- number=65008, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-CASTVALUE_FIELD_NUMBER = 65009
-castvalue = _descriptor.FieldDescriptor(
- name='castvalue', full_name='gogoproto.castvalue', index=72,
- number=65009, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-STDTIME_FIELD_NUMBER = 65010
-stdtime = _descriptor.FieldDescriptor(
- name='stdtime', full_name='gogoproto.stdtime', index=73,
- number=65010, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-STDDURATION_FIELD_NUMBER = 65011
-stdduration = _descriptor.FieldDescriptor(
- name='stdduration', full_name='gogoproto.stdduration', index=74,
- number=65011, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-WKTPOINTER_FIELD_NUMBER = 65012
-wktpointer = _descriptor.FieldDescriptor(
- name='wktpointer', full_name='gogoproto.wktpointer', index=75,
- number=65012, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-
-DESCRIPTOR.extensions_by_name['goproto_enum_prefix'] = goproto_enum_prefix
-DESCRIPTOR.extensions_by_name['goproto_enum_stringer'] = goproto_enum_stringer
-DESCRIPTOR.extensions_by_name['enum_stringer'] = enum_stringer
-DESCRIPTOR.extensions_by_name['enum_customname'] = enum_customname
-DESCRIPTOR.extensions_by_name['enumdecl'] = enumdecl
-DESCRIPTOR.extensions_by_name['enumvalue_customname'] = enumvalue_customname
-DESCRIPTOR.extensions_by_name['goproto_getters_all'] = goproto_getters_all
-DESCRIPTOR.extensions_by_name['goproto_enum_prefix_all'] = goproto_enum_prefix_all
-DESCRIPTOR.extensions_by_name['goproto_stringer_all'] = goproto_stringer_all
-DESCRIPTOR.extensions_by_name['verbose_equal_all'] = verbose_equal_all
-DESCRIPTOR.extensions_by_name['face_all'] = face_all
-DESCRIPTOR.extensions_by_name['gostring_all'] = gostring_all
-DESCRIPTOR.extensions_by_name['populate_all'] = populate_all
-DESCRIPTOR.extensions_by_name['stringer_all'] = stringer_all
-DESCRIPTOR.extensions_by_name['onlyone_all'] = onlyone_all
-DESCRIPTOR.extensions_by_name['equal_all'] = equal_all
-DESCRIPTOR.extensions_by_name['description_all'] = description_all
-DESCRIPTOR.extensions_by_name['testgen_all'] = testgen_all
-DESCRIPTOR.extensions_by_name['benchgen_all'] = benchgen_all
-DESCRIPTOR.extensions_by_name['marshaler_all'] = marshaler_all
-DESCRIPTOR.extensions_by_name['unmarshaler_all'] = unmarshaler_all
-DESCRIPTOR.extensions_by_name['stable_marshaler_all'] = stable_marshaler_all
-DESCRIPTOR.extensions_by_name['sizer_all'] = sizer_all
-DESCRIPTOR.extensions_by_name['goproto_enum_stringer_all'] = goproto_enum_stringer_all
-DESCRIPTOR.extensions_by_name['enum_stringer_all'] = enum_stringer_all
-DESCRIPTOR.extensions_by_name['unsafe_marshaler_all'] = unsafe_marshaler_all
-DESCRIPTOR.extensions_by_name['unsafe_unmarshaler_all'] = unsafe_unmarshaler_all
-DESCRIPTOR.extensions_by_name['goproto_extensions_map_all'] = goproto_extensions_map_all
-DESCRIPTOR.extensions_by_name['goproto_unrecognized_all'] = goproto_unrecognized_all
-DESCRIPTOR.extensions_by_name['gogoproto_import'] = gogoproto_import
-DESCRIPTOR.extensions_by_name['protosizer_all'] = protosizer_all
-DESCRIPTOR.extensions_by_name['compare_all'] = compare_all
-DESCRIPTOR.extensions_by_name['typedecl_all'] = typedecl_all
-DESCRIPTOR.extensions_by_name['enumdecl_all'] = enumdecl_all
-DESCRIPTOR.extensions_by_name['goproto_registration'] = goproto_registration
-DESCRIPTOR.extensions_by_name['messagename_all'] = messagename_all
-DESCRIPTOR.extensions_by_name['goproto_sizecache_all'] = goproto_sizecache_all
-DESCRIPTOR.extensions_by_name['goproto_unkeyed_all'] = goproto_unkeyed_all
-DESCRIPTOR.extensions_by_name['goproto_getters'] = goproto_getters
-DESCRIPTOR.extensions_by_name['goproto_stringer'] = goproto_stringer
-DESCRIPTOR.extensions_by_name['verbose_equal'] = verbose_equal
-DESCRIPTOR.extensions_by_name['face'] = face
-DESCRIPTOR.extensions_by_name['gostring'] = gostring
-DESCRIPTOR.extensions_by_name['populate'] = populate
-DESCRIPTOR.extensions_by_name['stringer'] = stringer
-DESCRIPTOR.extensions_by_name['onlyone'] = onlyone
-DESCRIPTOR.extensions_by_name['equal'] = equal
-DESCRIPTOR.extensions_by_name['description'] = description
-DESCRIPTOR.extensions_by_name['testgen'] = testgen
-DESCRIPTOR.extensions_by_name['benchgen'] = benchgen
-DESCRIPTOR.extensions_by_name['marshaler'] = marshaler
-DESCRIPTOR.extensions_by_name['unmarshaler'] = unmarshaler
-DESCRIPTOR.extensions_by_name['stable_marshaler'] = stable_marshaler
-DESCRIPTOR.extensions_by_name['sizer'] = sizer
-DESCRIPTOR.extensions_by_name['unsafe_marshaler'] = unsafe_marshaler
-DESCRIPTOR.extensions_by_name['unsafe_unmarshaler'] = unsafe_unmarshaler
-DESCRIPTOR.extensions_by_name['goproto_extensions_map'] = goproto_extensions_map
-DESCRIPTOR.extensions_by_name['goproto_unrecognized'] = goproto_unrecognized
-DESCRIPTOR.extensions_by_name['protosizer'] = protosizer
-DESCRIPTOR.extensions_by_name['compare'] = compare
-DESCRIPTOR.extensions_by_name['typedecl'] = typedecl
-DESCRIPTOR.extensions_by_name['messagename'] = messagename
-DESCRIPTOR.extensions_by_name['goproto_sizecache'] = goproto_sizecache
-DESCRIPTOR.extensions_by_name['goproto_unkeyed'] = goproto_unkeyed
-DESCRIPTOR.extensions_by_name['nullable'] = nullable
-DESCRIPTOR.extensions_by_name['embed'] = embed
-DESCRIPTOR.extensions_by_name['customtype'] = customtype
-DESCRIPTOR.extensions_by_name['customname'] = customname
-DESCRIPTOR.extensions_by_name['jsontag'] = jsontag
-DESCRIPTOR.extensions_by_name['moretags'] = moretags
-DESCRIPTOR.extensions_by_name['casttype'] = casttype
-DESCRIPTOR.extensions_by_name['castkey'] = castkey
-DESCRIPTOR.extensions_by_name['castvalue'] = castvalue
-DESCRIPTOR.extensions_by_name['stdtime'] = stdtime
-DESCRIPTOR.extensions_by_name['stdduration'] = stdduration
-DESCRIPTOR.extensions_by_name['wktpointer'] = wktpointer
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(goproto_enum_prefix)
-google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(goproto_enum_stringer)
-google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(enum_stringer)
-google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(enum_customname)
-google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(enumdecl)
-google_dot_protobuf_dot_descriptor__pb2.EnumValueOptions.RegisterExtension(enumvalue_customname)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_getters_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_enum_prefix_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_stringer_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(verbose_equal_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(face_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gostring_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(populate_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(stringer_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(onlyone_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(equal_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(description_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(testgen_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(benchgen_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(marshaler_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(unmarshaler_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(stable_marshaler_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(sizer_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_enum_stringer_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(enum_stringer_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(unsafe_marshaler_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(unsafe_unmarshaler_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_extensions_map_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_unrecognized_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gogoproto_import)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(protosizer_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(compare_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(typedecl_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(enumdecl_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_registration)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(messagename_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_sizecache_all)
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_unkeyed_all)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_getters)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_stringer)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(verbose_equal)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(face)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(gostring)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(populate)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(stringer)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(onlyone)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(equal)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(description)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(testgen)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(benchgen)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(marshaler)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(unmarshaler)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(stable_marshaler)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(sizer)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(unsafe_marshaler)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(unsafe_unmarshaler)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_extensions_map)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_unrecognized)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(protosizer)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(compare)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(typedecl)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(messagename)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_sizecache)
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_unkeyed)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(nullable)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(embed)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(customtype)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(customname)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(jsontag)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(moretags)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(casttype)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(castkey)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(castvalue)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(stdtime)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(stdduration)
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(wktpointer)
-
-DESCRIPTOR._options = None
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/google/api/annotations_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/google/api/annotations_pb2.py
deleted file mode 100644
index e72a7f8b743..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/google/api/annotations_pb2.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: google/api/annotations.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from google.api import http_pb2 as google_dot_api_dot_http__pb2
-from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='google/api/annotations.proto',
- package='google.api',
- syntax='proto3',
- serialized_options=_b('\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI'),
- serialized_pb=_b('\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3')
- ,
- dependencies=[google_dot_api_dot_http__pb2.DESCRIPTOR,google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,])
-
-
-HTTP_FIELD_NUMBER = 72295728
-http = _descriptor.FieldDescriptor(
- name='http', full_name='google.api.http', index=0,
- number=72295728, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-
-DESCRIPTOR.extensions_by_name['http'] = http
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-http.message_type = google_dot_api_dot_http__pb2._HTTPRULE
-google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http)
-
-DESCRIPTOR._options = None
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/google/api/http_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/google/api/http_pb2.py
deleted file mode 100644
index 01352aca81b..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/google/api/http_pb2.py
+++ /dev/null
@@ -1,250 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: google/api/http.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='google/api/http.proto',
- package='google.api',
- syntax='proto3',
- serialized_options=_b('\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\370\001\001\242\002\004GAPI'),
- serialized_pb=_b('\n\x15google/api/http.proto\x12\ngoogle.api\"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern\"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3')
-)
-
-
-
-
-_HTTP = _descriptor.Descriptor(
- name='Http',
- full_name='google.api.Http',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='rules', full_name='google.api.Http.rules', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='fully_decode_reserved_expansion', full_name='google.api.Http.fully_decode_reserved_expansion', index=1,
- number=2, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=37,
- serialized_end=121,
-)
-
-
-_HTTPRULE = _descriptor.Descriptor(
- name='HttpRule',
- full_name='google.api.HttpRule',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='selector', full_name='google.api.HttpRule.selector', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='get', full_name='google.api.HttpRule.get', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='put', full_name='google.api.HttpRule.put', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='post', full_name='google.api.HttpRule.post', index=3,
- number=4, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='delete', full_name='google.api.HttpRule.delete', index=4,
- number=5, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='patch', full_name='google.api.HttpRule.patch', index=5,
- number=6, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='custom', full_name='google.api.HttpRule.custom', index=6,
- number=8, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='body', full_name='google.api.HttpRule.body', index=7,
- number=7, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='response_body', full_name='google.api.HttpRule.response_body', index=8,
- number=12, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='additional_bindings', full_name='google.api.HttpRule.additional_bindings', index=9,
- number=11, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- _descriptor.OneofDescriptor(
- name='pattern', full_name='google.api.HttpRule.pattern',
- index=0, containing_type=None, fields=[]),
- ],
- serialized_start=124,
- serialized_end=381,
-)
-
-
-_CUSTOMHTTPPATTERN = _descriptor.Descriptor(
- name='CustomHttpPattern',
- full_name='google.api.CustomHttpPattern',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='kind', full_name='google.api.CustomHttpPattern.kind', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='path', full_name='google.api.CustomHttpPattern.path', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=383,
- serialized_end=430,
-)
-
-_HTTP.fields_by_name['rules'].message_type = _HTTPRULE
-_HTTPRULE.fields_by_name['custom'].message_type = _CUSTOMHTTPPATTERN
-_HTTPRULE.fields_by_name['additional_bindings'].message_type = _HTTPRULE
-_HTTPRULE.oneofs_by_name['pattern'].fields.append(
- _HTTPRULE.fields_by_name['get'])
-_HTTPRULE.fields_by_name['get'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern']
-_HTTPRULE.oneofs_by_name['pattern'].fields.append(
- _HTTPRULE.fields_by_name['put'])
-_HTTPRULE.fields_by_name['put'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern']
-_HTTPRULE.oneofs_by_name['pattern'].fields.append(
- _HTTPRULE.fields_by_name['post'])
-_HTTPRULE.fields_by_name['post'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern']
-_HTTPRULE.oneofs_by_name['pattern'].fields.append(
- _HTTPRULE.fields_by_name['delete'])
-_HTTPRULE.fields_by_name['delete'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern']
-_HTTPRULE.oneofs_by_name['pattern'].fields.append(
- _HTTPRULE.fields_by_name['patch'])
-_HTTPRULE.fields_by_name['patch'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern']
-_HTTPRULE.oneofs_by_name['pattern'].fields.append(
- _HTTPRULE.fields_by_name['custom'])
-_HTTPRULE.fields_by_name['custom'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern']
-DESCRIPTOR.message_types_by_name['Http'] = _HTTP
-DESCRIPTOR.message_types_by_name['HttpRule'] = _HTTPRULE
-DESCRIPTOR.message_types_by_name['CustomHttpPattern'] = _CUSTOMHTTPPATTERN
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-Http = _reflection.GeneratedProtocolMessageType('Http', (_message.Message,), {
- 'DESCRIPTOR' : _HTTP,
- '__module__' : 'google.api.http_pb2'
- # @@protoc_insertion_point(class_scope:google.api.Http)
- })
-_sym_db.RegisterMessage(Http)
-
-HttpRule = _reflection.GeneratedProtocolMessageType('HttpRule', (_message.Message,), {
- 'DESCRIPTOR' : _HTTPRULE,
- '__module__' : 'google.api.http_pb2'
- # @@protoc_insertion_point(class_scope:google.api.HttpRule)
- })
-_sym_db.RegisterMessage(HttpRule)
-
-CustomHttpPattern = _reflection.GeneratedProtocolMessageType('CustomHttpPattern', (_message.Message,), {
- 'DESCRIPTOR' : _CUSTOMHTTPPATTERN,
- '__module__' : 'google.api.http_pb2'
- # @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
- })
-_sym_db.RegisterMessage(CustomHttpPattern)
-
-
-DESCRIPTOR._options = None
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/model_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/model_pb2.py
deleted file mode 100644
index 8abc302a626..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/model_pb2.py
+++ /dev/null
@@ -1,686 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: model.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf.internal import enum_type_wrapper
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
-from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
-from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='model.proto',
- package='jaeger.api_v2',
- syntax='proto3',
- serialized_options=_b('\n\027io.jaegertracing.api_v2Z\005model\310\342\036\001\320\342\036\001\340\342\036\001\300\343\036\001'),
- serialized_pb=_b('\n\x0bmodel.proto\x12\rjaeger.api_v2\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"\xa0\x01\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x06v_type\x18\x02 \x01(\x0e\x32\x18.jaeger.api_v2.ValueType\x12\r\n\x05v_str\x18\x03 \x01(\t\x12\x0e\n\x06v_bool\x18\x04 \x01(\x08\x12\x0f\n\x07v_int64\x18\x05 \x01(\x03\x12\x11\n\tv_float64\x18\x06 \x01(\x01\x12\x10\n\x08v_binary\x18\x07 \x01(\x0c:\x08\xe8\xa0\x1f\x01\xe8\xa1\x1f\x01\"m\n\x03Log\x12\x37\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\x90\xdf\x1f\x01\xc8\xde\x1f\x00\x12-\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x17.jaeger.api_v2.KeyValueB\x04\xc8\xde\x1f\x00\"\x90\x01\n\x07SpanRef\x12,\n\x08trace_id\x18\x01 \x01(\x0c\x42\x1a\xc8\xde\x1f\x00\xda\xde\x1f\x07TraceID\xe2\xde\x1f\x07TraceID\x12)\n\x07span_id\x18\x02 \x01(\x0c\x42\x18\xc8\xde\x1f\x00\xda\xde\x1f\x06SpanID\xe2\xde\x1f\x06SpanID\x12,\n\x08ref_type\x18\x03 \x01(\x0e\x32\x1a.jaeger.api_v2.SpanRefType\"L\n\x07Process\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12+\n\x04tags\x18\x02 \x03(\x0b\x32\x17.jaeger.api_v2.KeyValueB\x04\xc8\xde\x1f\x00\"\xeb\x03\n\x04Span\x12,\n\x08trace_id\x18\x01 \x01(\x0c\x42\x1a\xc8\xde\x1f\x00\xda\xde\x1f\x07TraceID\xe2\xde\x1f\x07TraceID\x12)\n\x07span_id\x18\x02 \x01(\x0c\x42\x18\xc8\xde\x1f\x00\xda\xde\x1f\x06SpanID\xe2\xde\x1f\x06SpanID\x12\x16\n\x0eoperation_name\x18\x03 \x01(\t\x12\x30\n\nreferences\x18\x04 \x03(\x0b\x32\x16.jaeger.api_v2.SpanRefB\x04\xc8\xde\x1f\x00\x12\x1c\n\x05\x66lags\x18\x05 \x01(\rB\r\xc8\xde\x1f\x00\xda\xde\x1f\x05\x46lags\x12\x38\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\x90\xdf\x1f\x01\xc8\xde\x1f\x00\x12\x35\n\x08\x64uration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\x98\xdf\x1f\x01\xc8\xde\x1f\x00\x12+\n\x04tags\x18\x08 \x03(\x0b\x32\x17.jaeger.api_v2.KeyValueB\x04\xc8\xde\x1f\x00\x12&\n\x04logs\x18\t \x03(\x0b\x32\x12.jaeger.api_v2.LogB\x04\xc8\xde\x1f\x00\x12\'\n\x07process\x18\n \x01(\x0b\x32\x16.jaeger.api_v2.Process\x12!\n\nprocess_id\x18\x0b \x01(\tB\r\xe2\xde\x1f\tProcessID\x12\x10\n\x08warnings\x18\x0c \x03(\t\"\xe1\x01\n\x05Trace\x12\"\n\x05spans\x18\x01 \x03(\x0b\x32\x13.jaeger.api_v2.Span\x12>\n\x0bprocess_map\x18\x02 \x03(\x0b\x32#.jaeger.api_v2.Trace.ProcessMappingB\x04\xc8\xde\x1f\x00\x12\x10\n\x08warnings\x18\x03 \x03(\t\x1a\x62\n\x0eProcessMapping\x12!\n\nprocess_id\x18\x01 \x01(\tB\r\xe2\xde\x1f\tProcessID\x12-\n\x07process\x18\x02 \x01(\x0b\x32\x16.jaeger.api_v2.ProcessB\x04\xc8\xde\x1f\x00\"Z\n\x05\x42\x61tch\x12\"\n\x05spans\x18\x01 \x03(\x0b\x32\x13.jaeger.api_v2.Span\x12-\n\x07process\x18\x02 \x01(\x0b\x32\x16.jaeger.api_v2.ProcessB\x04\xc8\xde\x1f\x01\"S\n\x0e\x44\x65pendencyLink\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\r\n\x05\x63hild\x18\x02 \x01(\t\x12\x12\n\ncall_count\x18\x03 \x01(\x04\x12\x0e\n\x06source\x18\x04 \x01(\t*E\n\tValueType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\x0b\n\x07\x46LOAT64\x10\x03\x12\n\n\x06\x42INARY\x10\x04*-\n\x0bSpanRefType\x12\x0c\n\x08\x43HILD_OF\x10\x00\x12\x10\n\x0c\x46OLLOWS_FROM\x10\x01\x42\x30\n\x17io.jaegertracing.api_v2Z\x05model\xc8\xe2\x1e\x01\xd0\xe2\x1e\x01\xe0\xe2\x1e\x01\xc0\xe3\x1e\x01\x62\x06proto3')
- ,
- dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,])
-
-_VALUETYPE = _descriptor.EnumDescriptor(
- name='ValueType',
- full_name='jaeger.api_v2.ValueType',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='STRING', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='BOOL', index=1, number=1,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='INT64', index=2, number=2,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FLOAT64', index=3, number=3,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='BINARY', index=4, number=4,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=1515,
- serialized_end=1584,
-)
-_sym_db.RegisterEnumDescriptor(_VALUETYPE)
-
-ValueType = enum_type_wrapper.EnumTypeWrapper(_VALUETYPE)
-_SPANREFTYPE = _descriptor.EnumDescriptor(
- name='SpanRefType',
- full_name='jaeger.api_v2.SpanRefType',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='CHILD_OF', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FOLLOWS_FROM', index=1, number=1,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=1586,
- serialized_end=1631,
-)
-_sym_db.RegisterEnumDescriptor(_SPANREFTYPE)
-
-SpanRefType = enum_type_wrapper.EnumTypeWrapper(_SPANREFTYPE)
-STRING = 0
-BOOL = 1
-INT64 = 2
-FLOAT64 = 3
-BINARY = 4
-CHILD_OF = 0
-FOLLOWS_FROM = 1
-
-
-
-_KEYVALUE = _descriptor.Descriptor(
- name='KeyValue',
- full_name='jaeger.api_v2.KeyValue',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='jaeger.api_v2.KeyValue.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='v_type', full_name='jaeger.api_v2.KeyValue.v_type', index=1,
- number=2, type=14, cpp_type=8, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='v_str', full_name='jaeger.api_v2.KeyValue.v_str', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='v_bool', full_name='jaeger.api_v2.KeyValue.v_bool', index=3,
- number=4, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='v_int64', full_name='jaeger.api_v2.KeyValue.v_int64', index=4,
- number=5, type=3, cpp_type=2, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='v_float64', full_name='jaeger.api_v2.KeyValue.v_float64', index=5,
- number=6, type=1, cpp_type=5, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='v_binary', full_name='jaeger.api_v2.KeyValue.v_binary', index=6,
- number=7, type=12, cpp_type=9, label=1,
- has_default_value=False, default_value=_b(""),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('\350\240\037\001\350\241\037\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=118,
- serialized_end=278,
-)
-
-
-_LOG = _descriptor.Descriptor(
- name='Log',
- full_name='jaeger.api_v2.Log',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='timestamp', full_name='jaeger.api_v2.Log.timestamp', index=0,
- number=1, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\220\337\037\001\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='fields', full_name='jaeger.api_v2.Log.fields', index=1,
- number=2, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=280,
- serialized_end=389,
-)
-
-
-_SPANREF = _descriptor.Descriptor(
- name='SpanRef',
- full_name='jaeger.api_v2.SpanRef',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='trace_id', full_name='jaeger.api_v2.SpanRef.trace_id', index=0,
- number=1, type=12, cpp_type=9, label=1,
- has_default_value=False, default_value=_b(""),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000\332\336\037\007TraceID\342\336\037\007TraceID'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='span_id', full_name='jaeger.api_v2.SpanRef.span_id', index=1,
- number=2, type=12, cpp_type=9, label=1,
- has_default_value=False, default_value=_b(""),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000\332\336\037\006SpanID\342\336\037\006SpanID'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='ref_type', full_name='jaeger.api_v2.SpanRef.ref_type', index=2,
- number=3, type=14, cpp_type=8, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=392,
- serialized_end=536,
-)
-
-
-_PROCESS = _descriptor.Descriptor(
- name='Process',
- full_name='jaeger.api_v2.Process',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='service_name', full_name='jaeger.api_v2.Process.service_name', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='tags', full_name='jaeger.api_v2.Process.tags', index=1,
- number=2, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=538,
- serialized_end=614,
-)
-
-
-_SPAN = _descriptor.Descriptor(
- name='Span',
- full_name='jaeger.api_v2.Span',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='trace_id', full_name='jaeger.api_v2.Span.trace_id', index=0,
- number=1, type=12, cpp_type=9, label=1,
- has_default_value=False, default_value=_b(""),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000\332\336\037\007TraceID\342\336\037\007TraceID'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='span_id', full_name='jaeger.api_v2.Span.span_id', index=1,
- number=2, type=12, cpp_type=9, label=1,
- has_default_value=False, default_value=_b(""),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000\332\336\037\006SpanID\342\336\037\006SpanID'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='operation_name', full_name='jaeger.api_v2.Span.operation_name', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='references', full_name='jaeger.api_v2.Span.references', index=3,
- number=4, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='flags', full_name='jaeger.api_v2.Span.flags', index=4,
- number=5, type=13, cpp_type=3, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000\332\336\037\005Flags'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='start_time', full_name='jaeger.api_v2.Span.start_time', index=5,
- number=6, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\220\337\037\001\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='duration', full_name='jaeger.api_v2.Span.duration', index=6,
- number=7, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\230\337\037\001\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='tags', full_name='jaeger.api_v2.Span.tags', index=7,
- number=8, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='logs', full_name='jaeger.api_v2.Span.logs', index=8,
- number=9, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='process', full_name='jaeger.api_v2.Span.process', index=9,
- number=10, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='process_id', full_name='jaeger.api_v2.Span.process_id', index=10,
- number=11, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\342\336\037\tProcessID'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='warnings', full_name='jaeger.api_v2.Span.warnings', index=11,
- number=12, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=617,
- serialized_end=1108,
-)
-
-
-_TRACE_PROCESSMAPPING = _descriptor.Descriptor(
- name='ProcessMapping',
- full_name='jaeger.api_v2.Trace.ProcessMapping',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='process_id', full_name='jaeger.api_v2.Trace.ProcessMapping.process_id', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\342\336\037\tProcessID'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='process', full_name='jaeger.api_v2.Trace.ProcessMapping.process', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=1238,
- serialized_end=1336,
-)
-
-_TRACE = _descriptor.Descriptor(
- name='Trace',
- full_name='jaeger.api_v2.Trace',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='spans', full_name='jaeger.api_v2.Trace.spans', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='process_map', full_name='jaeger.api_v2.Trace.process_map', index=1,
- number=2, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\000'), file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='warnings', full_name='jaeger.api_v2.Trace.warnings', index=2,
- number=3, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_TRACE_PROCESSMAPPING, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=1111,
- serialized_end=1336,
-)
-
-
-_BATCH = _descriptor.Descriptor(
- name='Batch',
- full_name='jaeger.api_v2.Batch',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='spans', full_name='jaeger.api_v2.Batch.spans', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='process', full_name='jaeger.api_v2.Batch.process', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=_b('\310\336\037\001'), file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=1338,
- serialized_end=1428,
-)
-
-
-_DEPENDENCYLINK = _descriptor.Descriptor(
- name='DependencyLink',
- full_name='jaeger.api_v2.DependencyLink',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='parent', full_name='jaeger.api_v2.DependencyLink.parent', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='child', full_name='jaeger.api_v2.DependencyLink.child', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='call_count', full_name='jaeger.api_v2.DependencyLink.call_count', index=2,
- number=3, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='source', full_name='jaeger.api_v2.DependencyLink.source', index=3,
- number=4, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=1430,
- serialized_end=1513,
-)
-
-_KEYVALUE.fields_by_name['v_type'].enum_type = _VALUETYPE
-_LOG.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
-_LOG.fields_by_name['fields'].message_type = _KEYVALUE
-_SPANREF.fields_by_name['ref_type'].enum_type = _SPANREFTYPE
-_PROCESS.fields_by_name['tags'].message_type = _KEYVALUE
-_SPAN.fields_by_name['references'].message_type = _SPANREF
-_SPAN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
-_SPAN.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
-_SPAN.fields_by_name['tags'].message_type = _KEYVALUE
-_SPAN.fields_by_name['logs'].message_type = _LOG
-_SPAN.fields_by_name['process'].message_type = _PROCESS
-_TRACE_PROCESSMAPPING.fields_by_name['process'].message_type = _PROCESS
-_TRACE_PROCESSMAPPING.containing_type = _TRACE
-_TRACE.fields_by_name['spans'].message_type = _SPAN
-_TRACE.fields_by_name['process_map'].message_type = _TRACE_PROCESSMAPPING
-_BATCH.fields_by_name['spans'].message_type = _SPAN
-_BATCH.fields_by_name['process'].message_type = _PROCESS
-DESCRIPTOR.message_types_by_name['KeyValue'] = _KEYVALUE
-DESCRIPTOR.message_types_by_name['Log'] = _LOG
-DESCRIPTOR.message_types_by_name['SpanRef'] = _SPANREF
-DESCRIPTOR.message_types_by_name['Process'] = _PROCESS
-DESCRIPTOR.message_types_by_name['Span'] = _SPAN
-DESCRIPTOR.message_types_by_name['Trace'] = _TRACE
-DESCRIPTOR.message_types_by_name['Batch'] = _BATCH
-DESCRIPTOR.message_types_by_name['DependencyLink'] = _DEPENDENCYLINK
-DESCRIPTOR.enum_types_by_name['ValueType'] = _VALUETYPE
-DESCRIPTOR.enum_types_by_name['SpanRefType'] = _SPANREFTYPE
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-KeyValue = _reflection.GeneratedProtocolMessageType('KeyValue', (_message.Message,), {
- 'DESCRIPTOR' : _KEYVALUE,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.KeyValue)
- })
-_sym_db.RegisterMessage(KeyValue)
-
-Log = _reflection.GeneratedProtocolMessageType('Log', (_message.Message,), {
- 'DESCRIPTOR' : _LOG,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.Log)
- })
-_sym_db.RegisterMessage(Log)
-
-SpanRef = _reflection.GeneratedProtocolMessageType('SpanRef', (_message.Message,), {
- 'DESCRIPTOR' : _SPANREF,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.SpanRef)
- })
-_sym_db.RegisterMessage(SpanRef)
-
-Process = _reflection.GeneratedProtocolMessageType('Process', (_message.Message,), {
- 'DESCRIPTOR' : _PROCESS,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.Process)
- })
-_sym_db.RegisterMessage(Process)
-
-Span = _reflection.GeneratedProtocolMessageType('Span', (_message.Message,), {
- 'DESCRIPTOR' : _SPAN,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.Span)
- })
-_sym_db.RegisterMessage(Span)
-
-Trace = _reflection.GeneratedProtocolMessageType('Trace', (_message.Message,), {
-
- 'ProcessMapping' : _reflection.GeneratedProtocolMessageType('ProcessMapping', (_message.Message,), {
- 'DESCRIPTOR' : _TRACE_PROCESSMAPPING,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.Trace.ProcessMapping)
- })
- ,
- 'DESCRIPTOR' : _TRACE,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.Trace)
- })
-_sym_db.RegisterMessage(Trace)
-_sym_db.RegisterMessage(Trace.ProcessMapping)
-
-Batch = _reflection.GeneratedProtocolMessageType('Batch', (_message.Message,), {
- 'DESCRIPTOR' : _BATCH,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.Batch)
- })
-_sym_db.RegisterMessage(Batch)
-
-DependencyLink = _reflection.GeneratedProtocolMessageType('DependencyLink', (_message.Message,), {
- 'DESCRIPTOR' : _DEPENDENCYLINK,
- '__module__' : 'model_pb2'
- # @@protoc_insertion_point(class_scope:jaeger.api_v2.DependencyLink)
- })
-_sym_db.RegisterMessage(DependencyLink)
-
-
-DESCRIPTOR._options = None
-_KEYVALUE._options = None
-_LOG.fields_by_name['timestamp']._options = None
-_LOG.fields_by_name['fields']._options = None
-_SPANREF.fields_by_name['trace_id']._options = None
-_SPANREF.fields_by_name['span_id']._options = None
-_PROCESS.fields_by_name['tags']._options = None
-_SPAN.fields_by_name['trace_id']._options = None
-_SPAN.fields_by_name['span_id']._options = None
-_SPAN.fields_by_name['references']._options = None
-_SPAN.fields_by_name['flags']._options = None
-_SPAN.fields_by_name['start_time']._options = None
-_SPAN.fields_by_name['duration']._options = None
-_SPAN.fields_by_name['tags']._options = None
-_SPAN.fields_by_name['logs']._options = None
-_SPAN.fields_by_name['process_id']._options = None
-_TRACE_PROCESSMAPPING.fields_by_name['process_id']._options = None
-_TRACE_PROCESSMAPPING.fields_by_name['process']._options = None
-_TRACE.fields_by_name['process_map']._options = None
-_BATCH.fields_by_name['process']._options = None
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/protoc_gen_swagger/options/annotations_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/protoc_gen_swagger/options/annotations_pb2.py
deleted file mode 100644
index 42bc642368f..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/protoc_gen_swagger/options/annotations_pb2.py
+++ /dev/null
@@ -1,90 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: protoc-gen-swagger/options/annotations.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
-from protoc_gen_swagger.options import openapiv2_pb2 as protoc__gen__swagger_dot_options_dot_openapiv2__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='protoc-gen-swagger/options/annotations.proto',
- package='grpc.gateway.protoc_gen_swagger.options',
- syntax='proto3',
- serialized_options=_b('ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'),
- serialized_pb=_b('\n,protoc-gen-swagger/options/annotations.proto\x12\'grpc.gateway.protoc_gen_swagger.options\x1a google/protobuf/descriptor.proto\x1a*protoc-gen-swagger/options/openapiv2.proto:j\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.Swagger:p\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_swagger.options.Operation:k\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Schema:e\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32,.grpc.gateway.protoc_gen_swagger.options.Tag:l\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_swagger.options.JSONSchemaBCZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/optionsb\x06proto3')
- ,
- dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,protoc__gen__swagger_dot_options_dot_openapiv2__pb2.DESCRIPTOR,])
-
-
-OPENAPIV2_SWAGGER_FIELD_NUMBER = 1042
-openapiv2_swagger = _descriptor.FieldDescriptor(
- name='openapiv2_swagger', full_name='grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger', index=0,
- number=1042, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-OPENAPIV2_OPERATION_FIELD_NUMBER = 1042
-openapiv2_operation = _descriptor.FieldDescriptor(
- name='openapiv2_operation', full_name='grpc.gateway.protoc_gen_swagger.options.openapiv2_operation', index=1,
- number=1042, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-OPENAPIV2_SCHEMA_FIELD_NUMBER = 1042
-openapiv2_schema = _descriptor.FieldDescriptor(
- name='openapiv2_schema', full_name='grpc.gateway.protoc_gen_swagger.options.openapiv2_schema', index=2,
- number=1042, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-OPENAPIV2_TAG_FIELD_NUMBER = 1042
-openapiv2_tag = _descriptor.FieldDescriptor(
- name='openapiv2_tag', full_name='grpc.gateway.protoc_gen_swagger.options.openapiv2_tag', index=3,
- number=1042, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-OPENAPIV2_FIELD_FIELD_NUMBER = 1042
-openapiv2_field = _descriptor.FieldDescriptor(
- name='openapiv2_field', full_name='grpc.gateway.protoc_gen_swagger.options.openapiv2_field', index=4,
- number=1042, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=True, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR)
-
-DESCRIPTOR.extensions_by_name['openapiv2_swagger'] = openapiv2_swagger
-DESCRIPTOR.extensions_by_name['openapiv2_operation'] = openapiv2_operation
-DESCRIPTOR.extensions_by_name['openapiv2_schema'] = openapiv2_schema
-DESCRIPTOR.extensions_by_name['openapiv2_tag'] = openapiv2_tag
-DESCRIPTOR.extensions_by_name['openapiv2_field'] = openapiv2_field
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-openapiv2_swagger.message_type = protoc__gen__swagger_dot_options_dot_openapiv2__pb2._SWAGGER
-google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(openapiv2_swagger)
-openapiv2_operation.message_type = protoc__gen__swagger_dot_options_dot_openapiv2__pb2._OPERATION
-google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(openapiv2_operation)
-openapiv2_schema.message_type = protoc__gen__swagger_dot_options_dot_openapiv2__pb2._SCHEMA
-google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(openapiv2_schema)
-openapiv2_tag.message_type = protoc__gen__swagger_dot_options_dot_openapiv2__pb2._TAG
-google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(openapiv2_tag)
-openapiv2_field.message_type = protoc__gen__swagger_dot_options_dot_openapiv2__pb2._JSONSCHEMA
-google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(openapiv2_field)
-
-DESCRIPTOR._options = None
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/protoc_gen_swagger/options/openapiv2_pb2.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/protoc_gen_swagger/options/openapiv2_pb2.py
deleted file mode 100644
index c2e7aa0ba10..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen/protoc_gen_swagger/options/openapiv2_pb2.py
+++ /dev/null
@@ -1,1777 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: protoc-gen-swagger/options/openapiv2.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
-from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='protoc-gen-swagger/options/openapiv2.proto',
- package='grpc.gateway.protoc_gen_swagger.options',
- syntax='proto3',
- serialized_options=_b('ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'),
- serialized_pb=_b('\n*protoc-gen-swagger/options/openapiv2.proto\x12\'grpc.gateway.protoc_gen_swagger.options\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa0\x07\n\x07Swagger\x12\x0f\n\x07swagger\x18\x01 \x01(\t\x12;\n\x04info\x18\x02 \x01(\x0b\x32-.grpc.gateway.protoc_gen_swagger.options.Info\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x11\n\tbase_path\x18\x04 \x01(\t\x12O\n\x07schemes\x18\x05 \x03(\x0e\x32>.grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12R\n\tresponses\x18\n \x03(\x0b\x32?.grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry\x12Z\n\x14security_definitions\x18\x0b \x01(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions\x12N\n\x08security\x18\x0c \x03(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement\x12U\n\rexternal_docs\x18\x0e \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12T\n\nextensions\x18\x0f \x03(\x0b\x32@.grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry\x1a\x63\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_swagger.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"B\n\rSwaggerScheme\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\x12\x06\n\x02WS\x10\x03\x12\x07\n\x03WSS\x10\x04J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\r\x10\x0e\"\xa9\x05\n\tOperation\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12U\n\rexternal_docs\x18\x04 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12\x14\n\x0coperation_id\x18\x05 \x01(\t\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12T\n\tresponses\x18\t \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry\x12\x0f\n\x07schemes\x18\n \x03(\t\x12\x12\n\ndeprecated\x18\x0b \x01(\x08\x12N\n\x08security\x18\x0c \x03(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement\x12V\n\nextensions\x18\r \x03(\x0b\x32\x42.grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry\x1a\x63\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_swagger.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\t\"\x8e\x02\n\x08Response\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12?\n\x06schema\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Schema\x12U\n\nextensions\x18\x05 \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05\"\xf9\x02\n\x04Info\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x18\n\x10terms_of_service\x18\x03 \x01(\t\x12\x41\n\x07\x63ontact\x18\x04 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.Contact\x12\x41\n\x07license\x18\x05 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.License\x12\x0f\n\x07version\x18\x06 \x01(\t\x12Q\n\nextensions\x18\x07 \x03(\x0b\x32=.grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"3\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\"$\n\x07License\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"9\n\x15\x45xternalDocumentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x80\x02\n\x06Schema\x12H\n\x0bjson_schema\x18\x01 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_swagger.options.JSONSchema\x12\x15\n\rdiscriminator\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12U\n\rexternal_docs\x18\x05 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12%\n\x07\x65xample\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyJ\x04\x08\x04\x10\x05\"\xba\x05\n\nJSONSchema\x12\x0b\n\x03ref\x18\x03 \x01(\t\x12\r\n\x05title\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\t\x12\x11\n\tread_only\x18\x08 \x01(\x08\x12\x13\n\x0bmultiple_of\x18\n \x01(\x01\x12\x0f\n\x07maximum\x18\x0b \x01(\x01\x12\x19\n\x11\x65xclusive_maximum\x18\x0c \x01(\x08\x12\x0f\n\x07minimum\x18\r \x01(\x01\x12\x19\n\x11\x65xclusive_minimum\x18\x0e \x01(\x08\x12\x12\n\nmax_length\x18\x0f \x01(\x04\x12\x12\n\nmin_length\x18\x10 \x01(\x04\x12\x0f\n\x07pattern\x18\x11 \x01(\t\x12\x11\n\tmax_items\x18\x14 \x01(\x04\x12\x11\n\tmin_items\x18\x15 \x01(\x04\x12\x14\n\x0cunique_items\x18\x16 \x01(\x08\x12\x16\n\x0emax_properties\x18\x18 \x01(\x04\x12\x16\n\x0emin_properties\x18\x19 \x01(\x04\x12\x10\n\x08required\x18\x1a \x03(\t\x12\r\n\x05\x61rray\x18\" \x03(\t\x12W\n\x04type\x18# \x03(\x0e\x32I.grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes\"w\n\x15JSONSchemaSimpleTypes\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41RRAY\x10\x01\x12\x0b\n\x07\x42OOLEAN\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x08\n\x04NULL\x10\x04\x12\n\n\x06NUMBER\x10\x05\x12\n\n\x06OBJECT\x10\x06\x12\n\n\x06STRING\x10\x07J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05J\x04\x08\t\x10\nJ\x04\x08\x12\x10\x13J\x04\x08\x13\x10\x14J\x04\x08\x17\x10\x18J\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1eJ\x04\x08\x1e\x10\"J\x04\x08$\x10*J\x04\x08*\x10+J\x04\x08+\x10.\"w\n\x03Tag\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12U\n\rexternal_docs\x18\x03 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentationJ\x04\x08\x01\x10\x02\"\xdd\x01\n\x13SecurityDefinitions\x12\\\n\x08security\x18\x01 \x03(\x0b\x32J.grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry\x1ah\n\rSecurityEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.grpc.gateway.protoc_gen_swagger.options.SecurityScheme:\x02\x38\x01\"\x96\x06\n\x0eSecurityScheme\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x46\n\x02in\x18\x04 \x01(\x0e\x32:.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In\x12J\n\x04\x66low\x18\x05 \x01(\x0e\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow\x12\x19\n\x11\x61uthorization_url\x18\x06 \x01(\t\x12\x11\n\ttoken_url\x18\x07 \x01(\t\x12?\n\x06scopes\x18\x08 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Scopes\x12[\n\nextensions\x18\t \x03(\x0b\x32G.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"K\n\x04Type\x12\x10\n\x0cTYPE_INVALID\x10\x00\x12\x0e\n\nTYPE_BASIC\x10\x01\x12\x10\n\x0cTYPE_API_KEY\x10\x02\x12\x0f\n\x0bTYPE_OAUTH2\x10\x03\"1\n\x02In\x12\x0e\n\nIN_INVALID\x10\x00\x12\x0c\n\x08IN_QUERY\x10\x01\x12\r\n\tIN_HEADER\x10\x02\"j\n\x04\x46low\x12\x10\n\x0c\x46LOW_INVALID\x10\x00\x12\x11\n\rFLOW_IMPLICIT\x10\x01\x12\x11\n\rFLOW_PASSWORD\x10\x02\x12\x14\n\x10\x46LOW_APPLICATION\x10\x03\x12\x14\n\x10\x46LOW_ACCESS_CODE\x10\x04\"\xc9\x02\n\x13SecurityRequirement\x12s\n\x14security_requirement\x18\x01 \x03(\x0b\x32U.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry\x1a)\n\x18SecurityRequirementValue\x12\r\n\x05scope\x18\x01 \x03(\t\x1a\x91\x01\n\x18SecurityRequirementEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x64\n\x05value\x18\x02 \x01(\x0b\x32U.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue:\x02\x38\x01\"\x81\x01\n\x06Scopes\x12I\n\x05scope\x18\x01 \x03(\x0b\x32:.grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry\x1a,\n\nScopeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x43ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/optionsb\x06proto3')
- ,
- dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,])
-
-
-
-_SWAGGER_SWAGGERSCHEME = _descriptor.EnumDescriptor(
- name='SwaggerScheme',
- full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='UNKNOWN', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='HTTP', index=1, number=1,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='HTTPS', index=2, number=2,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='WS', index=3, number=3,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='WSS', index=4, number=4,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=989,
- serialized_end=1055,
-)
-_sym_db.RegisterEnumDescriptor(_SWAGGER_SWAGGERSCHEME)
-
-_JSONSCHEMA_JSONSCHEMASIMPLETYPES = _descriptor.EnumDescriptor(
- name='JSONSchemaSimpleTypes',
- full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='UNKNOWN', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='ARRAY', index=1, number=1,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='BOOLEAN', index=2, number=2,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='INTEGER', index=3, number=3,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='NULL', index=4, number=4,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='NUMBER', index=5, number=5,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='OBJECT', index=6, number=6,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='STRING', index=7, number=7,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=3317,
- serialized_end=3436,
-)
-_sym_db.RegisterEnumDescriptor(_JSONSCHEMA_JSONSCHEMASIMPLETYPES)
-
-_SECURITYSCHEME_TYPE = _descriptor.EnumDescriptor(
- name='Type',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='TYPE_INVALID', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='TYPE_BASIC', index=1, number=1,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='TYPE_API_KEY', index=2, number=2,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='TYPE_OAUTH2', index=3, number=3,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=4424,
- serialized_end=4499,
-)
-_sym_db.RegisterEnumDescriptor(_SECURITYSCHEME_TYPE)
-
-_SECURITYSCHEME_IN = _descriptor.EnumDescriptor(
- name='In',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='IN_INVALID', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='IN_QUERY', index=1, number=1,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='IN_HEADER', index=2, number=2,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=4501,
- serialized_end=4550,
-)
-_sym_db.RegisterEnumDescriptor(_SECURITYSCHEME_IN)
-
-_SECURITYSCHEME_FLOW = _descriptor.EnumDescriptor(
- name='Flow',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='FLOW_INVALID', index=0, number=0,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FLOW_IMPLICIT', index=1, number=1,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FLOW_PASSWORD', index=2, number=2,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FLOW_APPLICATION', index=3, number=3,
- serialized_options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FLOW_ACCESS_CODE', index=4, number=4,
- serialized_options=None,
- type=None),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=4552,
- serialized_end=4658,
-)
-_sym_db.RegisterEnumDescriptor(_SECURITYSCHEME_FLOW)
-
-
-_SWAGGER_RESPONSESENTRY = _descriptor.Descriptor(
- name='ResponsesEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=813,
- serialized_end=912,
-)
-
-_SWAGGER_EXTENSIONSENTRY = _descriptor.Descriptor(
- name='ExtensionsEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=914,
- serialized_end=987,
-)
-
-_SWAGGER = _descriptor.Descriptor(
- name='Swagger',
- full_name='grpc.gateway.protoc_gen_swagger.options.Swagger',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='swagger', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.swagger', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='info', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.info', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='host', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.host', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='base_path', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.base_path', index=3,
- number=4, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='schemes', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.schemes', index=4,
- number=5, type=14, cpp_type=8, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='consumes', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.consumes', index=5,
- number=6, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='produces', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.produces', index=6,
- number=7, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='responses', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.responses', index=7,
- number=10, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='security_definitions', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.security_definitions', index=8,
- number=11, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='security', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.security', index=9,
- number=12, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='external_docs', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.external_docs', index=10,
- number=14, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='extensions', full_name='grpc.gateway.protoc_gen_swagger.options.Swagger.extensions', index=11,
- number=15, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_SWAGGER_RESPONSESENTRY, _SWAGGER_EXTENSIONSENTRY, ],
- enum_types=[
- _SWAGGER_SWAGGERSCHEME,
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=145,
- serialized_end=1073,
-)
-
-
-_OPERATION_RESPONSESENTRY = _descriptor.Descriptor(
- name='ResponsesEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=813,
- serialized_end=912,
-)
-
-_OPERATION_EXTENSIONSENTRY = _descriptor.Descriptor(
- name='ExtensionsEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=914,
- serialized_end=987,
-)
-
-_OPERATION = _descriptor.Descriptor(
- name='Operation',
- full_name='grpc.gateway.protoc_gen_swagger.options.Operation',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='tags', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.tags', index=0,
- number=1, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='summary', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.summary', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.description', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='external_docs', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.external_docs', index=3,
- number=4, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='operation_id', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.operation_id', index=4,
- number=5, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='consumes', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.consumes', index=5,
- number=6, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='produces', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.produces', index=6,
- number=7, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='responses', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.responses', index=7,
- number=9, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='schemes', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.schemes', index=8,
- number=10, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='deprecated', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.deprecated', index=9,
- number=11, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='security', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.security', index=10,
- number=12, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='extensions', full_name='grpc.gateway.protoc_gen_swagger.options.Operation.extensions', index=11,
- number=13, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_OPERATION_RESPONSESENTRY, _OPERATION_EXTENSIONSENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=1076,
- serialized_end=1757,
-)
-
-
-_RESPONSE_EXTENSIONSENTRY = _descriptor.Descriptor(
- name='ExtensionsEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=914,
- serialized_end=987,
-)
-
-_RESPONSE = _descriptor.Descriptor(
- name='Response',
- full_name='grpc.gateway.protoc_gen_swagger.options.Response',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.Response.description', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='schema', full_name='grpc.gateway.protoc_gen_swagger.options.Response.schema', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='extensions', full_name='grpc.gateway.protoc_gen_swagger.options.Response.extensions', index=2,
- number=5, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_RESPONSE_EXTENSIONSENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=1760,
- serialized_end=2030,
-)
-
-
-_INFO_EXTENSIONSENTRY = _descriptor.Descriptor(
- name='ExtensionsEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=914,
- serialized_end=987,
-)
-
-_INFO = _descriptor.Descriptor(
- name='Info',
- full_name='grpc.gateway.protoc_gen_swagger.options.Info',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='title', full_name='grpc.gateway.protoc_gen_swagger.options.Info.title', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.Info.description', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='terms_of_service', full_name='grpc.gateway.protoc_gen_swagger.options.Info.terms_of_service', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='contact', full_name='grpc.gateway.protoc_gen_swagger.options.Info.contact', index=3,
- number=4, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='license', full_name='grpc.gateway.protoc_gen_swagger.options.Info.license', index=4,
- number=5, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='version', full_name='grpc.gateway.protoc_gen_swagger.options.Info.version', index=5,
- number=6, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='extensions', full_name='grpc.gateway.protoc_gen_swagger.options.Info.extensions', index=6,
- number=7, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_INFO_EXTENSIONSENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=2033,
- serialized_end=2410,
-)
-
-
-_CONTACT = _descriptor.Descriptor(
- name='Contact',
- full_name='grpc.gateway.protoc_gen_swagger.options.Contact',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='name', full_name='grpc.gateway.protoc_gen_swagger.options.Contact.name', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='url', full_name='grpc.gateway.protoc_gen_swagger.options.Contact.url', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='email', full_name='grpc.gateway.protoc_gen_swagger.options.Contact.email', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=2412,
- serialized_end=2463,
-)
-
-
-_LICENSE = _descriptor.Descriptor(
- name='License',
- full_name='grpc.gateway.protoc_gen_swagger.options.License',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='name', full_name='grpc.gateway.protoc_gen_swagger.options.License.name', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='url', full_name='grpc.gateway.protoc_gen_swagger.options.License.url', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=2465,
- serialized_end=2501,
-)
-
-
-_EXTERNALDOCUMENTATION = _descriptor.Descriptor(
- name='ExternalDocumentation',
- full_name='grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation.description', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='url', full_name='grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation.url', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=2503,
- serialized_end=2560,
-)
-
-
-_SCHEMA = _descriptor.Descriptor(
- name='Schema',
- full_name='grpc.gateway.protoc_gen_swagger.options.Schema',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='json_schema', full_name='grpc.gateway.protoc_gen_swagger.options.Schema.json_schema', index=0,
- number=1, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='discriminator', full_name='grpc.gateway.protoc_gen_swagger.options.Schema.discriminator', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='read_only', full_name='grpc.gateway.protoc_gen_swagger.options.Schema.read_only', index=2,
- number=3, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='external_docs', full_name='grpc.gateway.protoc_gen_swagger.options.Schema.external_docs', index=3,
- number=5, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='example', full_name='grpc.gateway.protoc_gen_swagger.options.Schema.example', index=4,
- number=6, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=2563,
- serialized_end=2819,
-)
-
-
-_JSONSCHEMA = _descriptor.Descriptor(
- name='JSONSchema',
- full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='ref', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.ref', index=0,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='title', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.title', index=1,
- number=5, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.description', index=2,
- number=6, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='default', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.default', index=3,
- number=7, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='read_only', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.read_only', index=4,
- number=8, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='multiple_of', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.multiple_of', index=5,
- number=10, type=1, cpp_type=5, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='maximum', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.maximum', index=6,
- number=11, type=1, cpp_type=5, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='exclusive_maximum', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.exclusive_maximum', index=7,
- number=12, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='minimum', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.minimum', index=8,
- number=13, type=1, cpp_type=5, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='exclusive_minimum', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.exclusive_minimum', index=9,
- number=14, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='max_length', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.max_length', index=10,
- number=15, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='min_length', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.min_length', index=11,
- number=16, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='pattern', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.pattern', index=12,
- number=17, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='max_items', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.max_items', index=13,
- number=20, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='min_items', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.min_items', index=14,
- number=21, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='unique_items', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.unique_items', index=15,
- number=22, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='max_properties', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.max_properties', index=16,
- number=24, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='min_properties', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.min_properties', index=17,
- number=25, type=4, cpp_type=4, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='required', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.required', index=18,
- number=26, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='array', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.array', index=19,
- number=34, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='type', full_name='grpc.gateway.protoc_gen_swagger.options.JSONSchema.type', index=20,
- number=35, type=14, cpp_type=8, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- _JSONSCHEMA_JSONSCHEMASIMPLETYPES,
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=2822,
- serialized_end=3520,
-)
-
-
-_TAG = _descriptor.Descriptor(
- name='Tag',
- full_name='grpc.gateway.protoc_gen_swagger.options.Tag',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.Tag.description', index=0,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='external_docs', full_name='grpc.gateway.protoc_gen_swagger.options.Tag.external_docs', index=1,
- number=3, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=3522,
- serialized_end=3641,
-)
-
-
-_SECURITYDEFINITIONS_SECURITYENTRY = _descriptor.Descriptor(
- name='SecurityEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=3761,
- serialized_end=3865,
-)
-
-_SECURITYDEFINITIONS = _descriptor.Descriptor(
- name='SecurityDefinitions',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='security', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.security', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_SECURITYDEFINITIONS_SECURITYENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=3644,
- serialized_end=3865,
-)
-
-
-_SECURITYSCHEME_EXTENSIONSENTRY = _descriptor.Descriptor(
- name='ExtensionsEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=914,
- serialized_end=987,
-)
-
-_SECURITYSCHEME = _descriptor.Descriptor(
- name='SecurityScheme',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='type', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.type', index=0,
- number=1, type=14, cpp_type=8, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='description', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.description', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='name', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.name', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='in', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.in', index=3,
- number=4, type=14, cpp_type=8, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='flow', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.flow', index=4,
- number=5, type=14, cpp_type=8, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='authorization_url', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.authorization_url', index=5,
- number=6, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='token_url', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.token_url', index=6,
- number=7, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='scopes', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.scopes', index=7,
- number=8, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='extensions', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityScheme.extensions', index=8,
- number=9, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_SECURITYSCHEME_EXTENSIONSENTRY, ],
- enum_types=[
- _SECURITYSCHEME_TYPE,
- _SECURITYSCHEME_IN,
- _SECURITYSCHEME_FLOW,
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=3868,
- serialized_end=4658,
-)
-
-
-_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE = _descriptor.Descriptor(
- name='SecurityRequirementValue',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='scope', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue.scope', index=0,
- number=1, type=9, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=4801,
- serialized_end=4842,
-)
-
-_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY = _descriptor.Descriptor(
- name='SecurityRequirementEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=4845,
- serialized_end=4990,
-)
-
-_SECURITYREQUIREMENT = _descriptor.Descriptor(
- name='SecurityRequirement',
- full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='security_requirement', full_name='grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.security_requirement', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE, _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=4661,
- serialized_end=4990,
-)
-
-
-_SCOPES_SCOPEENTRY = _descriptor.Descriptor(
- name='ScopeEntry',
- full_name='grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='value', full_name='grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry.value', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=_b('8\001'),
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=5078,
- serialized_end=5122,
-)
-
-_SCOPES = _descriptor.Descriptor(
- name='Scopes',
- full_name='grpc.gateway.protoc_gen_swagger.options.Scopes',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='scope', full_name='grpc.gateway.protoc_gen_swagger.options.Scopes.scope', index=0,
- number=1, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR),
- ],
- extensions=[
- ],
- nested_types=[_SCOPES_SCOPEENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=4993,
- serialized_end=5122,
-)
-
-_SWAGGER_RESPONSESENTRY.fields_by_name['value'].message_type = _RESPONSE
-_SWAGGER_RESPONSESENTRY.containing_type = _SWAGGER
-_SWAGGER_EXTENSIONSENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
-_SWAGGER_EXTENSIONSENTRY.containing_type = _SWAGGER
-_SWAGGER.fields_by_name['info'].message_type = _INFO
-_SWAGGER.fields_by_name['schemes'].enum_type = _SWAGGER_SWAGGERSCHEME
-_SWAGGER.fields_by_name['responses'].message_type = _SWAGGER_RESPONSESENTRY
-_SWAGGER.fields_by_name['security_definitions'].message_type = _SECURITYDEFINITIONS
-_SWAGGER.fields_by_name['security'].message_type = _SECURITYREQUIREMENT
-_SWAGGER.fields_by_name['external_docs'].message_type = _EXTERNALDOCUMENTATION
-_SWAGGER.fields_by_name['extensions'].message_type = _SWAGGER_EXTENSIONSENTRY
-_SWAGGER_SWAGGERSCHEME.containing_type = _SWAGGER
-_OPERATION_RESPONSESENTRY.fields_by_name['value'].message_type = _RESPONSE
-_OPERATION_RESPONSESENTRY.containing_type = _OPERATION
-_OPERATION_EXTENSIONSENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
-_OPERATION_EXTENSIONSENTRY.containing_type = _OPERATION
-_OPERATION.fields_by_name['external_docs'].message_type = _EXTERNALDOCUMENTATION
-_OPERATION.fields_by_name['responses'].message_type = _OPERATION_RESPONSESENTRY
-_OPERATION.fields_by_name['security'].message_type = _SECURITYREQUIREMENT
-_OPERATION.fields_by_name['extensions'].message_type = _OPERATION_EXTENSIONSENTRY
-_RESPONSE_EXTENSIONSENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
-_RESPONSE_EXTENSIONSENTRY.containing_type = _RESPONSE
-_RESPONSE.fields_by_name['schema'].message_type = _SCHEMA
-_RESPONSE.fields_by_name['extensions'].message_type = _RESPONSE_EXTENSIONSENTRY
-_INFO_EXTENSIONSENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
-_INFO_EXTENSIONSENTRY.containing_type = _INFO
-_INFO.fields_by_name['contact'].message_type = _CONTACT
-_INFO.fields_by_name['license'].message_type = _LICENSE
-_INFO.fields_by_name['extensions'].message_type = _INFO_EXTENSIONSENTRY
-_SCHEMA.fields_by_name['json_schema'].message_type = _JSONSCHEMA
-_SCHEMA.fields_by_name['external_docs'].message_type = _EXTERNALDOCUMENTATION
-_SCHEMA.fields_by_name['example'].message_type = google_dot_protobuf_dot_any__pb2._ANY
-_JSONSCHEMA.fields_by_name['type'].enum_type = _JSONSCHEMA_JSONSCHEMASIMPLETYPES
-_JSONSCHEMA_JSONSCHEMASIMPLETYPES.containing_type = _JSONSCHEMA
-_TAG.fields_by_name['external_docs'].message_type = _EXTERNALDOCUMENTATION
-_SECURITYDEFINITIONS_SECURITYENTRY.fields_by_name['value'].message_type = _SECURITYSCHEME
-_SECURITYDEFINITIONS_SECURITYENTRY.containing_type = _SECURITYDEFINITIONS
-_SECURITYDEFINITIONS.fields_by_name['security'].message_type = _SECURITYDEFINITIONS_SECURITYENTRY
-_SECURITYSCHEME_EXTENSIONSENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
-_SECURITYSCHEME_EXTENSIONSENTRY.containing_type = _SECURITYSCHEME
-_SECURITYSCHEME.fields_by_name['type'].enum_type = _SECURITYSCHEME_TYPE
-_SECURITYSCHEME.fields_by_name['in'].enum_type = _SECURITYSCHEME_IN
-_SECURITYSCHEME.fields_by_name['flow'].enum_type = _SECURITYSCHEME_FLOW
-_SECURITYSCHEME.fields_by_name['scopes'].message_type = _SCOPES
-_SECURITYSCHEME.fields_by_name['extensions'].message_type = _SECURITYSCHEME_EXTENSIONSENTRY
-_SECURITYSCHEME_TYPE.containing_type = _SECURITYSCHEME
-_SECURITYSCHEME_IN.containing_type = _SECURITYSCHEME
-_SECURITYSCHEME_FLOW.containing_type = _SECURITYSCHEME
-_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE.containing_type = _SECURITYREQUIREMENT
-_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY.fields_by_name['value'].message_type = _SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE
-_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY.containing_type = _SECURITYREQUIREMENT
-_SECURITYREQUIREMENT.fields_by_name['security_requirement'].message_type = _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY
-_SCOPES_SCOPEENTRY.containing_type = _SCOPES
-_SCOPES.fields_by_name['scope'].message_type = _SCOPES_SCOPEENTRY
-DESCRIPTOR.message_types_by_name['Swagger'] = _SWAGGER
-DESCRIPTOR.message_types_by_name['Operation'] = _OPERATION
-DESCRIPTOR.message_types_by_name['Response'] = _RESPONSE
-DESCRIPTOR.message_types_by_name['Info'] = _INFO
-DESCRIPTOR.message_types_by_name['Contact'] = _CONTACT
-DESCRIPTOR.message_types_by_name['License'] = _LICENSE
-DESCRIPTOR.message_types_by_name['ExternalDocumentation'] = _EXTERNALDOCUMENTATION
-DESCRIPTOR.message_types_by_name['Schema'] = _SCHEMA
-DESCRIPTOR.message_types_by_name['JSONSchema'] = _JSONSCHEMA
-DESCRIPTOR.message_types_by_name['Tag'] = _TAG
-DESCRIPTOR.message_types_by_name['SecurityDefinitions'] = _SECURITYDEFINITIONS
-DESCRIPTOR.message_types_by_name['SecurityScheme'] = _SECURITYSCHEME
-DESCRIPTOR.message_types_by_name['SecurityRequirement'] = _SECURITYREQUIREMENT
-DESCRIPTOR.message_types_by_name['Scopes'] = _SCOPES
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-Swagger = _reflection.GeneratedProtocolMessageType('Swagger', (_message.Message,), {
-
- 'ResponsesEntry' : _reflection.GeneratedProtocolMessageType('ResponsesEntry', (_message.Message,), {
- 'DESCRIPTOR' : _SWAGGER_RESPONSESENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry)
- })
- ,
-
- 'ExtensionsEntry' : _reflection.GeneratedProtocolMessageType('ExtensionsEntry', (_message.Message,), {
- 'DESCRIPTOR' : _SWAGGER_EXTENSIONSENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry)
- })
- ,
- 'DESCRIPTOR' : _SWAGGER,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Swagger)
- })
-_sym_db.RegisterMessage(Swagger)
-_sym_db.RegisterMessage(Swagger.ResponsesEntry)
-_sym_db.RegisterMessage(Swagger.ExtensionsEntry)
-
-Operation = _reflection.GeneratedProtocolMessageType('Operation', (_message.Message,), {
-
- 'ResponsesEntry' : _reflection.GeneratedProtocolMessageType('ResponsesEntry', (_message.Message,), {
- 'DESCRIPTOR' : _OPERATION_RESPONSESENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry)
- })
- ,
-
- 'ExtensionsEntry' : _reflection.GeneratedProtocolMessageType('ExtensionsEntry', (_message.Message,), {
- 'DESCRIPTOR' : _OPERATION_EXTENSIONSENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry)
- })
- ,
- 'DESCRIPTOR' : _OPERATION,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Operation)
- })
-_sym_db.RegisterMessage(Operation)
-_sym_db.RegisterMessage(Operation.ResponsesEntry)
-_sym_db.RegisterMessage(Operation.ExtensionsEntry)
-
-Response = _reflection.GeneratedProtocolMessageType('Response', (_message.Message,), {
-
- 'ExtensionsEntry' : _reflection.GeneratedProtocolMessageType('ExtensionsEntry', (_message.Message,), {
- 'DESCRIPTOR' : _RESPONSE_EXTENSIONSENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry)
- })
- ,
- 'DESCRIPTOR' : _RESPONSE,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Response)
- })
-_sym_db.RegisterMessage(Response)
-_sym_db.RegisterMessage(Response.ExtensionsEntry)
-
-Info = _reflection.GeneratedProtocolMessageType('Info', (_message.Message,), {
-
- 'ExtensionsEntry' : _reflection.GeneratedProtocolMessageType('ExtensionsEntry', (_message.Message,), {
- 'DESCRIPTOR' : _INFO_EXTENSIONSENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry)
- })
- ,
- 'DESCRIPTOR' : _INFO,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Info)
- })
-_sym_db.RegisterMessage(Info)
-_sym_db.RegisterMessage(Info.ExtensionsEntry)
-
-Contact = _reflection.GeneratedProtocolMessageType('Contact', (_message.Message,), {
- 'DESCRIPTOR' : _CONTACT,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Contact)
- })
-_sym_db.RegisterMessage(Contact)
-
-License = _reflection.GeneratedProtocolMessageType('License', (_message.Message,), {
- 'DESCRIPTOR' : _LICENSE,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.License)
- })
-_sym_db.RegisterMessage(License)
-
-ExternalDocumentation = _reflection.GeneratedProtocolMessageType('ExternalDocumentation', (_message.Message,), {
- 'DESCRIPTOR' : _EXTERNALDOCUMENTATION,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation)
- })
-_sym_db.RegisterMessage(ExternalDocumentation)
-
-Schema = _reflection.GeneratedProtocolMessageType('Schema', (_message.Message,), {
- 'DESCRIPTOR' : _SCHEMA,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Schema)
- })
-_sym_db.RegisterMessage(Schema)
-
-JSONSchema = _reflection.GeneratedProtocolMessageType('JSONSchema', (_message.Message,), {
- 'DESCRIPTOR' : _JSONSCHEMA,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.JSONSchema)
- })
-_sym_db.RegisterMessage(JSONSchema)
-
-Tag = _reflection.GeneratedProtocolMessageType('Tag', (_message.Message,), {
- 'DESCRIPTOR' : _TAG,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Tag)
- })
-_sym_db.RegisterMessage(Tag)
-
-SecurityDefinitions = _reflection.GeneratedProtocolMessageType('SecurityDefinitions', (_message.Message,), {
-
- 'SecurityEntry' : _reflection.GeneratedProtocolMessageType('SecurityEntry', (_message.Message,), {
- 'DESCRIPTOR' : _SECURITYDEFINITIONS_SECURITYENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry)
- })
- ,
- 'DESCRIPTOR' : _SECURITYDEFINITIONS,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions)
- })
-_sym_db.RegisterMessage(SecurityDefinitions)
-_sym_db.RegisterMessage(SecurityDefinitions.SecurityEntry)
-
-SecurityScheme = _reflection.GeneratedProtocolMessageType('SecurityScheme', (_message.Message,), {
-
- 'ExtensionsEntry' : _reflection.GeneratedProtocolMessageType('ExtensionsEntry', (_message.Message,), {
- 'DESCRIPTOR' : _SECURITYSCHEME_EXTENSIONSENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry)
- })
- ,
- 'DESCRIPTOR' : _SECURITYSCHEME,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme)
- })
-_sym_db.RegisterMessage(SecurityScheme)
-_sym_db.RegisterMessage(SecurityScheme.ExtensionsEntry)
-
-SecurityRequirement = _reflection.GeneratedProtocolMessageType('SecurityRequirement', (_message.Message,), {
-
- 'SecurityRequirementValue' : _reflection.GeneratedProtocolMessageType('SecurityRequirementValue', (_message.Message,), {
- 'DESCRIPTOR' : _SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue)
- })
- ,
-
- 'SecurityRequirementEntry' : _reflection.GeneratedProtocolMessageType('SecurityRequirementEntry', (_message.Message,), {
- 'DESCRIPTOR' : _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry)
- })
- ,
- 'DESCRIPTOR' : _SECURITYREQUIREMENT,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement)
- })
-_sym_db.RegisterMessage(SecurityRequirement)
-_sym_db.RegisterMessage(SecurityRequirement.SecurityRequirementValue)
-_sym_db.RegisterMessage(SecurityRequirement.SecurityRequirementEntry)
-
-Scopes = _reflection.GeneratedProtocolMessageType('Scopes', (_message.Message,), {
-
- 'ScopeEntry' : _reflection.GeneratedProtocolMessageType('ScopeEntry', (_message.Message,), {
- 'DESCRIPTOR' : _SCOPES_SCOPEENTRY,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry)
- })
- ,
- 'DESCRIPTOR' : _SCOPES,
- '__module__' : 'protoc_gen_swagger.options.openapiv2_pb2'
- # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Scopes)
- })
-_sym_db.RegisterMessage(Scopes)
-_sym_db.RegisterMessage(Scopes.ScopeEntry)
-
-
-DESCRIPTOR._options = None
-_SWAGGER_RESPONSESENTRY._options = None
-_SWAGGER_EXTENSIONSENTRY._options = None
-_OPERATION_RESPONSESENTRY._options = None
-_OPERATION_EXTENSIONSENTRY._options = None
-_RESPONSE_EXTENSIONSENTRY._options = None
-_INFO_EXTENSIONSENTRY._options = None
-_SECURITYDEFINITIONS_SECURITYENTRY._options = None
-_SECURITYSCHEME_EXTENSIONSENTRY._options = None
-_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._options = None
-_SCOPES_SCOPEENTRY._options = None
-# @@protoc_insertion_point(module_scope)
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/py.typed b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/py.typed
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/send/__init__.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/send/__init__.py
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/translate/__init__.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/translate/__init__.py
deleted file mode 100644
index ea1f17c00f6..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/translate/__init__.py
+++ /dev/null
@@ -1,406 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import abc
-from typing import Optional, Sequence
-
-from google.protobuf.duration_pb2 import Duration
-from google.protobuf.timestamp_pb2 import Timestamp
-
-from opentelemetry.exporter.jaeger.proto.grpc.gen import model_pb2
-
-from opentelemetry.sdk.trace import ReadableSpan, StatusCode
-from opentelemetry.trace import SpanKind
-from opentelemetry.util import types
-
-
-OTLP_JAEGER_SPAN_KIND = {
- SpanKind.CLIENT: "client",
- SpanKind.SERVER: "server",
- SpanKind.CONSUMER: "consumer",
- SpanKind.PRODUCER: "producer",
- SpanKind.INTERNAL: "internal",
-}
-
-NAME_KEY = "otel.library.name"
-VERSION_KEY = "otel.library.version"
-_SCOPE_NAME_KEY = "otel.scope.name"
-_SCOPE_VERSION_KEY = "otel.scope.version"
-
-
-def _nsec_to_usec_round(nsec: int) -> int:
- """Round nanoseconds to microseconds"""
- return (nsec + 500) // 10**3
-
-
-def _convert_int_to_i64(val):
- """Convert integer to signed int64 (i64)"""
- if val > 0x7FFFFFFFFFFFFFFF:
- val -= 0x10000000000000000
- return val
-
-
-class Translator(abc.ABC):
- def __init__(self, max_tag_value_length: Optional[int] = None):
- self._max_tag_value_length = max_tag_value_length
-
- @abc.abstractmethod
- def _translate_span(self, span):
- """Translates span to jaeger format.
-
- Args:
- span: span to translate
- """
-
- @abc.abstractmethod
- def _extract_tags(self, span):
- """Extracts tags from span and returns list of jaeger Tags.
-
- Args:
- span: span to extract tags
- """
-
- @abc.abstractmethod
- def _extract_refs(self, span):
- """Extracts references from span and returns list of jaeger SpanRefs.
-
- Args:
- span: span to extract references
- """
-
- @abc.abstractmethod
- def _extract_logs(self, span):
- """Extracts logs from span and returns list of jaeger Logs.
-
- Args:
- span: span to extract logs
- """
-
-
-class Translate:
- def __init__(self, spans):
- self.spans = spans
-
- def _translate(self, translator: Translator):
- translated_spans = []
- for span in self.spans:
- # pylint: disable=protected-access
- translated_span = translator._translate_span(span)
- translated_spans.append(translated_span)
- return translated_spans
-
-
-# pylint: disable=no-member,too-many-locals,no-self-use
-
-
-def _trace_id_to_bytes(trace_id: int) -> bytes:
- """Returns bytes representation of trace id."""
- return trace_id.to_bytes(16, "big")
-
-
-def _span_id_to_bytes(span_id: int) -> bytes:
- """Returns bytes representation of span id"""
- return span_id.to_bytes(8, "big")
-
-
-def _get_string_key_value(key, value: str) -> model_pb2.KeyValue:
- """Returns jaeger string KeyValue."""
- return model_pb2.KeyValue(
- key=key, v_str=value, v_type=model_pb2.ValueType.STRING
- )
-
-
-def _get_bool_key_value(key: str, value: bool) -> model_pb2.KeyValue:
- """Returns jaeger boolean KeyValue."""
- return model_pb2.KeyValue(
- key=key, v_bool=value, v_type=model_pb2.ValueType.BOOL
- )
-
-
-def _get_long_key_value(key: str, value: int) -> model_pb2.KeyValue:
- """Returns jaeger long KeyValue."""
- return model_pb2.KeyValue(
- key=key, v_int64=value, v_type=model_pb2.ValueType.INT64
- )
-
-
-def _get_double_key_value(key: str, value: float) -> model_pb2.KeyValue:
- """Returns jaeger double KeyValue."""
- return model_pb2.KeyValue(
- key=key, v_float64=value, v_type=model_pb2.ValueType.FLOAT64
- )
-
-
-def _get_binary_key_value(key: str, value: bytes) -> model_pb2.KeyValue:
- """Returns jaeger double KeyValue."""
- return model_pb2.KeyValue(
- key=key, v_binary=value, v_type=model_pb2.ValueType.BINARY
- )
-
-
-def _translate_attribute(
- key: str, value: types.AttributeValue, max_length: Optional[int]
-) -> Optional[model_pb2.KeyValue]:
- """Convert the attributes to jaeger keyvalues."""
- translated = None
- if isinstance(value, bool):
- translated = _get_bool_key_value(key, value)
- elif isinstance(value, str):
- if max_length is not None:
- value = value[:max_length]
- translated = _get_string_key_value(key, value)
- elif isinstance(value, int):
- translated = _get_long_key_value(key, value)
- elif isinstance(value, float):
- translated = _get_double_key_value(key, value)
- elif isinstance(value, tuple):
- value = str(value)
- if max_length is not None:
- value = value[:max_length]
- translated = _get_string_key_value(key, value)
- return translated
-
-
-def _extract_resource_tags(
- span: ReadableSpan, max_tag_value_length: Optional[int]
-) -> Sequence[model_pb2.KeyValue]:
- """Extracts resource attributes from span and returns
- list of jaeger keyvalues.
-
- Args:
- span: span to extract keyvalues
- """
- tags = []
- for key, value in span.resource.attributes.items():
- tag = _translate_attribute(key, value, max_tag_value_length)
- if tag:
- tags.append(tag)
- return tags
-
-
-def _duration_from_two_time_stamps(
- start: Timestamp, end: Timestamp
-) -> Duration:
- """Compute Duration from two Timestamps.
-
- See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration
- """
- duration = Duration(
- seconds=end.seconds - start.seconds,
- nanos=end.nanos - start.nanos,
- )
- # pylint: disable=chained-comparison
- if duration.seconds < 0 and duration.nanos > 0:
- duration.seconds += 1
- duration.nanos -= 1000000000
- elif duration.seconds > 0 and duration.nanos < 0:
- duration.seconds -= 1
- duration.nanos += 1000000000
- return duration
-
-
-def _proto_timestamp_from_epoch_nanos(nsec: int) -> Timestamp:
- """Create a Timestamp from the number of nanoseconds elapsed from the epoch.
-
- See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp
- """
- nsec_time = nsec / 1e9
- seconds = int(nsec_time)
- nanos = int((nsec_time - seconds) * 1e9)
- return Timestamp(seconds=seconds, nanos=nanos)
-
-
-class ProtobufTranslator(Translator):
- def __init__(
- self, svc_name: str, max_tag_value_length: Optional[int] = None
- ):
- super().__init__(max_tag_value_length)
- self.svc_name = svc_name
-
- def _translate_span(self, span: ReadableSpan) -> model_pb2.Span:
-
- ctx = span.get_span_context()
- # pb2 span expects in byte format
- trace_id = _trace_id_to_bytes(ctx.trace_id)
- span_id = _span_id_to_bytes(ctx.span_id)
-
- start_time = _proto_timestamp_from_epoch_nanos(span.start_time)
- end_time = _proto_timestamp_from_epoch_nanos(span.end_time)
- duration = _duration_from_two_time_stamps(start_time, end_time)
-
- tags = self._extract_tags(span)
- refs = self._extract_refs(span)
- logs = self._extract_logs(span)
-
- flags = int(ctx.trace_flags)
-
- process = model_pb2.Process(
- service_name=self.svc_name,
- tags=_extract_resource_tags(span, self._max_tag_value_length),
- )
- jaeger_span = model_pb2.Span(
- trace_id=trace_id,
- span_id=span_id,
- operation_name=span.name,
- references=refs,
- flags=flags,
- start_time=start_time,
- duration=duration,
- tags=tags,
- logs=logs,
- process=process,
- )
- return jaeger_span
-
- def _extract_tags(
- self, span: ReadableSpan
- ) -> Sequence[model_pb2.KeyValue]:
- translated = []
- if span.attributes:
- for key, value in span.attributes.items():
- key_value = _translate_attribute(
- key, value, self._max_tag_value_length
- )
- if key_value is not None:
- translated.append(key_value)
- if span.resource.attributes:
- for key, value in span.resource.attributes.items():
- key_value = _translate_attribute(
- key, value, self._max_tag_value_length
- )
- if key_value:
- translated.append(key_value)
-
- status = span.status
- if status.status_code is not StatusCode.UNSET:
- translated.append(
- _get_string_key_value(
- "otel.status_code", status.status_code.name
- )
- )
- if status.description is not None:
- translated.append(
- _get_string_key_value(
- "otel.status_description", status.description
- )
- )
- translated.append(
- _get_string_key_value(
- "span.kind", OTLP_JAEGER_SPAN_KIND[span.kind]
- )
- )
-
- # Instrumentation scope KeyValues
- if span.instrumentation_scope:
- name = _get_string_key_value(
- NAME_KEY, span.instrumentation_scope.name
- )
- version = _get_string_key_value(
- VERSION_KEY, span.instrumentation_scope.version
- )
- scope_name = _get_string_key_value(
- _SCOPE_NAME_KEY, span.instrumentation_scope.name
- )
- scope_version = _get_string_key_value(
- _SCOPE_VERSION_KEY, span.instrumentation_scope.version
- )
- translated.extend([name, version])
- translated.extend([scope_name, scope_version])
-
- # Make sure to add "error" tag if span status is not OK
- if not span.status.is_ok:
- translated.append(_get_bool_key_value("error", True))
-
- if span.dropped_attributes:
- translated.append(
- _get_long_key_value(
- "otel.dropped_attributes_count", span.dropped_attributes
- )
- )
- if span.dropped_events:
- translated.append(
- _get_long_key_value(
- "otel.dropped_events_count", span.dropped_events
- )
- )
- if span.dropped_links:
- translated.append(
- _get_long_key_value(
- "otel.dropped_links_count", span.dropped_links
- )
- )
- return translated
-
- def _extract_refs(
- self, span: ReadableSpan
- ) -> Optional[Sequence[model_pb2.SpanRef]]:
-
- refs = []
- if span.parent:
- ctx = span.get_span_context()
- parent_id = span.parent.span_id
- parent_ref = model_pb2.SpanRef(
- ref_type=model_pb2.SpanRefType.CHILD_OF,
- trace_id=_trace_id_to_bytes(ctx.trace_id),
- span_id=_span_id_to_bytes(parent_id),
- )
- refs.append(parent_ref)
-
- for link in span.links:
- trace_id = link.context.trace_id
- span_id = link.context.span_id
- refs.append(
- model_pb2.SpanRef(
- ref_type=model_pb2.SpanRefType.FOLLOWS_FROM,
- trace_id=_trace_id_to_bytes(trace_id),
- span_id=_span_id_to_bytes(span_id),
- )
- )
- return refs
-
- def _extract_logs(
- self, span: ReadableSpan
- ) -> Optional[Sequence[model_pb2.Log]]:
- if not span.events:
- return None
-
- logs = []
- for event in span.events:
- fields = []
- for key, value in event.attributes.items():
- tag = _translate_attribute(
- key, value, self._max_tag_value_length
- )
- if tag:
- fields.append(tag)
-
- if event.attributes.dropped:
- fields.append(
- _translate_attribute(
- "otel.dropped_attributes_count",
- event.attributes.dropped,
- self._max_tag_value_length,
- )
- )
-
- fields.append(
- _get_string_key_value(
- key="message",
- value=event.name,
- )
- )
- event_ts = _proto_timestamp_from_epoch_nanos(event.timestamp)
- logs.append(model_pb2.Log(timestamp=event_ts, fields=fields))
-
- return logs
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/util.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/util.py
deleted file mode 100644
index 4f943a0e4c6..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/util.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import logging
-from os import environ
-
-from grpc import ChannelCredentials, ssl_channel_credentials
-
-from opentelemetry.sdk.environment_variables import (
- OTEL_EXPORTER_JAEGER_CERTIFICATE,
-)
-
-logger = logging.getLogger(__name__)
-
-
-def _load_credential_from_file(path) -> ChannelCredentials:
- try:
- with open(path, "rb") as creds_file:
- credential = creds_file.read()
- return ssl_channel_credentials(credential)
- except FileNotFoundError:
- logger.exception("Failed to read credential file")
- return None
-
-
-def _get_credentials(param):
- if param is not None:
- return param
- creds_env = environ.get(OTEL_EXPORTER_JAEGER_CERTIFICATE)
- if creds_env:
- return _load_credential_from_file(creds_env)
- return ssl_channel_credentials()
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/version.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/version.py
deleted file mode 100644
index f2d56fac64e..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/version.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 2019, OpenCensus Authors
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-__version__ = "1.22.0.dev"
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/__init__.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/__init__.py
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/certs/cred.cert b/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/certs/cred.cert
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py
deleted file mode 100644
index a886a43c527..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py
+++ /dev/null
@@ -1,524 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import os
-import unittest
-from collections import OrderedDict
-from unittest import mock
-
-import opentelemetry.exporter.jaeger.proto.grpc.translate as pb_translator
-from opentelemetry import trace as trace_api
-from opentelemetry.exporter.jaeger.proto.grpc import JaegerExporter
-
-# pylint:disable=no-name-in-module
-# pylint:disable=import-error
-from opentelemetry.exporter.jaeger.proto.grpc.gen import model_pb2
-from opentelemetry.exporter.jaeger.proto.grpc.translate import (
- _SCOPE_NAME_KEY,
- _SCOPE_VERSION_KEY,
- NAME_KEY,
- VERSION_KEY,
- Translate,
-)
-from opentelemetry.sdk import trace
-from opentelemetry.sdk.environment_variables import (
- OTEL_EXPORTER_JAEGER_CERTIFICATE,
- OTEL_EXPORTER_JAEGER_ENDPOINT,
- OTEL_EXPORTER_JAEGER_GRPC_INSECURE,
- OTEL_EXPORTER_JAEGER_TIMEOUT,
- OTEL_RESOURCE_ATTRIBUTES,
-)
-from opentelemetry.sdk.resources import SERVICE_NAME, Resource
-from opentelemetry.sdk.trace import TracerProvider
-from opentelemetry.sdk.trace.export import SpanExportResult
-from opentelemetry.sdk.util.instrumentation import InstrumentationScope
-from opentelemetry.test.spantestutil import (
- get_span_with_dropped_attributes_events_links,
-)
-from opentelemetry.trace.status import Status, StatusCode
-
-
-def _translate_spans_with_dropped_attributes():
- span = get_span_with_dropped_attributes_events_links()
- translate = Translate([span])
-
- # pylint: disable=protected-access
- return translate._translate(pb_translator.ProtobufTranslator("svc"))
-
-
-# pylint:disable=no-member
-class TestJaegerExporter(unittest.TestCase):
- def setUp(self):
- # create and save span to be used in tests
- self.context = trace_api.SpanContext(
- trace_id=0x000000000000000000000000DEADBEEF,
- span_id=0x00000000DEADBEF0,
- is_remote=False,
- )
-
- self._test_span = trace._Span("test_span", context=self.context)
- self._test_span.start()
- self._test_span.end()
-
- # pylint: disable=protected-access
-
- def test_constructor_by_environment_variables(self):
- """Test using Environment Variables."""
- # pylint: disable=protected-access
- service = "my-opentelemetry-jaeger"
-
- collector_endpoint = "localhost:14250"
-
- env_patch = mock.patch.dict(
- "os.environ",
- {
- OTEL_EXPORTER_JAEGER_ENDPOINT: collector_endpoint,
- OTEL_EXPORTER_JAEGER_CERTIFICATE: os.path.dirname(__file__)
- + "/certs/cred.cert",
- OTEL_RESOURCE_ATTRIBUTES: "service.name=my-opentelemetry-jaeger",
- OTEL_EXPORTER_JAEGER_TIMEOUT: "5",
- OTEL_EXPORTER_JAEGER_GRPC_INSECURE: "False",
- },
- )
-
- env_patch.start()
- provider = TracerProvider(resource=Resource.create({}))
- trace_api.set_tracer_provider(provider)
- exporter = JaegerExporter()
- self.assertEqual(exporter.service_name, service)
- self.assertIsNotNone(exporter._collector_grpc_client)
- self.assertEqual(exporter.collector_endpoint, collector_endpoint)
- self.assertEqual(exporter._timeout, 5)
- self.assertIsNotNone(exporter.credentials)
- self.assertEqual(exporter.insecure, False)
- env_patch.stop()
-
- # pylint: disable=too-many-locals,too-many-statements
- def test_translate_to_jaeger(self):
-
- span_names = ("test1", "test2", "test3")
- trace_id = 0x6E0C63257DE34C926F9EFCD03927272E
- span_id = 0x34BF92DEEFC58C92
- parent_id = 0x1111111111111111
- other_id = 0x2222222222222222
-
- base_time = 683647322 * 10**9 # in ns
- start_times = (
- base_time,
- base_time + 150 * 10**6,
- base_time + 300 * 10**6,
- )
- durations = (50 * 10**6, 100 * 10**6, 200 * 10**6)
- end_times = (
- start_times[0] + durations[0],
- start_times[1] + durations[1],
- start_times[2] + durations[2],
- )
-
- span_context = trace_api.SpanContext(
- trace_id, span_id, is_remote=False
- )
- parent_span_context = trace_api.SpanContext(
- trace_id, parent_id, is_remote=False
- )
- other_context = trace_api.SpanContext(
- trace_id, other_id, is_remote=False
- )
-
- event_attributes = OrderedDict(
- [
- ("annotation_bool", True),
- ("annotation_string", "annotation_test"),
- ("key_float", 0.3),
- ]
- )
-
- event_timestamp = base_time + 50 * 10**6
- # pylint:disable=protected-access
- event_timestamp_proto = (
- pb_translator._proto_timestamp_from_epoch_nanos(event_timestamp)
- )
-
- event = trace.Event(
- name="event0",
- timestamp=event_timestamp,
- attributes=event_attributes,
- )
-
- link_attributes = {"key_bool": True}
-
- link = trace_api.Link(
- context=other_context, attributes=link_attributes
- )
-
- default_tags = [
- model_pb2.KeyValue(
- key="span.kind",
- v_type=model_pb2.ValueType.STRING,
- v_str="internal",
- ),
- ]
-
- otel_spans = [
- trace._Span(
- name=span_names[0],
- context=span_context,
- parent=parent_span_context,
- events=(event,),
- links=(link,),
- kind=trace_api.SpanKind.CLIENT,
- resource=Resource(
- attributes={"key_resource": "some_resource"}
- ),
- ),
- trace._Span(
- name=span_names[1],
- context=parent_span_context,
- parent=None,
- resource=Resource({}),
- ),
- trace._Span(
- name=span_names[2],
- context=other_context,
- parent=None,
- resource=Resource({}),
- instrumentation_scope=InstrumentationScope(
- name="name", version="version"
- ),
- ),
- ]
-
- otel_spans[0].start(start_time=start_times[0])
- # added here to preserve order
- otel_spans[0].set_attribute("key_bool", False)
- otel_spans[0].set_attribute("key_string", "hello_world")
- otel_spans[0].set_attribute("key_float", 111.22)
- otel_spans[0].set_attribute("key_tuple", ("tuple_element",))
- otel_spans[0].set_status(
- Status(StatusCode.ERROR, "Example description")
- )
- otel_spans[0].end(end_time=end_times[0])
-
- otel_spans[1].start(start_time=start_times[1])
- otel_spans[1].end(end_time=end_times[1])
-
- otel_spans[2].start(start_time=start_times[2])
- otel_spans[2].set_status(Status(StatusCode.OK))
- otel_spans[2].end(end_time=end_times[2])
-
- translate = Translate(otel_spans)
- # pylint: disable=protected-access
- spans = translate._translate(pb_translator.ProtobufTranslator("svc"))
-
- span1_start_time = pb_translator._proto_timestamp_from_epoch_nanos(
- start_times[0]
- )
- span2_start_time = pb_translator._proto_timestamp_from_epoch_nanos(
- start_times[1]
- )
- span3_start_time = pb_translator._proto_timestamp_from_epoch_nanos(
- start_times[2]
- )
-
- span1_end_time = pb_translator._proto_timestamp_from_epoch_nanos(
- end_times[0]
- )
- span2_end_time = pb_translator._proto_timestamp_from_epoch_nanos(
- end_times[1]
- )
- span3_end_time = pb_translator._proto_timestamp_from_epoch_nanos(
- end_times[2]
- )
-
- span1_duration = pb_translator._duration_from_two_time_stamps(
- span1_start_time, span1_end_time
- )
- span2_duration = pb_translator._duration_from_two_time_stamps(
- span2_start_time, span2_end_time
- )
- span3_duration = pb_translator._duration_from_two_time_stamps(
- span3_start_time, span3_end_time
- )
-
- expected_spans = [
- model_pb2.Span(
- operation_name=span_names[0],
- trace_id=pb_translator._trace_id_to_bytes(trace_id),
- span_id=pb_translator._span_id_to_bytes(span_id),
- start_time=span1_start_time,
- duration=span1_duration,
- flags=0,
- tags=[
- model_pb2.KeyValue(
- key="key_bool",
- v_type=model_pb2.ValueType.BOOL,
- v_bool=False,
- ),
- model_pb2.KeyValue(
- key="key_string",
- v_type=model_pb2.ValueType.STRING,
- v_str="hello_world",
- ),
- model_pb2.KeyValue(
- key="key_float",
- v_type=model_pb2.ValueType.FLOAT64,
- v_float64=111.22,
- ),
- model_pb2.KeyValue(
- key="key_tuple",
- v_type=model_pb2.ValueType.STRING,
- v_str="('tuple_element',)",
- ),
- model_pb2.KeyValue(
- key="key_resource",
- v_type=model_pb2.ValueType.STRING,
- v_str="some_resource",
- ),
- model_pb2.KeyValue(
- key="otel.status_code",
- v_type=model_pb2.ValueType.STRING,
- v_str="ERROR",
- ),
- model_pb2.KeyValue(
- key="otel.status_description",
- v_type=model_pb2.ValueType.STRING,
- v_str="Example description",
- ),
- model_pb2.KeyValue(
- key="span.kind",
- v_type=model_pb2.ValueType.STRING,
- v_str="client",
- ),
- model_pb2.KeyValue(
- key="error",
- v_type=model_pb2.ValueType.BOOL,
- v_bool=True,
- ),
- ],
- references=[
- model_pb2.SpanRef(
- ref_type=model_pb2.SpanRefType.CHILD_OF,
- trace_id=pb_translator._trace_id_to_bytes(trace_id),
- span_id=pb_translator._span_id_to_bytes(parent_id),
- ),
- model_pb2.SpanRef(
- ref_type=model_pb2.SpanRefType.FOLLOWS_FROM,
- trace_id=pb_translator._trace_id_to_bytes(trace_id),
- span_id=pb_translator._span_id_to_bytes(other_id),
- ),
- ],
- logs=[
- model_pb2.Log(
- timestamp=event_timestamp_proto,
- fields=[
- model_pb2.KeyValue(
- key="annotation_bool",
- v_type=model_pb2.ValueType.BOOL,
- v_bool=True,
- ),
- model_pb2.KeyValue(
- key="annotation_string",
- v_type=model_pb2.ValueType.STRING,
- v_str="annotation_test",
- ),
- model_pb2.KeyValue(
- key="key_float",
- v_type=model_pb2.ValueType.FLOAT64,
- v_float64=0.3,
- ),
- model_pb2.KeyValue(
- key="message",
- v_type=model_pb2.ValueType.STRING,
- v_str="event0",
- ),
- ],
- )
- ],
- process=model_pb2.Process(
- service_name="svc",
- tags=[
- model_pb2.KeyValue(
- key="key_resource",
- v_str="some_resource",
- v_type=model_pb2.ValueType.STRING,
- )
- ],
- ),
- ),
- model_pb2.Span(
- operation_name=span_names[1],
- trace_id=pb_translator._trace_id_to_bytes(trace_id),
- span_id=pb_translator._span_id_to_bytes(parent_id),
- start_time=span2_start_time,
- duration=span2_duration,
- flags=0,
- tags=default_tags,
- process=model_pb2.Process(
- service_name="svc",
- ),
- ),
- model_pb2.Span(
- operation_name=span_names[2],
- trace_id=pb_translator._trace_id_to_bytes(trace_id),
- span_id=pb_translator._span_id_to_bytes(other_id),
- start_time=span3_start_time,
- duration=span3_duration,
- flags=0,
- tags=[
- model_pb2.KeyValue(
- key="otel.status_code",
- v_type=model_pb2.ValueType.STRING,
- v_str="OK",
- ),
- model_pb2.KeyValue(
- key="span.kind",
- v_type=model_pb2.ValueType.STRING,
- v_str="internal",
- ),
- model_pb2.KeyValue(
- key=NAME_KEY,
- v_type=model_pb2.ValueType.STRING,
- v_str="name",
- ),
- model_pb2.KeyValue(
- key=VERSION_KEY,
- v_type=model_pb2.ValueType.STRING,
- v_str="version",
- ),
- model_pb2.KeyValue(
- key=_SCOPE_NAME_KEY,
- v_type=model_pb2.ValueType.STRING,
- v_str="name",
- ),
- model_pb2.KeyValue(
- key=_SCOPE_VERSION_KEY,
- v_type=model_pb2.ValueType.STRING,
- v_str="version",
- ),
- ],
- process=model_pb2.Process(
- service_name="svc",
- ),
- ),
- ]
-
- # events are complicated to compare because order of fields
- # (attributes) in otel is not important but in jeager it is
- # pylint: disable=no-member
- self.assertCountEqual(
- spans[0].logs[0].fields,
- expected_spans[0].logs[0].fields,
- )
-
- self.assertEqual(spans, expected_spans)
-
- def test_max_tag_value_length(self):
- span = trace._Span(
- name="span",
- resource=Resource(
- attributes={
- "key_resource": "some_resource some_resource some_more_resource"
- }
- ),
- context=trace_api.SpanContext(
- trace_id=0x000000000000000000000000DEADBEEF,
- span_id=0x00000000DEADBEF0,
- is_remote=False,
- ),
- )
-
- span.start()
- span.set_attribute("key_bool", False)
- span.set_attribute("key_string", "hello_world hello_world hello_world")
- span.set_attribute("key_float", 111.22)
- span.set_attribute("key_int", 1100)
- span.set_attribute("key_tuple", ("tuple_element", "tuple_element2"))
- span.end()
-
- translate = Translate([span])
-
- # does not truncate by default
- # pylint: disable=protected-access
- spans = translate._translate(pb_translator.ProtobufTranslator("svc"))
- tags_by_keys = {
- tag.key: tag.v_str
- for tag in spans[0].tags
- if tag.v_type == model_pb2.ValueType.STRING
- }
- self.assertEqual(
- "hello_world hello_world hello_world", tags_by_keys["key_string"]
- )
- self.assertEqual(
- "('tuple_element', 'tuple_element2')", tags_by_keys["key_tuple"]
- )
- self.assertEqual(
- "some_resource some_resource some_more_resource",
- tags_by_keys["key_resource"],
- )
-
- # truncates when max_tag_value_length is passed
- # pylint: disable=protected-access
- spans = translate._translate(
- pb_translator.ProtobufTranslator("svc", max_tag_value_length=5)
- )
- tags_by_keys = {
- tag.key: tag.v_str
- for tag in spans[0].tags
- if tag.v_type == model_pb2.ValueType.STRING
- }
- self.assertEqual("hello", tags_by_keys["key_string"])
- self.assertEqual("('tup", tags_by_keys["key_tuple"])
- self.assertEqual("some_", tags_by_keys["key_resource"])
-
- def test_export(self):
- client_mock = mock.Mock()
- spans = []
- exporter = JaegerExporter()
- exporter._grpc_client = client_mock
- status = exporter.export(spans)
- self.assertEqual(SpanExportResult.SUCCESS, status)
-
- def test_export_span_service_name(self):
- resource = Resource.create({SERVICE_NAME: "test"})
- span = trace._Span(
- "test_span", context=self.context, resource=resource
- )
- span.start()
- span.end()
- client_mock = mock.Mock()
- exporter = JaegerExporter()
- exporter._grpc_client = client_mock
- exporter.export([span])
- self.assertEqual(exporter.service_name, "test")
-
- def test_dropped_span_attributes(self):
- spans = _translate_spans_with_dropped_attributes()
- tags_by_keys = {
- tag.key: tag.v_str or tag.v_int64 for tag in spans[0].tags
- }
- self.assertEqual(1, tags_by_keys["otel.dropped_links_count"])
- self.assertEqual(2, tags_by_keys["otel.dropped_attributes_count"])
- self.assertEqual(3, tags_by_keys["otel.dropped_events_count"])
-
- def test_dropped_event_attributes(self):
- spans = _translate_spans_with_dropped_attributes()
- fields_by_keys = {
- tag.key: tag.v_str or tag.v_int64
- for tag in spans[0].logs[0].fields
- }
- # get events
- self.assertEqual(
- 2,
- fields_by_keys["otel.dropped_attributes_count"],
- )
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/LICENSE b/exporter/opentelemetry-exporter-jaeger-thrift/LICENSE
deleted file mode 100644
index 1ef7dad2c5c..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright The OpenTelemetry Authors
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/README.rst b/exporter/opentelemetry-exporter-jaeger-thrift/README.rst
deleted file mode 100644
index d6930f624ff..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/README.rst
+++ /dev/null
@@ -1,42 +0,0 @@
-OpenTelemetry Jaeger Thrift Exporter
-====================================
-
-.. warning::
- Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead.
- Support for this exporter will end July 2023.
-
- This package is no longer being tested.
-
-|pypi|
-
-.. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-jaeger-thrift.svg
- :target: https://pypi.org/project/opentelemetry-exporter-jaeger-thrift/
-
-This library allows to export tracing data to `Jaeger `_ using Thrift.
-
-Installation
-------------
-
-::
-
- pip install opentelemetry-exporter-jaeger-thrift
-
-
-.. _Jaeger: https://www.jaegertracing.io/
-.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/
-
-Configuration
--------------
-
-OpenTelemetry Jaeger Exporter can be configured by setting `JaegerExporter parameters
-`_ or by setting
-`environment variables `_
-
-References
-----------
-
-* `OpenTelemetry Jaeger Exporter `_
-* `Jaeger `_
-* `OpenTelemetry Project `_
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/examples/jaeger_exporter_example.py b/exporter/opentelemetry-exporter-jaeger-thrift/examples/jaeger_exporter_example.py
deleted file mode 100644
index 5678e3346d2..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/examples/jaeger_exporter_example.py
+++ /dev/null
@@ -1,50 +0,0 @@
-import time
-
-from opentelemetry import trace
-from opentelemetry.exporter.jaeger import thrift
-from opentelemetry.sdk.resources import SERVICE_NAME, Resource
-from opentelemetry.sdk.trace import TracerProvider
-from opentelemetry.sdk.trace.export import BatchSpanProcessor
-
-trace.set_tracer_provider(
- TracerProvider(
- resource=Resource.create({SERVICE_NAME: "my-helloworld-service"})
- )
-)
-tracer = trace.get_tracer(__name__)
-
-# create a JaegerExporter
-jaeger_exporter = thrift.JaegerExporter(
- # configure agent
- agent_host_name="localhost",
- agent_port=6831,
- # optional: configure also collector
- # collector_endpoint="http://localhost:14268/api/traces?format=jaeger.thrift",
- # username=xxxx, # optional
- # password=xxxx, # optional
-)
-
-# create a BatchSpanProcessor and add the exporter to it
-span_processor = BatchSpanProcessor(jaeger_exporter)
-
-# add to the tracer factory
-trace.get_tracer_provider().add_span_processor(span_processor)
-
-# create some spans for testing
-with tracer.start_as_current_span("foo") as foo:
- time.sleep(0.1)
- foo.set_attribute("my_atribbute", True)
- foo.add_event("event in foo", {"name": "foo1"})
- with tracer.start_as_current_span(
- "bar", links=[trace.Link(foo.get_span_context())]
- ) as bar:
- time.sleep(0.2)
- bar.set_attribute("speed", 100.0)
-
- with tracer.start_as_current_span("baz") as baz:
- time.sleep(0.3)
- baz.set_attribute("name", "mauricio")
-
- time.sleep(0.2)
-
- time.sleep(0.1)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/pyproject.toml b/exporter/opentelemetry-exporter-jaeger-thrift/pyproject.toml
deleted file mode 100644
index 48e3a768485..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/pyproject.toml
+++ /dev/null
@@ -1,53 +0,0 @@
-[build-system]
-requires = ["hatchling"]
-build-backend = "hatchling.build"
-
-[project]
-name = "opentelemetry-exporter-jaeger-thrift"
-dynamic = ["version"]
-description = "Jaeger Thrift Exporter for OpenTelemetry"
-readme = "README.rst"
-license = "Apache-2.0"
-requires-python = ">=3.7"
-authors = [
- { name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" },
-]
-classifiers = [
- "Development Status :: 5 - Production/Stable",
- "Intended Audience :: Developers",
- "License :: OSI Approved :: Apache Software License",
- "Programming Language :: Python",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
- "Programming Language :: Python :: 3.10",
- "Programming Language :: Python :: 3.11",
- "Typing :: Typed",
-]
-dependencies = [
- "opentelemetry-api ~= 1.3",
- "opentelemetry-sdk ~= 1.11",
- "thrift >= 0.10.0",
-]
-
-[project.optional-dependencies]
-test = []
-
-[project.entry-points.opentelemetry_traces_exporter]
-jaeger_thrift = "opentelemetry.exporter.jaeger.thrift:JaegerExporter"
-
-[project.urls]
-Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-jaeger-thrift"
-
-[tool.hatch.version]
-path = "src/opentelemetry/exporter/jaeger/thrift/version.py"
-
-[tool.hatch.build.targets.sdist]
-include = [
- "/src",
- "/tests",
-]
-
-[tool.hatch.build.targets.wheel]
-packages = ["src/opentelemetry"]
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py
deleted file mode 100644
index 95181ad6173..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/__init__.py
+++ /dev/null
@@ -1,233 +0,0 @@
-# Copyright 2018, OpenCensus Authors
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""
-
-OpenTelemetry Jaeger Thrift Exporter
-------------------------------------
-
-The **OpenTelemetry Jaeger Thrift Exporter** allows to export `OpenTelemetry`_ traces to `Jaeger`_.
-This exporter always sends traces to the configured agent using the Thrift compact protocol over UDP.
-When it is not feasible to deploy Jaeger Agent next to the application, for example, when the
-application code is running as Lambda function, a collector can be configured to send spans
-using Thrift over HTTP. If both agent and collector are configured, the exporter sends traces
-only to the collector to eliminate the duplicate entries.
-
-Usage
------
-
-.. code:: python
-
- from opentelemetry import trace
- from opentelemetry.exporter.jaeger.thrift import JaegerExporter
- from opentelemetry.sdk.resources import SERVICE_NAME, Resource
- from opentelemetry.sdk.trace import TracerProvider
- from opentelemetry.sdk.trace.export import BatchSpanProcessor
-
- trace.set_tracer_provider(
- TracerProvider(
- resource=Resource.create({SERVICE_NAME: "my-helloworld-service"})
- )
- )
- tracer = trace.get_tracer(__name__)
-
- # create a JaegerExporter
- jaeger_exporter = JaegerExporter(
- # configure agent
- agent_host_name='localhost',
- agent_port=6831,
- # optional: configure also collector
- # collector_endpoint='http://localhost:14268/api/traces?format=jaeger.thrift',
- # username=xxxx, # optional
- # password=xxxx, # optional
- # max_tag_value_length=None # optional
- )
-
- # Create a BatchSpanProcessor and add the exporter to it
- span_processor = BatchSpanProcessor(jaeger_exporter)
-
- # add to the tracer
- trace.get_tracer_provider().add_span_processor(span_processor)
-
- with tracer.start_as_current_span('foo'):
- print('Hello world!')
-
-You can configure the exporter with the following environment variables:
-
-- :envvar:`OTEL_EXPORTER_JAEGER_USER`
-- :envvar:`OTEL_EXPORTER_JAEGER_PASSWORD`
-- :envvar:`OTEL_EXPORTER_JAEGER_ENDPOINT`
-- :envvar:`OTEL_EXPORTER_JAEGER_AGENT_PORT`
-- :envvar:`OTEL_EXPORTER_JAEGER_AGENT_HOST`
-- :envvar:`OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES`
-- :envvar:`OTEL_EXPORTER_JAEGER_TIMEOUT`
-
-API
----
-.. _Jaeger: https://www.jaegertracing.io/
-.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/
-"""
-# pylint: disable=protected-access
-
-import logging
-from os import environ
-from typing import Optional
-
-from deprecated import deprecated
-
-from opentelemetry import trace
-from opentelemetry.exporter.jaeger.thrift.gen.jaeger import (
- Collector as jaeger_thrift,
-)
-from opentelemetry.exporter.jaeger.thrift.send import AgentClientUDP, Collector
-from opentelemetry.exporter.jaeger.thrift.translate import (
- ThriftTranslator,
- Translate,
-)
-from opentelemetry.sdk.environment_variables import (
- OTEL_EXPORTER_JAEGER_AGENT_HOST,
- OTEL_EXPORTER_JAEGER_AGENT_PORT,
- OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES,
- OTEL_EXPORTER_JAEGER_ENDPOINT,
- OTEL_EXPORTER_JAEGER_PASSWORD,
- OTEL_EXPORTER_JAEGER_TIMEOUT,
- OTEL_EXPORTER_JAEGER_USER,
-)
-from opentelemetry.sdk.resources import SERVICE_NAME, Resource
-from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult
-
-DEFAULT_AGENT_HOST_NAME = "localhost"
-DEFAULT_AGENT_PORT = 6831
-DEFAULT_EXPORT_TIMEOUT = 10
-
-logger = logging.getLogger(__name__)
-
-
-class JaegerExporter(SpanExporter):
- """Jaeger span exporter for OpenTelemetry.
-
- Args:
- agent_host_name: The host name of the Jaeger-Agent.
- agent_port: The port of the Jaeger-Agent.
- collector_endpoint: The endpoint of the Jaeger collector that uses
- Thrift over HTTP/HTTPS.
- username: The user name of the Basic Auth if authentication is
- required.
- password: The password of the Basic Auth if authentication is
- required.
- max_tag_value_length: Max length string attribute values can have. Set to None to disable.
- udp_split_oversized_batches: Re-emit oversized batches in smaller chunks.
- timeout: Maximum time the Jaeger exporter should wait for each batch export.
- """
-
- @deprecated(
- version="1.16.0",
- reason="Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead. Support for this exporter will end July 2023.",
- )
- def __init__(
- self,
- agent_host_name: Optional[str] = None,
- agent_port: Optional[int] = None,
- collector_endpoint: Optional[str] = None,
- username: Optional[str] = None,
- password: Optional[str] = None,
- max_tag_value_length: Optional[int] = None,
- udp_split_oversized_batches: bool = None,
- timeout: Optional[int] = None,
- ):
- self._max_tag_value_length = max_tag_value_length
- self.agent_host_name = agent_host_name or environ.get(
- OTEL_EXPORTER_JAEGER_AGENT_HOST, DEFAULT_AGENT_HOST_NAME
- )
-
- self.agent_port = agent_port or int(
- environ.get(OTEL_EXPORTER_JAEGER_AGENT_PORT, DEFAULT_AGENT_PORT)
- )
-
- self._timeout = timeout or int(
- environ.get(OTEL_EXPORTER_JAEGER_TIMEOUT, DEFAULT_EXPORT_TIMEOUT)
- )
-
- self.udp_split_oversized_batches = udp_split_oversized_batches or bool(
- environ.get(OTEL_EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES)
- )
- self._agent_client = AgentClientUDP(
- host_name=self.agent_host_name,
- port=self.agent_port,
- split_oversized_batches=self.udp_split_oversized_batches,
- )
- self.collector_endpoint = collector_endpoint or environ.get(
- OTEL_EXPORTER_JAEGER_ENDPOINT
- )
- self.username = username or environ.get(OTEL_EXPORTER_JAEGER_USER)
- self.password = password or environ.get(OTEL_EXPORTER_JAEGER_PASSWORD)
- self._collector = None
- tracer_provider = trace.get_tracer_provider()
- self.service_name = (
- tracer_provider.resource.attributes[SERVICE_NAME]
- if getattr(tracer_provider, "resource", None)
- else Resource.create().attributes.get(SERVICE_NAME)
- )
-
- @property
- def _collector_http_client(self) -> Optional[Collector]:
- if self._collector is not None:
- return self._collector
-
- if self.collector_endpoint is None:
- return None
-
- auth = None
- if self.username is not None and self.password is not None:
- auth = (self.username, self.password)
-
- # Thrift HTTP Client expects timeout in millis
- timeout_in_millis = self._timeout * 1000.0
- self._collector = Collector(
- thrift_url=self.collector_endpoint,
- auth=auth,
- timeout_in_millis=timeout_in_millis,
- )
- return self._collector
-
- def export(self, spans) -> SpanExportResult:
- # Populate service_name from first span
- # We restrict any SpanProcessor to be only associated with a single
- # TracerProvider, so it is safe to assume that all Spans in a single
- # batch all originate from one TracerProvider (and in turn have all
- # the same service.name)
- if spans:
- service_name = spans[0].resource.attributes.get(SERVICE_NAME)
- if service_name:
- self.service_name = service_name
- translator = Translate(spans)
- thrift_translator = ThriftTranslator(self._max_tag_value_length)
- jaeger_spans = translator._translate(thrift_translator)
- batch = jaeger_thrift.Batch(
- spans=jaeger_spans,
- process=jaeger_thrift.Process(serviceName=self.service_name),
- )
- if self._collector_http_client is not None:
- self._collector_http_client.submit(batch)
- else:
- self._agent_client.emit(batch)
-
- return SpanExportResult.SUCCESS
-
- def shutdown(self):
- pass
-
- def force_flush(self, timeout_millis: int = 30000) -> bool:
- return True
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/__init__.py
deleted file mode 100644
index 52b3cfb3e9c..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-
-import sys
-from os.path import dirname
-sys.path.append(dirname(__file__))
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent-remote b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent-remote
deleted file mode 100644
index 5db3d20804a..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent-remote
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from agent import Agent
-from agent.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' void emitZipkinBatch( spans)')
- print(' void emitBatch(Batch batch)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = Agent.Client(protocol)
-transport.open()
-
-if cmd == 'emitZipkinBatch':
- if len(args) != 1:
- print('emitZipkinBatch requires 1 args')
- sys.exit(1)
- pp.pprint(client.emitZipkinBatch(eval(args[0]),))
-
-elif cmd == 'emitBatch':
- if len(args) != 1:
- print('emitBatch requires 1 args')
- sys.exit(1)
- pp.pprint(client.emitBatch(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent.py
deleted file mode 100644
index e8e0fe662ed..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent.py
+++ /dev/null
@@ -1,246 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-
-
-class Iface(object):
- def emitZipkinBatch(self, spans):
- """
- Parameters:
- - spans
- """
- pass
-
- def emitBatch(self, batch):
- """
- Parameters:
- - batch
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def emitZipkinBatch(self, spans):
- """
- Parameters:
- - spans
- """
- self.send_emitZipkinBatch(spans)
-
- def send_emitZipkinBatch(self, spans):
- self._oprot.writeMessageBegin('emitZipkinBatch', TMessageType.ONEWAY, self._seqid)
- args = emitZipkinBatch_args()
- args.spans = spans
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def emitBatch(self, batch):
- """
- Parameters:
- - batch
- """
- self.send_emitBatch(batch)
-
- def send_emitBatch(self, batch):
- self._oprot.writeMessageBegin('emitBatch', TMessageType.ONEWAY, self._seqid)
- args = emitBatch_args()
- args.batch = batch
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["emitZipkinBatch"] = Processor.process_emitZipkinBatch
- self._processMap["emitBatch"] = Processor.process_emitBatch
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_emitZipkinBatch(self, seqid, iprot, oprot):
- args = emitZipkinBatch_args()
- args.read(iprot)
- iprot.readMessageEnd()
- try:
- self._handler.emitZipkinBatch(args.spans)
- except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
- raise
- except:
- pass
-
- def process_emitBatch(self, seqid, iprot, oprot):
- args = emitBatch_args()
- args.read(iprot)
- iprot.readMessageEnd()
- try:
- self._handler.emitBatch(args.batch)
- except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
- raise
- except:
- pass
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class emitZipkinBatch_args(object):
- """
- Attributes:
- - spans
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.LIST, 'spans', (TType.STRUCT, (zipkincore.ttypes.Span, zipkincore.ttypes.Span.thrift_spec), False), None, ), # 1
- )
-
- def __init__(self, spans=None,):
- self.spans = spans
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.spans = []
- (_etype3, _size0) = iprot.readListBegin()
- for _i4 in range(_size0):
- _elem5 = zipkincore.ttypes.Span()
- _elem5.read(iprot)
- self.spans.append(_elem5)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('emitZipkinBatch_args')
- if self.spans is not None:
- oprot.writeFieldBegin('spans', TType.LIST, 1)
- oprot.writeListBegin(TType.STRUCT, len(self.spans))
- for iter6 in self.spans:
- iter6.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class emitBatch_args(object):
- """
- Attributes:
- - batch
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'batch', (jaeger.ttypes.Batch, jaeger.ttypes.Batch.thrift_spec), None, ), # 1
- )
-
- def __init__(self, batch=None,):
- self.batch = batch
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.batch = jaeger.ttypes.Batch()
- self.batch.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('emitBatch_args')
- if self.batch is not None:
- oprot.writeFieldBegin('batch', TType.STRUCT, 1)
- self.batch.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/__init__.py
deleted file mode 100644
index 1059cfbc013..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-__all__ = ['ttypes', 'constants', 'Agent']
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/constants.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/constants.py
deleted file mode 100644
index eb0d35aa127..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/constants.py
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-from .ttypes import *
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/ttypes.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/ttypes.py
deleted file mode 100644
index fc8743cba9f..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/agent/ttypes.py
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-import jaeger.ttypes
-import zipkincore.ttypes
-
-from thrift.transport import TTransport
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/Collector-remote b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/Collector-remote
deleted file mode 100644
index 5903f023603..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/Collector-remote
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from jaeger import Collector
-from jaeger.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' submitBatches( batches)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = Collector.Client(protocol)
-transport.open()
-
-if cmd == 'submitBatches':
- if len(args) != 1:
- print('submitBatches requires 1 args')
- sys.exit(1)
- pp.pprint(client.submitBatches(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/Collector.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/Collector.py
deleted file mode 100644
index f6f809b0894..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/Collector.py
+++ /dev/null
@@ -1,243 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-
-
-class Iface(object):
- def submitBatches(self, batches):
- """
- Parameters:
- - batches
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def submitBatches(self, batches):
- """
- Parameters:
- - batches
- """
- self.send_submitBatches(batches)
- return self.recv_submitBatches()
-
- def send_submitBatches(self, batches):
- self._oprot.writeMessageBegin('submitBatches', TMessageType.CALL, self._seqid)
- args = submitBatches_args()
- args.batches = batches
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_submitBatches(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = submitBatches_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- raise TApplicationException(TApplicationException.MISSING_RESULT, "submitBatches failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["submitBatches"] = Processor.process_submitBatches
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_submitBatches(self, seqid, iprot, oprot):
- args = submitBatches_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = submitBatches_result()
- try:
- result.success = self._handler.submitBatches(args.batches)
- msg_type = TMessageType.REPLY
- except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
- raise
- except Exception as ex:
- msg_type = TMessageType.EXCEPTION
- logging.exception(ex)
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("submitBatches", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class submitBatches_args(object):
- """
- Attributes:
- - batches
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.LIST, 'batches', (TType.STRUCT, (Batch, Batch.thrift_spec), False), None, ), # 1
- )
-
- def __init__(self, batches=None,):
- self.batches = batches
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.batches = []
- (_etype45, _size42) = iprot.readListBegin()
- for _i46 in range(_size42):
- _elem47 = Batch()
- _elem47.read(iprot)
- self.batches.append(_elem47)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('submitBatches_args')
- if self.batches is not None:
- oprot.writeFieldBegin('batches', TType.LIST, 1)
- oprot.writeListBegin(TType.STRUCT, len(self.batches))
- for iter48 in self.batches:
- iter48.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class submitBatches_result(object):
- """
- Attributes:
- - success
- """
-
- thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, (BatchSubmitResponse, BatchSubmitResponse.thrift_spec), False), None, ), # 0
- )
-
- def __init__(self, success=None,):
- self.success = success
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype52, _size49) = iprot.readListBegin()
- for _i53 in range(_size49):
- _elem54 = BatchSubmitResponse()
- _elem54.read(iprot)
- self.success.append(_elem54)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('submitBatches_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter55 in self.success:
- iter55.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/__init__.py
deleted file mode 100644
index 515d97d6727..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-__all__ = ['ttypes', 'constants', 'Collector']
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/constants.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/constants.py
deleted file mode 100644
index eb0d35aa127..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/constants.py
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-from .ttypes import *
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/ttypes.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/ttypes.py
deleted file mode 100644
index a43252b79dc..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/jaeger/ttypes.py
+++ /dev/null
@@ -1,831 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-
-from thrift.transport import TTransport
-
-
-class TagType(object):
- STRING = 0
- DOUBLE = 1
- BOOL = 2
- LONG = 3
- BINARY = 4
-
- _VALUES_TO_NAMES = {
- 0: "STRING",
- 1: "DOUBLE",
- 2: "BOOL",
- 3: "LONG",
- 4: "BINARY",
- }
-
- _NAMES_TO_VALUES = {
- "STRING": 0,
- "DOUBLE": 1,
- "BOOL": 2,
- "LONG": 3,
- "BINARY": 4,
- }
-
-
-class SpanRefType(object):
- CHILD_OF = 0
- FOLLOWS_FROM = 1
-
- _VALUES_TO_NAMES = {
- 0: "CHILD_OF",
- 1: "FOLLOWS_FROM",
- }
-
- _NAMES_TO_VALUES = {
- "CHILD_OF": 0,
- "FOLLOWS_FROM": 1,
- }
-
-
-class Tag(object):
- """
- Attributes:
- - key
- - vType
- - vStr
- - vDouble
- - vBool
- - vLong
- - vBinary
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.STRING, 'key', 'UTF8', None, ), # 1
- (2, TType.I32, 'vType', None, None, ), # 2
- (3, TType.STRING, 'vStr', 'UTF8', None, ), # 3
- (4, TType.DOUBLE, 'vDouble', None, None, ), # 4
- (5, TType.BOOL, 'vBool', None, None, ), # 5
- (6, TType.I64, 'vLong', None, None, ), # 6
- (7, TType.STRING, 'vBinary', 'BINARY', None, ), # 7
- )
-
- def __init__(self, key=None, vType=None, vStr=None, vDouble=None, vBool=None, vLong=None, vBinary=None,):
- self.key = key
- self.vType = vType
- self.vStr = vStr
- self.vDouble = vDouble
- self.vBool = vBool
- self.vLong = vLong
- self.vBinary = vBinary
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.I32:
- self.vType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.vStr = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.DOUBLE:
- self.vDouble = iprot.readDouble()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.BOOL:
- self.vBool = iprot.readBool()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.I64:
- self.vLong = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 7:
- if ftype == TType.STRING:
- self.vBinary = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Tag')
- if self.key is not None:
- oprot.writeFieldBegin('key', TType.STRING, 1)
- oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
- oprot.writeFieldEnd()
- if self.vType is not None:
- oprot.writeFieldBegin('vType', TType.I32, 2)
- oprot.writeI32(self.vType)
- oprot.writeFieldEnd()
- if self.vStr is not None:
- oprot.writeFieldBegin('vStr', TType.STRING, 3)
- oprot.writeString(self.vStr.encode('utf-8') if sys.version_info[0] == 2 else self.vStr)
- oprot.writeFieldEnd()
- if self.vDouble is not None:
- oprot.writeFieldBegin('vDouble', TType.DOUBLE, 4)
- oprot.writeDouble(self.vDouble)
- oprot.writeFieldEnd()
- if self.vBool is not None:
- oprot.writeFieldBegin('vBool', TType.BOOL, 5)
- oprot.writeBool(self.vBool)
- oprot.writeFieldEnd()
- if self.vLong is not None:
- oprot.writeFieldBegin('vLong', TType.I64, 6)
- oprot.writeI64(self.vLong)
- oprot.writeFieldEnd()
- if self.vBinary is not None:
- oprot.writeFieldBegin('vBinary', TType.STRING, 7)
- oprot.writeBinary(self.vBinary)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.key is None:
- raise TProtocolException(message='Required field key is unset!')
- if self.vType is None:
- raise TProtocolException(message='Required field vType is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Log(object):
- """
- Attributes:
- - timestamp
- - fields
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.I64, 'timestamp', None, None, ), # 1
- (2, TType.LIST, 'fields', (TType.STRUCT, (Tag, Tag.thrift_spec), False), None, ), # 2
- )
-
- def __init__(self, timestamp=None, fields=None,):
- self.timestamp = timestamp
- self.fields = fields
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I64:
- self.timestamp = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.LIST:
- self.fields = []
- (_etype3, _size0) = iprot.readListBegin()
- for _i4 in range(_size0):
- _elem5 = Tag()
- _elem5.read(iprot)
- self.fields.append(_elem5)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Log')
- if self.timestamp is not None:
- oprot.writeFieldBegin('timestamp', TType.I64, 1)
- oprot.writeI64(self.timestamp)
- oprot.writeFieldEnd()
- if self.fields is not None:
- oprot.writeFieldBegin('fields', TType.LIST, 2)
- oprot.writeListBegin(TType.STRUCT, len(self.fields))
- for iter6 in self.fields:
- iter6.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.timestamp is None:
- raise TProtocolException(message='Required field timestamp is unset!')
- if self.fields is None:
- raise TProtocolException(message='Required field fields is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class SpanRef(object):
- """
- Attributes:
- - refType
- - traceIdLow
- - traceIdHigh
- - spanId
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.I32, 'refType', None, None, ), # 1
- (2, TType.I64, 'traceIdLow', None, None, ), # 2
- (3, TType.I64, 'traceIdHigh', None, None, ), # 3
- (4, TType.I64, 'spanId', None, None, ), # 4
- )
-
- def __init__(self, refType=None, traceIdLow=None, traceIdHigh=None, spanId=None,):
- self.refType = refType
- self.traceIdLow = traceIdLow
- self.traceIdHigh = traceIdHigh
- self.spanId = spanId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I32:
- self.refType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.I64:
- self.traceIdLow = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I64:
- self.traceIdHigh = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I64:
- self.spanId = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('SpanRef')
- if self.refType is not None:
- oprot.writeFieldBegin('refType', TType.I32, 1)
- oprot.writeI32(self.refType)
- oprot.writeFieldEnd()
- if self.traceIdLow is not None:
- oprot.writeFieldBegin('traceIdLow', TType.I64, 2)
- oprot.writeI64(self.traceIdLow)
- oprot.writeFieldEnd()
- if self.traceIdHigh is not None:
- oprot.writeFieldBegin('traceIdHigh', TType.I64, 3)
- oprot.writeI64(self.traceIdHigh)
- oprot.writeFieldEnd()
- if self.spanId is not None:
- oprot.writeFieldBegin('spanId', TType.I64, 4)
- oprot.writeI64(self.spanId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.refType is None:
- raise TProtocolException(message='Required field refType is unset!')
- if self.traceIdLow is None:
- raise TProtocolException(message='Required field traceIdLow is unset!')
- if self.traceIdHigh is None:
- raise TProtocolException(message='Required field traceIdHigh is unset!')
- if self.spanId is None:
- raise TProtocolException(message='Required field spanId is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Span(object):
- """
- Attributes:
- - traceIdLow
- - traceIdHigh
- - spanId
- - parentSpanId
- - operationName
- - references
- - flags
- - startTime
- - duration
- - tags
- - logs
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.I64, 'traceIdLow', None, None, ), # 1
- (2, TType.I64, 'traceIdHigh', None, None, ), # 2
- (3, TType.I64, 'spanId', None, None, ), # 3
- (4, TType.I64, 'parentSpanId', None, None, ), # 4
- (5, TType.STRING, 'operationName', 'UTF8', None, ), # 5
- (6, TType.LIST, 'references', (TType.STRUCT, (SpanRef, SpanRef.thrift_spec), False), None, ), # 6
- (7, TType.I32, 'flags', None, None, ), # 7
- (8, TType.I64, 'startTime', None, None, ), # 8
- (9, TType.I64, 'duration', None, None, ), # 9
- (10, TType.LIST, 'tags', (TType.STRUCT, (Tag, Tag.thrift_spec), False), None, ), # 10
- (11, TType.LIST, 'logs', (TType.STRUCT, (Log, Log.thrift_spec), False), None, ), # 11
- )
-
- def __init__(self, traceIdLow=None, traceIdHigh=None, spanId=None, parentSpanId=None, operationName=None, references=None, flags=None, startTime=None, duration=None, tags=None, logs=None,):
- self.traceIdLow = traceIdLow
- self.traceIdHigh = traceIdHigh
- self.spanId = spanId
- self.parentSpanId = parentSpanId
- self.operationName = operationName
- self.references = references
- self.flags = flags
- self.startTime = startTime
- self.duration = duration
- self.tags = tags
- self.logs = logs
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I64:
- self.traceIdLow = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.I64:
- self.traceIdHigh = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I64:
- self.spanId = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I64:
- self.parentSpanId = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.operationName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.LIST:
- self.references = []
- (_etype10, _size7) = iprot.readListBegin()
- for _i11 in range(_size7):
- _elem12 = SpanRef()
- _elem12.read(iprot)
- self.references.append(_elem12)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 7:
- if ftype == TType.I32:
- self.flags = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 8:
- if ftype == TType.I64:
- self.startTime = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 9:
- if ftype == TType.I64:
- self.duration = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 10:
- if ftype == TType.LIST:
- self.tags = []
- (_etype16, _size13) = iprot.readListBegin()
- for _i17 in range(_size13):
- _elem18 = Tag()
- _elem18.read(iprot)
- self.tags.append(_elem18)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 11:
- if ftype == TType.LIST:
- self.logs = []
- (_etype22, _size19) = iprot.readListBegin()
- for _i23 in range(_size19):
- _elem24 = Log()
- _elem24.read(iprot)
- self.logs.append(_elem24)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Span')
- if self.traceIdLow is not None:
- oprot.writeFieldBegin('traceIdLow', TType.I64, 1)
- oprot.writeI64(self.traceIdLow)
- oprot.writeFieldEnd()
- if self.traceIdHigh is not None:
- oprot.writeFieldBegin('traceIdHigh', TType.I64, 2)
- oprot.writeI64(self.traceIdHigh)
- oprot.writeFieldEnd()
- if self.spanId is not None:
- oprot.writeFieldBegin('spanId', TType.I64, 3)
- oprot.writeI64(self.spanId)
- oprot.writeFieldEnd()
- if self.parentSpanId is not None:
- oprot.writeFieldBegin('parentSpanId', TType.I64, 4)
- oprot.writeI64(self.parentSpanId)
- oprot.writeFieldEnd()
- if self.operationName is not None:
- oprot.writeFieldBegin('operationName', TType.STRING, 5)
- oprot.writeString(self.operationName.encode('utf-8') if sys.version_info[0] == 2 else self.operationName)
- oprot.writeFieldEnd()
- if self.references is not None:
- oprot.writeFieldBegin('references', TType.LIST, 6)
- oprot.writeListBegin(TType.STRUCT, len(self.references))
- for iter25 in self.references:
- iter25.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.flags is not None:
- oprot.writeFieldBegin('flags', TType.I32, 7)
- oprot.writeI32(self.flags)
- oprot.writeFieldEnd()
- if self.startTime is not None:
- oprot.writeFieldBegin('startTime', TType.I64, 8)
- oprot.writeI64(self.startTime)
- oprot.writeFieldEnd()
- if self.duration is not None:
- oprot.writeFieldBegin('duration', TType.I64, 9)
- oprot.writeI64(self.duration)
- oprot.writeFieldEnd()
- if self.tags is not None:
- oprot.writeFieldBegin('tags', TType.LIST, 10)
- oprot.writeListBegin(TType.STRUCT, len(self.tags))
- for iter26 in self.tags:
- iter26.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.logs is not None:
- oprot.writeFieldBegin('logs', TType.LIST, 11)
- oprot.writeListBegin(TType.STRUCT, len(self.logs))
- for iter27 in self.logs:
- iter27.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.traceIdLow is None:
- raise TProtocolException(message='Required field traceIdLow is unset!')
- if self.traceIdHigh is None:
- raise TProtocolException(message='Required field traceIdHigh is unset!')
- if self.spanId is None:
- raise TProtocolException(message='Required field spanId is unset!')
- if self.parentSpanId is None:
- raise TProtocolException(message='Required field parentSpanId is unset!')
- if self.operationName is None:
- raise TProtocolException(message='Required field operationName is unset!')
- if self.flags is None:
- raise TProtocolException(message='Required field flags is unset!')
- if self.startTime is None:
- raise TProtocolException(message='Required field startTime is unset!')
- if self.duration is None:
- raise TProtocolException(message='Required field duration is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Process(object):
- """
- Attributes:
- - serviceName
- - tags
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.STRING, 'serviceName', 'UTF8', None, ), # 1
- (2, TType.LIST, 'tags', (TType.STRUCT, (Tag, Tag.thrift_spec), False), None, ), # 2
- )
-
- def __init__(self, serviceName=None, tags=None,):
- self.serviceName = serviceName
- self.tags = tags
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.serviceName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.LIST:
- self.tags = []
- (_etype31, _size28) = iprot.readListBegin()
- for _i32 in range(_size28):
- _elem33 = Tag()
- _elem33.read(iprot)
- self.tags.append(_elem33)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Process')
- if self.serviceName is not None:
- oprot.writeFieldBegin('serviceName', TType.STRING, 1)
- oprot.writeString(self.serviceName.encode('utf-8') if sys.version_info[0] == 2 else self.serviceName)
- oprot.writeFieldEnd()
- if self.tags is not None:
- oprot.writeFieldBegin('tags', TType.LIST, 2)
- oprot.writeListBegin(TType.STRUCT, len(self.tags))
- for iter34 in self.tags:
- iter34.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.serviceName is None:
- raise TProtocolException(message='Required field serviceName is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Batch(object):
- """
- Attributes:
- - process
- - spans
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'process', (Process, Process.thrift_spec), None, ), # 1
- (2, TType.LIST, 'spans', (TType.STRUCT, (Span, Span.thrift_spec), False), None, ), # 2
- )
-
- def __init__(self, process=None, spans=None,):
- self.process = process
- self.spans = spans
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.process = Process()
- self.process.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.LIST:
- self.spans = []
- (_etype38, _size35) = iprot.readListBegin()
- for _i39 in range(_size35):
- _elem40 = Span()
- _elem40.read(iprot)
- self.spans.append(_elem40)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Batch')
- if self.process is not None:
- oprot.writeFieldBegin('process', TType.STRUCT, 1)
- self.process.write(oprot)
- oprot.writeFieldEnd()
- if self.spans is not None:
- oprot.writeFieldBegin('spans', TType.LIST, 2)
- oprot.writeListBegin(TType.STRUCT, len(self.spans))
- for iter41 in self.spans:
- iter41.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.process is None:
- raise TProtocolException(message='Required field process is unset!')
- if self.spans is None:
- raise TProtocolException(message='Required field spans is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class BatchSubmitResponse(object):
- """
- Attributes:
- - ok
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.BOOL, 'ok', None, None, ), # 1
- )
-
- def __init__(self, ok=None,):
- self.ok = ok
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.BOOL:
- self.ok = iprot.readBool()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('BatchSubmitResponse')
- if self.ok is not None:
- oprot.writeFieldBegin('ok', TType.BOOL, 1)
- oprot.writeBool(self.ok)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.ok is None:
- raise TProtocolException(message='Required field ok is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ZipkinCollector-remote b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ZipkinCollector-remote
deleted file mode 100644
index 2b59c3275d1..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ZipkinCollector-remote
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from zipkincore import ZipkinCollector
-from zipkincore.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' submitZipkinBatch( spans)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = ZipkinCollector.Client(protocol)
-transport.open()
-
-if cmd == 'submitZipkinBatch':
- if len(args) != 1:
- print('submitZipkinBatch requires 1 args')
- sys.exit(1)
- pp.pprint(client.submitZipkinBatch(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ZipkinCollector.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ZipkinCollector.py
deleted file mode 100644
index 6167a8e9f1d..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ZipkinCollector.py
+++ /dev/null
@@ -1,243 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-
-
-class Iface(object):
- def submitZipkinBatch(self, spans):
- """
- Parameters:
- - spans
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def submitZipkinBatch(self, spans):
- """
- Parameters:
- - spans
- """
- self.send_submitZipkinBatch(spans)
- return self.recv_submitZipkinBatch()
-
- def send_submitZipkinBatch(self, spans):
- self._oprot.writeMessageBegin('submitZipkinBatch', TMessageType.CALL, self._seqid)
- args = submitZipkinBatch_args()
- args.spans = spans
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_submitZipkinBatch(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = submitZipkinBatch_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- raise TApplicationException(TApplicationException.MISSING_RESULT, "submitZipkinBatch failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["submitZipkinBatch"] = Processor.process_submitZipkinBatch
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_submitZipkinBatch(self, seqid, iprot, oprot):
- args = submitZipkinBatch_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = submitZipkinBatch_result()
- try:
- result.success = self._handler.submitZipkinBatch(args.spans)
- msg_type = TMessageType.REPLY
- except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
- raise
- except Exception as ex:
- msg_type = TMessageType.EXCEPTION
- logging.exception(ex)
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("submitZipkinBatch", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class submitZipkinBatch_args(object):
- """
- Attributes:
- - spans
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.LIST, 'spans', (TType.STRUCT, (Span, Span.thrift_spec), False), None, ), # 1
- )
-
- def __init__(self, spans=None,):
- self.spans = spans
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.spans = []
- (_etype17, _size14) = iprot.readListBegin()
- for _i18 in range(_size14):
- _elem19 = Span()
- _elem19.read(iprot)
- self.spans.append(_elem19)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('submitZipkinBatch_args')
- if self.spans is not None:
- oprot.writeFieldBegin('spans', TType.LIST, 1)
- oprot.writeListBegin(TType.STRUCT, len(self.spans))
- for iter20 in self.spans:
- iter20.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class submitZipkinBatch_result(object):
- """
- Attributes:
- - success
- """
-
- thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, (Response, Response.thrift_spec), False), None, ), # 0
- )
-
- def __init__(self, success=None,):
- self.success = success
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype24, _size21) = iprot.readListBegin()
- for _i25 in range(_size21):
- _elem26 = Response()
- _elem26.read(iprot)
- self.success.append(_elem26)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('submitZipkinBatch_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter27 in self.success:
- iter27.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/__init__.py
deleted file mode 100644
index 90e4f9d9c7f..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-__all__ = ['ttypes', 'constants', 'ZipkinCollector']
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/constants.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/constants.py
deleted file mode 100644
index d66961b02bc..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/constants.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-from .ttypes import *
-CLIENT_SEND = "cs"
-CLIENT_RECV = "cr"
-SERVER_SEND = "ss"
-SERVER_RECV = "sr"
-MESSAGE_SEND = "ms"
-MESSAGE_RECV = "mr"
-WIRE_SEND = "ws"
-WIRE_RECV = "wr"
-CLIENT_SEND_FRAGMENT = "csf"
-CLIENT_RECV_FRAGMENT = "crf"
-SERVER_SEND_FRAGMENT = "ssf"
-SERVER_RECV_FRAGMENT = "srf"
-LOCAL_COMPONENT = "lc"
-CLIENT_ADDR = "ca"
-SERVER_ADDR = "sa"
-MESSAGE_ADDR = "ma"
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ttypes.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ttypes.py
deleted file mode 100644
index a31db167eea..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen/zipkincore/ttypes.py
+++ /dev/null
@@ -1,647 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.10.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-import sys
-
-from thrift.transport import TTransport
-
-
-class AnnotationType(object):
- BOOL = 0
- BYTES = 1
- I16 = 2
- I32 = 3
- I64 = 4
- DOUBLE = 5
- STRING = 6
-
- _VALUES_TO_NAMES = {
- 0: "BOOL",
- 1: "BYTES",
- 2: "I16",
- 3: "I32",
- 4: "I64",
- 5: "DOUBLE",
- 6: "STRING",
- }
-
- _NAMES_TO_VALUES = {
- "BOOL": 0,
- "BYTES": 1,
- "I16": 2,
- "I32": 3,
- "I64": 4,
- "DOUBLE": 5,
- "STRING": 6,
- }
-
-
-class Endpoint(object):
- """
- Indicates the network context of a service recording an annotation with two
- exceptions.
-
- When a BinaryAnnotation, and key is CLIENT_ADDR or SERVER_ADDR,
- the endpoint indicates the source or destination of an RPC. This exception
- allows zipkin to display network context of uninstrumented services, or
- clients such as web browsers.
-
- Attributes:
- - ipv4: IPv4 host address packed into 4 bytes.
-
- Ex for the ip 1.2.3.4, it would be (1 << 24) | (2 << 16) | (3 << 8) | 4
- - port: IPv4 port
-
- Note: this is to be treated as an unsigned integer, so watch for negatives.
-
- Conventionally, when the port isn't known, port = 0.
- - service_name: Service name in lowercase, such as "memcache" or "zipkin-web"
-
- Conventionally, when the service name isn't known, service_name = "unknown".
- - ipv6: IPv6 host address packed into 16 bytes. Ex Inet6Address.getBytes()
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.I32, 'ipv4', None, None, ), # 1
- (2, TType.I16, 'port', None, None, ), # 2
- (3, TType.STRING, 'service_name', 'UTF8', None, ), # 3
- (4, TType.STRING, 'ipv6', 'BINARY', None, ), # 4
- )
-
- def __init__(self, ipv4=None, port=None, service_name=None, ipv6=None,):
- self.ipv4 = ipv4
- self.port = port
- self.service_name = service_name
- self.ipv6 = ipv6
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I32:
- self.ipv4 = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.I16:
- self.port = iprot.readI16()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.service_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.ipv6 = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Endpoint')
- if self.ipv4 is not None:
- oprot.writeFieldBegin('ipv4', TType.I32, 1)
- oprot.writeI32(self.ipv4)
- oprot.writeFieldEnd()
- if self.port is not None:
- oprot.writeFieldBegin('port', TType.I16, 2)
- oprot.writeI16(self.port)
- oprot.writeFieldEnd()
- if self.service_name is not None:
- oprot.writeFieldBegin('service_name', TType.STRING, 3)
- oprot.writeString(self.service_name.encode('utf-8') if sys.version_info[0] == 2 else self.service_name)
- oprot.writeFieldEnd()
- if self.ipv6 is not None:
- oprot.writeFieldBegin('ipv6', TType.STRING, 4)
- oprot.writeBinary(self.ipv6)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Annotation(object):
- """
- An annotation is similar to a log statement. It includes a host field which
- allows these events to be attributed properly, and also aggregatable.
-
- Attributes:
- - timestamp: Microseconds from epoch.
-
- This value should use the most precise value possible. For example,
- gettimeofday or syncing nanoTime against a tick of currentTimeMillis.
- - value
- - host: Always the host that recorded the event. By specifying the host you allow
- rollup of all events (such as client requests to a service) by IP address.
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.I64, 'timestamp', None, None, ), # 1
- (2, TType.STRING, 'value', 'UTF8', None, ), # 2
- (3, TType.STRUCT, 'host', (Endpoint, Endpoint.thrift_spec), None, ), # 3
- )
-
- def __init__(self, timestamp=None, value=None, host=None,):
- self.timestamp = timestamp
- self.value = value
- self.host = host
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I64:
- self.timestamp = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.value = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRUCT:
- self.host = Endpoint()
- self.host.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Annotation')
- if self.timestamp is not None:
- oprot.writeFieldBegin('timestamp', TType.I64, 1)
- oprot.writeI64(self.timestamp)
- oprot.writeFieldEnd()
- if self.value is not None:
- oprot.writeFieldBegin('value', TType.STRING, 2)
- oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value)
- oprot.writeFieldEnd()
- if self.host is not None:
- oprot.writeFieldBegin('host', TType.STRUCT, 3)
- self.host.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class BinaryAnnotation(object):
- """
- Binary annotations are tags applied to a Span to give it context. For
- example, a binary annotation of "http.uri" could the path to a resource in a
- RPC call.
-
- Binary annotations of type STRING are always queryable, though more a
- historical implementation detail than a structural concern.
-
- Binary annotations can repeat, and vary on the host. Similar to Annotation,
- the host indicates who logged the event. This allows you to tell the
- difference between the client and server side of the same key. For example,
- the key "http.uri" might be different on the client and server side due to
- rewriting, like "/api/v1/myresource" vs "/myresource. Via the host field,
- you can see the different points of view, which often help in debugging.
-
- Attributes:
- - key
- - value
- - annotation_type
- - host: The host that recorded tag, which allows you to differentiate between
- multiple tags with the same key. There are two exceptions to this.
-
- When the key is CLIENT_ADDR or SERVER_ADDR, host indicates the source or
- destination of an RPC. This exception allows zipkin to display network
- context of uninstrumented services, or clients such as web browsers.
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.STRING, 'key', 'UTF8', None, ), # 1
- (2, TType.STRING, 'value', 'BINARY', None, ), # 2
- (3, TType.I32, 'annotation_type', None, None, ), # 3
- (4, TType.STRUCT, 'host', (Endpoint, Endpoint.thrift_spec), None, ), # 4
- )
-
- def __init__(self, key=None, value=None, annotation_type=None, host=None,):
- self.key = key
- self.value = value
- self.annotation_type = annotation_type
- self.host = host
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.value = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.annotation_type = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRUCT:
- self.host = Endpoint()
- self.host.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('BinaryAnnotation')
- if self.key is not None:
- oprot.writeFieldBegin('key', TType.STRING, 1)
- oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
- oprot.writeFieldEnd()
- if self.value is not None:
- oprot.writeFieldBegin('value', TType.STRING, 2)
- oprot.writeBinary(self.value)
- oprot.writeFieldEnd()
- if self.annotation_type is not None:
- oprot.writeFieldBegin('annotation_type', TType.I32, 3)
- oprot.writeI32(self.annotation_type)
- oprot.writeFieldEnd()
- if self.host is not None:
- oprot.writeFieldBegin('host', TType.STRUCT, 4)
- self.host.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Span(object):
- """
- A trace is a series of spans (often RPC calls) which form a latency tree.
-
- The root span is where trace_id = id and parent_id = Nil. The root span is
- usually the longest interval in the trace, starting with a SERVER_RECV
- annotation and ending with a SERVER_SEND.
-
- Attributes:
- - trace_id
- - name: Span name in lowercase, rpc method for example
-
- Conventionally, when the span name isn't known, name = "unknown".
- - id
- - parent_id
- - annotations
- - binary_annotations
- - debug
- - timestamp: Microseconds from epoch of the creation of this span.
-
- This value should be set directly by instrumentation, using the most
- precise value possible. For example, gettimeofday or syncing nanoTime
- against a tick of currentTimeMillis.
-
- For compatibility with instrumentation that precede this field, collectors
- or span stores can derive this via Annotation.timestamp.
- For example, SERVER_RECV.timestamp or CLIENT_SEND.timestamp.
-
- This field is optional for compatibility with old data: first-party span
- stores are expected to support this at time of introduction.
- - duration: Measurement of duration in microseconds, used to support queries.
-
- This value should be set directly, where possible. Doing so encourages
- precise measurement decoupled from problems of clocks, such as skew or NTP
- updates causing time to move backwards.
-
- For compatibility with instrumentation that precede this field, collectors
- or span stores can derive this by subtracting Annotation.timestamp.
- For example, SERVER_SEND.timestamp - SERVER_RECV.timestamp.
-
- If this field is persisted as unset, zipkin will continue to work, except
- duration query support will be implementation-specific. Similarly, setting
- this field non-atomically is implementation-specific.
-
- This field is i64 vs i32 to support spans longer than 35 minutes.
- - trace_id_high: Optional unique 8-byte additional identifier for a trace. If non zero, this
- means the trace uses 128 bit traceIds instead of 64 bit.
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.I64, 'trace_id', None, None, ), # 1
- None, # 2
- (3, TType.STRING, 'name', 'UTF8', None, ), # 3
- (4, TType.I64, 'id', None, None, ), # 4
- (5, TType.I64, 'parent_id', None, None, ), # 5
- (6, TType.LIST, 'annotations', (TType.STRUCT, (Annotation, Annotation.thrift_spec), False), None, ), # 6
- None, # 7
- (8, TType.LIST, 'binary_annotations', (TType.STRUCT, (BinaryAnnotation, BinaryAnnotation.thrift_spec), False), None, ), # 8
- (9, TType.BOOL, 'debug', None, False, ), # 9
- (10, TType.I64, 'timestamp', None, None, ), # 10
- (11, TType.I64, 'duration', None, None, ), # 11
- (12, TType.I64, 'trace_id_high', None, None, ), # 12
- )
-
- def __init__(self, trace_id=None, name=None, id=None, parent_id=None, annotations=None, binary_annotations=None, debug=thrift_spec[9][4], timestamp=None, duration=None, trace_id_high=None,):
- self.trace_id = trace_id
- self.name = name
- self.id = id
- self.parent_id = parent_id
- self.annotations = annotations
- self.binary_annotations = binary_annotations
- self.debug = debug
- self.timestamp = timestamp
- self.duration = duration
- self.trace_id_high = trace_id_high
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I64:
- self.trace_id = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I64:
- self.id = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.I64:
- self.parent_id = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.LIST:
- self.annotations = []
- (_etype3, _size0) = iprot.readListBegin()
- for _i4 in range(_size0):
- _elem5 = Annotation()
- _elem5.read(iprot)
- self.annotations.append(_elem5)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 8:
- if ftype == TType.LIST:
- self.binary_annotations = []
- (_etype9, _size6) = iprot.readListBegin()
- for _i10 in range(_size6):
- _elem11 = BinaryAnnotation()
- _elem11.read(iprot)
- self.binary_annotations.append(_elem11)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 9:
- if ftype == TType.BOOL:
- self.debug = iprot.readBool()
- else:
- iprot.skip(ftype)
- elif fid == 10:
- if ftype == TType.I64:
- self.timestamp = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 11:
- if ftype == TType.I64:
- self.duration = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 12:
- if ftype == TType.I64:
- self.trace_id_high = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Span')
- if self.trace_id is not None:
- oprot.writeFieldBegin('trace_id', TType.I64, 1)
- oprot.writeI64(self.trace_id)
- oprot.writeFieldEnd()
- if self.name is not None:
- oprot.writeFieldBegin('name', TType.STRING, 3)
- oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
- oprot.writeFieldEnd()
- if self.id is not None:
- oprot.writeFieldBegin('id', TType.I64, 4)
- oprot.writeI64(self.id)
- oprot.writeFieldEnd()
- if self.parent_id is not None:
- oprot.writeFieldBegin('parent_id', TType.I64, 5)
- oprot.writeI64(self.parent_id)
- oprot.writeFieldEnd()
- if self.annotations is not None:
- oprot.writeFieldBegin('annotations', TType.LIST, 6)
- oprot.writeListBegin(TType.STRUCT, len(self.annotations))
- for iter12 in self.annotations:
- iter12.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.binary_annotations is not None:
- oprot.writeFieldBegin('binary_annotations', TType.LIST, 8)
- oprot.writeListBegin(TType.STRUCT, len(self.binary_annotations))
- for iter13 in self.binary_annotations:
- iter13.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.debug is not None:
- oprot.writeFieldBegin('debug', TType.BOOL, 9)
- oprot.writeBool(self.debug)
- oprot.writeFieldEnd()
- if self.timestamp is not None:
- oprot.writeFieldBegin('timestamp', TType.I64, 10)
- oprot.writeI64(self.timestamp)
- oprot.writeFieldEnd()
- if self.duration is not None:
- oprot.writeFieldBegin('duration', TType.I64, 11)
- oprot.writeI64(self.duration)
- oprot.writeFieldEnd()
- if self.trace_id_high is not None:
- oprot.writeFieldBegin('trace_id_high', TType.I64, 12)
- oprot.writeI64(self.trace_id_high)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-
-
-class Response(object):
- """
- Attributes:
- - ok
- """
-
- thrift_spec = (
- None, # 0
- (1, TType.BOOL, 'ok', None, None, ), # 1
- )
-
- def __init__(self, ok=None,):
- self.ok = ok
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.BOOL:
- self.ok = iprot.readBool()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
- return
- oprot.writeStructBegin('Response')
- if self.ok is not None:
- oprot.writeFieldBegin('ok', TType.BOOL, 1)
- oprot.writeBool(self.ok)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- if self.ok is None:
- raise TProtocolException(message='Required field ok is unset!')
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/py.typed b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/py.typed
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/send.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/send.py
deleted file mode 100644
index 0e3a411de6b..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/send.py
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import base64
-import logging
-import math
-import socket
-
-from thrift.protocol import TBinaryProtocol, TCompactProtocol
-from thrift.transport import THttpClient, TTransport
-
-from opentelemetry.exporter.jaeger.thrift.gen.agent import Agent as agent
-from opentelemetry.exporter.jaeger.thrift.gen.jaeger import Collector as jaeger
-
-UDP_PACKET_MAX_LENGTH = 65000
-
-
-logger = logging.getLogger(__name__)
-
-
-class AgentClientUDP:
- """Implement a UDP client to agent.
-
- Args:
- host_name: The host name of the Jaeger server.
- port: The port of the Jaeger server.
- max_packet_size: Maximum size of UDP packet.
- client: Class for creating new client objects for agencies.
- split_oversized_batches: Re-emit oversized batches in smaller chunks.
- """
-
- def __init__(
- self,
- host_name,
- port,
- max_packet_size=UDP_PACKET_MAX_LENGTH,
- client=agent.Client,
- split_oversized_batches=False,
- ):
- self.address = (host_name, port)
- self.max_packet_size = max_packet_size
- self.buffer = TTransport.TMemoryBuffer()
- self.client = client(
- iprot=TCompactProtocol.TCompactProtocol(trans=self.buffer)
- )
- self.split_oversized_batches = split_oversized_batches
-
- def emit(self, batch: jaeger.Batch):
- """
- Args:
- batch: Object to emit Jaeger spans.
- """
-
- # pylint: disable=protected-access
- self.client._seqid = 0
- # truncate and reset the position of BytesIO object
- self.buffer._buffer.truncate(0)
- self.buffer._buffer.seek(0)
- self.client.emitBatch(batch)
- buff = self.buffer.getvalue()
- if len(buff) > self.max_packet_size:
- if self.split_oversized_batches and len(batch.spans) > 1:
- packets = math.ceil(len(buff) / self.max_packet_size)
- div = math.ceil(len(batch.spans) / packets)
- for packet in range(packets):
- start = packet * div
- end = (packet + 1) * div
- if start < len(batch.spans):
- self.emit(
- jaeger.Batch(
- process=batch.process,
- spans=batch.spans[start:end],
- )
- )
- else:
- logger.warning(
- "Data exceeds the max UDP packet size; size %r, max %r",
- len(buff),
- self.max_packet_size,
- )
- return
-
- with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as udp_socket:
- udp_socket.sendto(buff, self.address)
-
-
-class Collector:
- """Submits collected spans to Jaeger collector in jaeger.thrift
- format over binary thrift protocol. This is recommend option in cases where
- it is not feasible to deploy Jaeger Agent next to the application,
- for example, when the application code is running as AWS Lambda function.
- In these scenarios the Jaeger Clients can be configured to submit spans directly
- to the Collectors over HTTP/HTTPS.
-
- Args:
- thrift_url: Endpoint used to send spans
- directly to Collector the over HTTP.
- auth: Auth tuple that contains username and password for Basic Auth.
- timeout_in_millis: timeout for THttpClient.
- """
-
- def __init__(self, thrift_url="", auth=None, timeout_in_millis=None):
- self.thrift_url = thrift_url
- self.auth = auth
- self.http_transport = THttpClient.THttpClient(
- uri_or_host=self.thrift_url
- )
- if timeout_in_millis is not None:
- self.http_transport.setTimeout(timeout_in_millis)
-
- self.protocol = TBinaryProtocol.TBinaryProtocol(self.http_transport)
-
- # set basic auth header
- if auth is not None:
- auth_header = f"{auth[0]}:{auth[1]}"
- decoded = base64.b64encode(auth_header.encode()).decode("ascii")
- basic_auth = {"Authorization": f"Basic {decoded}"}
- self.http_transport.setCustomHeaders(basic_auth)
-
- def submit(self, batch: jaeger.Batch):
- """Submits batches to Thrift HTTP Server through Binary Protocol.
-
- Args:
- batch: Object to emit Jaeger spans.
- """
- batch.write(self.protocol)
- self.http_transport.flush()
- code = self.http_transport.code
- msg = self.http_transport.message
- if code >= 300 or code < 200:
- logger.error(
- "Traces cannot be uploaded; HTTP status code: %s, message: %s",
- code,
- msg,
- )
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/translate/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/translate/__init__.py
deleted file mode 100644
index 922833fccaf..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/translate/__init__.py
+++ /dev/null
@@ -1,320 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import abc
-from typing import Optional, Sequence
-
-from opentelemetry.exporter.jaeger.thrift.gen.jaeger import (
- Collector as TCollector,
-)
-from opentelemetry.sdk.trace import ReadableSpan, StatusCode
-from opentelemetry.trace import SpanKind
-from opentelemetry.util import types
-
-OTLP_JAEGER_SPAN_KIND = {
- SpanKind.CLIENT: "client",
- SpanKind.SERVER: "server",
- SpanKind.CONSUMER: "consumer",
- SpanKind.PRODUCER: "producer",
- SpanKind.INTERNAL: "internal",
-}
-
-NAME_KEY = "otel.library.name"
-VERSION_KEY = "otel.library.version"
-_SCOPE_NAME_KEY = "otel.scope.name"
-_SCOPE_VERSION_KEY = "otel.scope.version"
-
-
-def _nsec_to_usec_round(nsec: int) -> int:
- """Round nanoseconds to microseconds"""
- return (nsec + 500) // 10**3
-
-
-def _convert_int_to_i64(val):
- """Convert integer to signed int64 (i64)"""
- if val > 0x7FFFFFFFFFFFFFFF:
- val -= 0x10000000000000000
- return val
-
-
-def _append_dropped(tags, key, val):
- if val:
- tags.append(_get_long_tag(key, val))
-
-
-class Translator(abc.ABC):
- def __init__(self, max_tag_value_length: Optional[int] = None):
- self._max_tag_value_length = max_tag_value_length
-
- @abc.abstractmethod
- def _translate_span(self, span):
- """Translates span to jaeger format.
-
- Args:
- span: span to translate
- """
-
- @abc.abstractmethod
- def _extract_tags(self, span):
- """Extracts tags from span and returns list of jaeger Tags.
-
- Args:
- span: span to extract tags
- """
-
- @abc.abstractmethod
- def _extract_refs(self, span):
- """Extracts references from span and returns list of jaeger SpanRefs.
-
- Args:
- span: span to extract references
- """
-
- @abc.abstractmethod
- def _extract_logs(self, span):
- """Extracts logs from span and returns list of jaeger Logs.
-
- Args:
- span: span to extract logs
- """
-
-
-class Translate:
- def __init__(self, spans):
- self.spans = spans
-
- def _translate(self, translator: Translator):
- translated_spans = []
- for span in self.spans:
- # pylint: disable=protected-access
- translated_span = translator._translate_span(span)
- translated_spans.append(translated_span)
- return translated_spans
-
-
-def _get_string_tag(key, value: str) -> TCollector.Tag:
- """Returns jaeger string tag."""
- return TCollector.Tag(key=key, vStr=value, vType=TCollector.TagType.STRING)
-
-
-def _get_bool_tag(key: str, value: bool) -> TCollector.Tag:
- """Returns jaeger boolean tag."""
- return TCollector.Tag(key=key, vBool=value, vType=TCollector.TagType.BOOL)
-
-
-def _get_long_tag(key: str, value: int) -> TCollector.Tag:
- """Returns jaeger long tag."""
- return TCollector.Tag(key=key, vLong=value, vType=TCollector.TagType.LONG)
-
-
-def _get_double_tag(key: str, value: float) -> TCollector.Tag:
- """Returns jaeger double tag."""
- return TCollector.Tag(
- key=key, vDouble=value, vType=TCollector.TagType.DOUBLE
- )
-
-
-def _get_trace_id_low(trace_id):
- return _convert_int_to_i64(trace_id & 0xFFFFFFFFFFFFFFFF)
-
-
-def _get_trace_id_high(trace_id):
- return _convert_int_to_i64((trace_id >> 64) & 0xFFFFFFFFFFFFFFFF)
-
-
-def _translate_attribute(
- key: str, value: types.AttributeValue, max_length: Optional[int]
-) -> Optional[TCollector.Tag]:
- """Convert the attributes to jaeger tags."""
- if isinstance(value, bool):
- return _get_bool_tag(key, value)
- if isinstance(value, str):
- if max_length is not None:
- value = value[:max_length]
- return _get_string_tag(key, value)
- if isinstance(value, int):
- return _get_long_tag(key, value)
- if isinstance(value, float):
- return _get_double_tag(key, value)
- if isinstance(value, tuple):
- value = str(value)
- if max_length is not None:
- value = value[:max_length]
- return _get_string_tag(key, value)
- return None
-
-
-class ThriftTranslator(Translator):
- def _translate_span(self, span: ReadableSpan) -> TCollector.Span:
- ctx = span.get_span_context()
- trace_id = ctx.trace_id
- span_id = ctx.span_id
-
- start_time_us = _nsec_to_usec_round(span.start_time)
- duration_us = _nsec_to_usec_round(span.end_time - span.start_time)
-
- parent_id = span.parent.span_id if span.parent else 0
-
- tags = self._extract_tags(span)
- refs = self._extract_refs(span)
- logs = self._extract_logs(span)
-
- flags = int(ctx.trace_flags)
-
- jaeger_span = TCollector.Span(
- traceIdHigh=_get_trace_id_high(trace_id),
- traceIdLow=_get_trace_id_low(trace_id),
- spanId=_convert_int_to_i64(span_id),
- operationName=span.name,
- startTime=start_time_us,
- duration=duration_us,
- tags=tags,
- logs=logs,
- references=refs,
- flags=flags,
- parentSpanId=_convert_int_to_i64(parent_id),
- )
- return jaeger_span
-
- def _extract_tags(self, span: ReadableSpan) -> Sequence[TCollector.Tag]:
- # pylint: disable=too-many-branches
- translated = []
- if span.attributes:
- for key, value in span.attributes.items():
- tag = _translate_attribute(
- key, value, self._max_tag_value_length
- )
- if tag:
- translated.append(tag)
- if span.resource.attributes:
- for key, value in span.resource.attributes.items():
- tag = _translate_attribute(
- key, value, self._max_tag_value_length
- )
- if tag:
- translated.append(tag)
-
- status = span.status
- if status.status_code is not StatusCode.UNSET:
- translated.append(
- _get_string_tag("otel.status_code", status.status_code.name)
- )
- if status.description is not None:
- translated.append(
- _get_string_tag(
- "otel.status_description", status.description
- )
- )
-
- translated.append(
- _get_string_tag("span.kind", OTLP_JAEGER_SPAN_KIND[span.kind])
- )
-
- # Instrumentation info tags
- if span.instrumentation_scope:
- name = _get_string_tag(NAME_KEY, span.instrumentation_scope.name)
- version = _get_string_tag(
- VERSION_KEY, span.instrumentation_scope.version
- )
- scope_name = _get_string_tag(
- _SCOPE_NAME_KEY, span.instrumentation_scope.name
- )
- scope_version = _get_string_tag(
- _SCOPE_VERSION_KEY, span.instrumentation_scope.version
- )
-
- translated.extend([name, version])
- translated.extend([scope_name, scope_version])
-
- # Make sure to add "error" tag if span status is not OK
- if not span.status.is_ok:
- translated.append(_get_bool_tag("error", True))
-
- _append_dropped(
- translated,
- "otel.dropped_attributes_count",
- span.dropped_attributes,
- )
- _append_dropped(
- translated, "otel.dropped_events_count", span.dropped_events
- )
- _append_dropped(
- translated, "otel.dropped_links_count", span.dropped_links
- )
-
- return translated
-
- def _extract_refs(
- self, span: ReadableSpan
- ) -> Optional[Sequence[TCollector.SpanRef]]:
- if not span.links:
- return None
-
- refs = []
- for link in span.links:
- trace_id = link.context.trace_id
- span_id = link.context.span_id
- refs.append(
- TCollector.SpanRef(
- refType=TCollector.SpanRefType.FOLLOWS_FROM,
- traceIdHigh=_get_trace_id_high(trace_id),
- traceIdLow=_get_trace_id_low(trace_id),
- spanId=_convert_int_to_i64(span_id),
- )
- )
- return refs
-
- def _extract_logs(
- self, span: ReadableSpan
- ) -> Optional[Sequence[TCollector.Log]]:
- """Returns jaeger logs if events exists, otherwise None.
-
- Args:
- span: span to extract logs
- """
- if not span.events:
- return None
-
- logs = []
- for event in span.events:
- fields = []
- for key, value in event.attributes.items():
- tag = _translate_attribute(
- key, value, self._max_tag_value_length
- )
- if tag:
- fields.append(tag)
-
- _append_dropped(
- fields,
- "otel.dropped_attributes_count",
- event.attributes.dropped,
- )
-
- fields.append(
- TCollector.Tag(
- key="message",
- vType=TCollector.TagType.STRING,
- vStr=event.name,
- )
- )
-
- event_timestamp_us = _nsec_to_usec_round(event.timestamp)
- logs.append(
- TCollector.Log(
- timestamp=int(event_timestamp_us), fields=fields
- )
- )
-
- return logs
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/version.py b/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/version.py
deleted file mode 100644
index f2d56fac64e..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/version.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 2019, OpenCensus Authors
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-__version__ = "1.22.0.dev"
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/tests/__init__.py b/exporter/opentelemetry-exporter-jaeger-thrift/tests/__init__.py
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/tests/certs/cred.cert b/exporter/opentelemetry-exporter-jaeger-thrift/tests/certs/cred.cert
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/tests/test_jaeger_exporter_thrift.py b/exporter/opentelemetry-exporter-jaeger-thrift/tests/test_jaeger_exporter_thrift.py
deleted file mode 100644
index 8d9f2a42472..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/tests/test_jaeger_exporter_thrift.py
+++ /dev/null
@@ -1,689 +0,0 @@
-# Copyright 2018, OpenCensus Authors
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import unittest
-from unittest import mock
-
-# pylint:disable=no-name-in-module
-# pylint:disable=import-error
-import opentelemetry.exporter.jaeger.thrift as jaeger_exporter
-from opentelemetry import trace as trace_api
-from opentelemetry.exporter.jaeger.thrift.gen.jaeger import ttypes as jaeger
-from opentelemetry.exporter.jaeger.thrift.translate import (
- ThriftTranslator,
- Translate,
-)
-from opentelemetry.sdk import trace
-from opentelemetry.sdk.environment_variables import (
- OTEL_EXPORTER_JAEGER_AGENT_HOST,
- OTEL_EXPORTER_JAEGER_AGENT_PORT,
- OTEL_EXPORTER_JAEGER_ENDPOINT,
- OTEL_EXPORTER_JAEGER_PASSWORD,
- OTEL_EXPORTER_JAEGER_TIMEOUT,
- OTEL_EXPORTER_JAEGER_USER,
-)
-from opentelemetry.sdk.resources import SERVICE_NAME
-from opentelemetry.sdk.trace import Resource, TracerProvider
-from opentelemetry.sdk.util.instrumentation import InstrumentationScope
-from opentelemetry.test.globals_test import TraceGlobalsTest
-from opentelemetry.test.spantestutil import (
- get_span_with_dropped_attributes_events_links,
-)
-from opentelemetry.trace import SpanKind
-from opentelemetry.trace.status import Status, StatusCode
-
-
-def _translate_spans_with_dropped_attributes():
- span = get_span_with_dropped_attributes_events_links()
- translate = Translate([span])
-
- # pylint: disable=protected-access
- return translate._translate(ThriftTranslator(max_tag_value_length=5))
-
-
-class TestJaegerExporter(TraceGlobalsTest, unittest.TestCase):
- def setUp(self):
- # create and save span to be used in tests
- self.context = trace_api.SpanContext(
- trace_id=0x000000000000000000000000DEADBEEF,
- span_id=0x00000000DEADBEF0,
- is_remote=False,
- )
-
- self._test_span = trace._Span(
- "test_span",
- context=self.context,
- # Use a fixed version because a longer/shorter version number
- # might break tests that care about packet size.
- resource=Resource.create({"telemetry.sdk.version": "0.0.0.dev0"}),
- )
- self._test_span.start(start_time=1)
- self._test_span.end(end_time=3)
- # pylint: disable=protected-access
-
- def test_constructor_default(self):
- # pylint: disable=protected-access
- """Test the default values assigned by constructor."""
- service_name = "my-service-name"
- agent_host_name = "localhost"
- agent_port = 6831
-
- trace_api.set_tracer_provider(
- TracerProvider(
- resource=Resource.create({SERVICE_NAME: "my-service-name"})
- )
- )
-
- exporter = jaeger_exporter.JaegerExporter()
- self.assertEqual(exporter.service_name, service_name)
- self.assertEqual(exporter.agent_host_name, agent_host_name)
- self.assertEqual(exporter.agent_port, agent_port)
- self.assertEqual(exporter.collector_endpoint, None)
- self.assertEqual(exporter.username, None)
- self.assertEqual(exporter.password, None)
- self.assertTrue(exporter._collector_http_client is None)
- self.assertTrue(exporter._agent_client is not None)
- self.assertIsNone(exporter._max_tag_value_length)
-
- def test_constructor_explicit(self):
- # pylint: disable=protected-access
- """Test the constructor passing all the options."""
- service = "my-opentelemetry-jaeger"
- collector_endpoint = "https://opentelemetry.io:15875"
-
- agent_port = 14268
- agent_host_name = "opentelemetry.io"
-
- username = "username"
- password = "password"
- auth = (username, password)
- trace_api.set_tracer_provider(
- TracerProvider(
- resource=Resource.create(
- {SERVICE_NAME: "my-opentelemetry-jaeger"}
- )
- )
- )
-
- exporter = jaeger_exporter.JaegerExporter(
- agent_host_name=agent_host_name,
- agent_port=agent_port,
- collector_endpoint=collector_endpoint,
- username=username,
- password=password,
- max_tag_value_length=42,
- )
- self.assertEqual(exporter.service_name, service)
- self.assertEqual(exporter.agent_host_name, agent_host_name)
- self.assertEqual(exporter.agent_port, agent_port)
- self.assertTrue(exporter._collector_http_client is not None)
- self.assertEqual(exporter._collector_http_client.auth, auth)
- # property should not construct new object
- collector = exporter._collector_http_client
- self.assertEqual(exporter._collector_http_client, collector)
- # property should construct new object
- exporter._collector = None
- exporter.username = None
- exporter.password = None
- self.assertNotEqual(exporter._collector_http_client, collector)
- self.assertTrue(exporter._collector_http_client.auth is None)
- self.assertEqual(exporter._max_tag_value_length, 42)
-
- def test_constructor_by_environment_variables(self):
- # pylint: disable=protected-access
- """Test the constructor using Environment Variables."""
- service = "my-opentelemetry-jaeger"
-
- agent_host_name = "opentelemetry.io"
- agent_port = "6831"
-
- collector_endpoint = "https://opentelemetry.io:15875"
-
- username = "username"
- password = "password"
- auth = (username, password)
-
- environ_patcher = mock.patch.dict(
- "os.environ",
- {
- OTEL_EXPORTER_JAEGER_AGENT_HOST: agent_host_name,
- OTEL_EXPORTER_JAEGER_AGENT_PORT: agent_port,
- OTEL_EXPORTER_JAEGER_ENDPOINT: collector_endpoint,
- OTEL_EXPORTER_JAEGER_USER: username,
- OTEL_EXPORTER_JAEGER_PASSWORD: password,
- OTEL_EXPORTER_JAEGER_TIMEOUT: "20",
- },
- )
-
- trace_api.set_tracer_provider(
- TracerProvider(
- resource=Resource.create(
- {SERVICE_NAME: "my-opentelemetry-jaeger"}
- )
- )
- )
-
- environ_patcher.start()
- exporter = jaeger_exporter.JaegerExporter()
- self.assertEqual(exporter.service_name, service)
- self.assertEqual(exporter.agent_host_name, agent_host_name)
- self.assertEqual(exporter.agent_port, int(agent_port))
- self.assertEqual(exporter._timeout, 20)
- self.assertTrue(exporter._collector_http_client is not None)
- self.assertEqual(exporter.collector_endpoint, collector_endpoint)
- self.assertEqual(exporter._collector_http_client.auth, auth)
- # property should not construct new object
- collector = exporter._collector_http_client
- self.assertEqual(exporter._collector_http_client, collector)
- # property should construct new object
- exporter._collector = None
- exporter.username = None
- exporter.password = None
- self.assertNotEqual(exporter._collector_http_client, collector)
- self.assertTrue(exporter._collector_http_client.auth is None)
- environ_patcher.stop()
-
- def test_constructor_with_no_traceprovider_resource(self):
-
- """Test the constructor when there is no resource attached to trace_provider"""
-
- exporter = jaeger_exporter.JaegerExporter()
-
- self.assertEqual(exporter.service_name, "unknown_service")
-
- def test_nsec_to_usec_round(self):
- # pylint: disable=protected-access
- nsec_to_usec_round = jaeger_exporter.translate._nsec_to_usec_round
-
- self.assertEqual(nsec_to_usec_round(5000), 5)
- self.assertEqual(nsec_to_usec_round(5499), 5)
- self.assertEqual(nsec_to_usec_round(5500), 6)
-
- def test_all_otlp_span_kinds_are_mapped(self):
- for kind in SpanKind:
- self.assertIn(
- kind, jaeger_exporter.translate.OTLP_JAEGER_SPAN_KIND
- )
-
- # pylint: disable=too-many-locals
- def test_translate_to_jaeger(self):
- # pylint: disable=invalid-name
- self.maxDiff = None
-
- span_names = ("test1", "test2", "test3")
- trace_id = 0x6E0C63257DE34C926F9EFCD03927272E
- trace_id_high = 0x6E0C63257DE34C92
- trace_id_low = 0x6F9EFCD03927272E
- span_id = 0x34BF92DEEFC58C92
- parent_id = 0x1111111111111111
- other_id = 0x2222222222222222
-
- base_time = 683647322 * 10**9 # in ns
- start_times = (
- base_time,
- base_time + 150 * 10**6,
- base_time + 300 * 10**6,
- )
- durations = (50 * 10**6, 100 * 10**6, 200 * 10**6)
- end_times = (
- start_times[0] + durations[0],
- start_times[1] + durations[1],
- start_times[2] + durations[2],
- )
-
- span_context = trace_api.SpanContext(
- trace_id, span_id, is_remote=False
- )
- parent_span_context = trace_api.SpanContext(
- trace_id, parent_id, is_remote=False
- )
- other_context = trace_api.SpanContext(
- trace_id, other_id, is_remote=False
- )
-
- event_attributes = {
- "annotation_bool": True,
- "annotation_string": "annotation_test",
- "key_float": 0.3,
- }
-
- event_timestamp = base_time + 50 * 10**6
- event = trace.Event(
- name="event0",
- timestamp=event_timestamp,
- attributes=event_attributes,
- )
-
- link_attributes = {"key_bool": True}
-
- link = trace_api.Link(
- context=other_context, attributes=link_attributes
- )
-
- default_tags = [
- jaeger.Tag(
- key="span.kind",
- vType=jaeger.TagType.STRING,
- vStr="internal",
- ),
- ]
-
- otel_spans = [
- trace._Span(
- name=span_names[0],
- context=span_context,
- parent=parent_span_context,
- events=(event,),
- links=(link,),
- kind=trace_api.SpanKind.CLIENT,
- resource=Resource(
- attributes={"key_resource": "some_resource"}
- ),
- ),
- trace._Span(
- name=span_names[1],
- context=parent_span_context,
- parent=None,
- resource=Resource({}),
- ),
- trace._Span(
- name=span_names[2],
- context=other_context,
- parent=None,
- resource=Resource({}),
- instrumentation_scope=InstrumentationScope(
- name="name", version="version"
- ),
- ),
- ]
-
- otel_spans[0].start(start_time=start_times[0])
- # added here to preserve order
- otel_spans[0].set_attribute("key_bool", False)
- otel_spans[0].set_attribute("key_string", "hello_world")
- otel_spans[0].set_attribute("key_float", 111.22)
- otel_spans[0].set_attribute("key_tuple", ("tuple_element",))
- otel_spans[0].set_status(
- Status(StatusCode.ERROR, "Example description")
- )
- otel_spans[0].end(end_time=end_times[0])
-
- otel_spans[1].start(start_time=start_times[1])
- otel_spans[1].end(end_time=end_times[1])
-
- otel_spans[2].start(start_time=start_times[2])
- otel_spans[2].set_status(Status(StatusCode.OK))
- otel_spans[2].end(end_time=end_times[2])
-
- translate = Translate(otel_spans)
- # pylint: disable=protected-access
- spans = translate._translate(ThriftTranslator())
-
- expected_spans = [
- jaeger.Span(
- operationName=span_names[0],
- traceIdHigh=trace_id_high,
- traceIdLow=trace_id_low,
- spanId=span_id,
- parentSpanId=parent_id,
- startTime=start_times[0] // 10**3,
- duration=durations[0] // 10**3,
- flags=0,
- tags=[
- jaeger.Tag(
- key="key_bool", vType=jaeger.TagType.BOOL, vBool=False
- ),
- jaeger.Tag(
- key="key_string",
- vType=jaeger.TagType.STRING,
- vStr="hello_world",
- ),
- jaeger.Tag(
- key="key_float",
- vType=jaeger.TagType.DOUBLE,
- vDouble=111.22,
- ),
- jaeger.Tag(
- key="key_tuple",
- vType=jaeger.TagType.STRING,
- vStr="('tuple_element',)",
- ),
- jaeger.Tag(
- key="key_resource",
- vType=jaeger.TagType.STRING,
- vStr="some_resource",
- ),
- jaeger.Tag(
- key="otel.status_code",
- vType=jaeger.TagType.STRING,
- vStr="ERROR",
- ),
- jaeger.Tag(
- key="otel.status_description",
- vType=jaeger.TagType.STRING,
- vStr="Example description",
- ),
- jaeger.Tag(
- key="span.kind",
- vType=jaeger.TagType.STRING,
- vStr="client",
- ),
- jaeger.Tag(
- key="error", vType=jaeger.TagType.BOOL, vBool=True
- ),
- ],
- references=[
- jaeger.SpanRef(
- refType=jaeger.SpanRefType.FOLLOWS_FROM,
- traceIdHigh=trace_id_high,
- traceIdLow=trace_id_low,
- spanId=other_id,
- )
- ],
- logs=[
- jaeger.Log(
- timestamp=event_timestamp // 10**3,
- fields=[
- jaeger.Tag(
- key="annotation_bool",
- vType=jaeger.TagType.BOOL,
- vBool=True,
- ),
- jaeger.Tag(
- key="annotation_string",
- vType=jaeger.TagType.STRING,
- vStr="annotation_test",
- ),
- jaeger.Tag(
- key="key_float",
- vType=jaeger.TagType.DOUBLE,
- vDouble=0.3,
- ),
- jaeger.Tag(
- key="message",
- vType=jaeger.TagType.STRING,
- vStr="event0",
- ),
- ],
- )
- ],
- ),
- jaeger.Span(
- operationName=span_names[1],
- traceIdHigh=trace_id_high,
- traceIdLow=trace_id_low,
- spanId=parent_id,
- parentSpanId=0,
- startTime=start_times[1] // 10**3,
- duration=durations[1] // 10**3,
- flags=0,
- tags=default_tags,
- ),
- jaeger.Span(
- operationName=span_names[2],
- traceIdHigh=trace_id_high,
- traceIdLow=trace_id_low,
- spanId=other_id,
- parentSpanId=0,
- startTime=start_times[2] // 10**3,
- duration=durations[2] // 10**3,
- flags=0,
- tags=[
- jaeger.Tag(
- key="otel.status_code",
- vType=jaeger.TagType.STRING,
- vStr="OK",
- ),
- jaeger.Tag(
- key="span.kind",
- vType=jaeger.TagType.STRING,
- vStr="internal",
- ),
- jaeger.Tag(
- key=jaeger_exporter.translate.NAME_KEY,
- vType=jaeger.TagType.STRING,
- vStr="name",
- ),
- jaeger.Tag(
- key=jaeger_exporter.translate.VERSION_KEY,
- vType=jaeger.TagType.STRING,
- vStr="version",
- ),
- jaeger.Tag(
- key=jaeger_exporter.translate._SCOPE_NAME_KEY,
- vType=jaeger.TagType.STRING,
- vStr="name",
- ),
- jaeger.Tag(
- key=jaeger_exporter.translate._SCOPE_VERSION_KEY,
- vType=jaeger.TagType.STRING,
- vStr="version",
- ),
- ],
- ),
- ]
-
- # events are complicated to compare because order of fields
- # (attributes) in otel is not important but in jeager it is
- self.assertCountEqual(
- spans[0].logs[0].fields, expected_spans[0].logs[0].fields
- )
- # get rid of fields to be able to compare the whole spans
- spans[0].logs[0].fields = None
- expected_spans[0].logs[0].fields = None
-
- self.assertEqual(spans, expected_spans)
-
- def test_export(self):
-
- """Test that agent and/or collector are invoked"""
-
- trace_api.set_tracer_provider(
- TracerProvider(
- resource=Resource.create({SERVICE_NAME: "text_export"})
- )
- )
-
- exporter = jaeger_exporter.JaegerExporter(
- agent_host_name="localhost", agent_port=6318
- )
-
- # just agent is configured now
- agent_client_mock = mock.Mock(spec=jaeger_exporter.AgentClientUDP)
- # pylint: disable=protected-access
- exporter._agent_client = agent_client_mock
-
- exporter.export((self._test_span,))
- self.assertEqual(agent_client_mock.emit.call_count, 1)
-
- # add also a collector and test that both are called
- collector_mock = mock.Mock(spec=jaeger_exporter.Collector)
- # pylint: disable=protected-access
- exporter._collector = collector_mock
-
- exporter.export((self._test_span,))
- self.assertEqual(agent_client_mock.emit.call_count, 1)
- self.assertEqual(collector_mock.submit.call_count, 1)
-
- def test_export_span_service_name(self):
- trace_api.set_tracer_provider(
- TracerProvider(
- resource=Resource.create({SERVICE_NAME: "text_export"})
- )
- )
- exporter = jaeger_exporter.JaegerExporter(
- agent_host_name="localhost", agent_port=6318
- )
- agent_client_mock = mock.Mock(spec=jaeger_exporter.AgentClientUDP)
- exporter._agent_client = agent_client_mock
- resource = Resource.create({SERVICE_NAME: "test"})
- span = trace._Span(
- "test_span", context=self.context, resource=resource
- )
- span.start()
- span.end()
- exporter.export([span])
- self.assertEqual(exporter.service_name, "test")
-
- def test_agent_client(self):
- agent_client = jaeger_exporter.AgentClientUDP(
- host_name="localhost", port=6354
- )
-
- translate = Translate([self._test_span])
- # pylint: disable=protected-access
- spans = translate._translate(ThriftTranslator())
-
- batch = jaeger.Batch(
- spans=spans,
- process=jaeger.Process(serviceName="xxx"),
- )
-
- agent_client.emit(batch)
-
- def test_max_tag_value_length(self):
- span = trace._Span(
- name="span",
- resource=Resource(
- attributes={
- "key_resource": "some_resource some_resource some_more_resource"
- }
- ),
- context=trace_api.SpanContext(
- trace_id=0x000000000000000000000000DEADBEEF,
- span_id=0x00000000DEADBEF0,
- is_remote=False,
- ),
- )
-
- span.start()
- span.set_attribute("key_bool", False)
- span.set_attribute("key_string", "hello_world hello_world hello_world")
- span.set_attribute("key_float", 111.22)
- span.set_attribute("key_int", 1100)
- span.set_attribute("key_tuple", ("tuple_element", "tuple_element2"))
- span.end()
-
- translate = Translate([span])
-
- # does not truncate by default
- # pylint: disable=protected-access
- spans = translate._translate(ThriftTranslator())
- tags_by_keys = {
- tag.key: tag.vStr
- for tag in spans[0].tags
- if tag.vType == jaeger.TagType.STRING
- }
- self.assertEqual(
- "hello_world hello_world hello_world", tags_by_keys["key_string"]
- )
- self.assertEqual(
- "('tuple_element', 'tuple_element2')", tags_by_keys["key_tuple"]
- )
- self.assertEqual(
- "some_resource some_resource some_more_resource",
- tags_by_keys["key_resource"],
- )
-
- # truncates when max_tag_value_length is passed
- # pylint: disable=protected-access
- spans = translate._translate(ThriftTranslator(max_tag_value_length=5))
- tags_by_keys = {
- tag.key: tag.vStr
- for tag in spans[0].tags
- if tag.vType == jaeger.TagType.STRING
- }
- self.assertEqual("hello", tags_by_keys["key_string"])
- self.assertEqual("('tup", tags_by_keys["key_tuple"])
- self.assertEqual("some_", tags_by_keys["key_resource"])
-
- def test_dropped_span_attributes(self):
- spans = _translate_spans_with_dropped_attributes()
- tags_by_keys = {
- tag.key: tag.vLong
- for tag in spans[0].tags
- if tag.vType == jaeger.TagType.LONG
- }
-
- self.assertEqual(1, tags_by_keys["otel.dropped_links_count"])
- self.assertEqual(2, tags_by_keys["otel.dropped_attributes_count"])
- self.assertEqual(3, tags_by_keys["otel.dropped_events_count"])
-
- def test_dropped_event_attributes(self):
- spans = _translate_spans_with_dropped_attributes()
- tags_by_keys = {
- tag.key: tag.vLong
- for tag in spans[0].logs[0].fields
- if tag.vType == jaeger.TagType.LONG
- }
- self.assertEqual(
- 2,
- tags_by_keys["otel.dropped_attributes_count"],
- )
-
- def test_agent_client_split(self):
- agent_client = jaeger_exporter.AgentClientUDP(
- host_name="localhost",
- port=6354,
- max_packet_size=250,
- split_oversized_batches=True,
- )
-
- translator = jaeger_exporter.Translate((self._test_span,))
- small_batch = jaeger.Batch(
- # pylint: disable=protected-access
- spans=translator._translate(ThriftTranslator()),
- process=jaeger.Process(serviceName="xxx"),
- )
-
- with unittest.mock.patch(
- "socket.socket.sendto", autospec=True
- ) as fake_sendto:
- agent_client.emit(small_batch)
- self.assertEqual(fake_sendto.call_count, 1)
-
- translator = jaeger_exporter.Translate([self._test_span] * 2)
- large_batch = jaeger.Batch(
- # pylint: disable=protected-access
- spans=translator._translate(ThriftTranslator()),
- process=jaeger.Process(serviceName="xxx"),
- )
-
- with unittest.mock.patch(
- "socket.socket.sendto", autospec=True
- ) as fake_sendto:
- agent_client.emit(large_batch)
- self.assertEqual(fake_sendto.call_count, 2)
-
- def test_agent_client_dont_send_empty_spans(self):
- agent_client = jaeger_exporter.AgentClientUDP(
- host_name="localhost",
- port=6354,
- max_packet_size=415,
- split_oversized_batches=True,
- )
-
- translator = jaeger_exporter.Translate([self._test_span] * 4)
- large_batch = jaeger.Batch(
- # pylint: disable=protected-access
- spans=translator._translate(ThriftTranslator()),
- process=jaeger.Process(serviceName="xxx"),
- )
-
- with unittest.mock.patch(
- "socket.socket.sendto", autospec=True
- ) as fake_sendto:
- agent_client.emit(large_batch)
- self.assertEqual(fake_sendto.call_count, 4)
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/thrift/agent.thrift b/exporter/opentelemetry-exporter-jaeger-thrift/thrift/agent.thrift
deleted file mode 100644
index 5d3c9201b67..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/thrift/agent.thrift
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2016 Uber Technologies, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-include "jaeger.thrift"
-include "zipkincore.thrift"
-
-namespace cpp jaegertracing.agent.thrift
-namespace java io.jaegertracing.agent.thrift
-namespace php Jaeger.Thrift.Agent
-namespace netcore Jaeger.Thrift.Agent
-namespace lua jaeger.thrift.agent
-
-service Agent {
- oneway void emitZipkinBatch(1: list spans)
- oneway void emitBatch(1: jaeger.Batch batch)
-}
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/thrift/jaeger.thrift b/exporter/opentelemetry-exporter-jaeger-thrift/thrift/jaeger.thrift
deleted file mode 100644
index ae9fcaa0145..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/thrift/jaeger.thrift
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright (c) 2016 Uber Technologies, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-namespace cpp jaegertracing.thrift
-namespace java io.jaegertracing.thriftjava
-namespace php Jaeger.Thrift
-namespace netcore Jaeger.Thrift
-namespace lua jaeger.thrift
-
-# TagType denotes the type of a Tag's value.
-enum TagType { STRING, DOUBLE, BOOL, LONG, BINARY }
-
-# Tag is a basic strongly typed key/value pair. It has been flattened to reduce the use of pointers in golang
-struct Tag {
- 1: required string key
- 2: required TagType vType
- 3: optional string vStr
- 4: optional double vDouble
- 5: optional bool vBool
- 6: optional i64 vLong
- 7: optional binary vBinary
-}
-
-# Log is a timed even with an arbitrary set of tags.
-struct Log {
- 1: required i64 timestamp
- 2: required list fields
-}
-
-enum SpanRefType { CHILD_OF, FOLLOWS_FROM }
-
-# SpanRef describes causal relationship of the current span to another span (e.g. 'child-of')
-struct SpanRef {
- 1: required SpanRefType refType
- 2: required i64 traceIdLow
- 3: required i64 traceIdHigh
- 4: required i64 spanId
-}
-
-# Span represents a named unit of work performed by a service.
-struct Span {
- 1: required i64 traceIdLow # the least significant 64 bits of a traceID
- 2: required i64 traceIdHigh # the most significant 64 bits of a traceID; 0 when only 64bit IDs are used
- 3: required i64 spanId # unique span id (only unique within a given trace)
- 4: required i64 parentSpanId # since nearly all spans will have parents spans, CHILD_OF refs do not have to be explicit
- 5: required string operationName
- 6: optional list references # causal references to other spans
- 7: required i32 flags # a bit field used to propagate sampling decisions. 1 signifies a SAMPLED span, 2 signifies a DEBUG span.
- 8: required i64 startTime
- 9: required i64 duration
- 10: optional list tags
- 11: optional list logs
-}
-
-# Process describes the traced process/service that emits spans.
-struct Process {
- 1: required string serviceName
- 2: optional list tags
-}
-
-# Batch is a collection of spans reported out of process.
-struct Batch {
- 1: required Process process
- 2: required list spans
-}
-
-# BatchSubmitResponse is the response on submitting a batch.
-struct BatchSubmitResponse {
- 1: required bool ok # The Collector's client is expected to only log (or emit a counter) when not ok equals false
-}
-
-service Collector {
- list submitBatches(1: list batches)
-}
diff --git a/exporter/opentelemetry-exporter-jaeger-thrift/thrift/zipkincore.thrift b/exporter/opentelemetry-exporter-jaeger-thrift/thrift/zipkincore.thrift
deleted file mode 100644
index 2004ed581ba..00000000000
--- a/exporter/opentelemetry-exporter-jaeger-thrift/thrift/zipkincore.thrift
+++ /dev/null
@@ -1,346 +0,0 @@
-# Copyright 2012 Twitter Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-namespace cpp twitter.zipkin.thrift
-namespace java com.twitter.zipkin.thriftjava
-#@namespace scala com.twitter.zipkin.thriftscala
-namespace rb Zipkin
-namespace php Jaeger.Thrift.Agent.Zipkin
-namespace netcore Jaeger.Thrift.Agent.Zipkin
-namespace lua jaeger.thrift.agent
-
-
-#************** Annotation.value **************
-/**
- * The client sent ("cs") a request to a server. There is only one send per
- * span. For example, if there's a transport error, each attempt can be logged
- * as a WIRE_SEND annotation.
- *
- * If chunking is involved, each chunk could be logged as a separate
- * CLIENT_SEND_FRAGMENT in the same span.
- *
- * Annotation.host is not the server. It is the host which logged the send
- * event, almost always the client. When logging CLIENT_SEND, instrumentation
- * should also log the SERVER_ADDR.
- */
-const string CLIENT_SEND = "cs"
-/**
- * The client received ("cr") a response from a server. There is only one
- * receive per span. For example, if duplicate responses were received, each
- * can be logged as a WIRE_RECV annotation.
- *
- * If chunking is involved, each chunk could be logged as a separate
- * CLIENT_RECV_FRAGMENT in the same span.
- *
- * Annotation.host is not the server. It is the host which logged the receive
- * event, almost always the client. The actual endpoint of the server is
- * recorded separately as SERVER_ADDR when CLIENT_SEND is logged.
- */
-const string CLIENT_RECV = "cr"
-/**
- * The server sent ("ss") a response to a client. There is only one response
- * per span. If there's a transport error, each attempt can be logged as a
- * WIRE_SEND annotation.
- *
- * Typically, a trace ends with a server send, so the last timestamp of a trace
- * is often the timestamp of the root span's server send.
- *
- * If chunking is involved, each chunk could be logged as a separate
- * SERVER_SEND_FRAGMENT in the same span.
- *
- * Annotation.host is not the client. It is the host which logged the send
- * event, almost always the server. The actual endpoint of the client is
- * recorded separately as CLIENT_ADDR when SERVER_RECV is logged.
- */
-const string SERVER_SEND = "ss"
-/**
- * The server received ("sr") a request from a client. There is only one
- * request per span. For example, if duplicate responses were received, each
- * can be logged as a WIRE_RECV annotation.
- *
- * Typically, a trace starts with a server receive, so the first timestamp of a
- * trace is often the timestamp of the root span's server receive.
- *
- * If chunking is involved, each chunk could be logged as a separate
- * SERVER_RECV_FRAGMENT in the same span.
- *
- * Annotation.host is not the client. It is the host which logged the receive
- * event, almost always the server. When logging SERVER_RECV, instrumentation
- * should also log the CLIENT_ADDR.
- */
-const string SERVER_RECV = "sr"
-/**
- * Message send ("ms") is a request to send a message to a destination, usually
- * a broker. This may be the only annotation in a messaging span. If WIRE_SEND
- * exists in the same span, it follows this moment and clarifies delays sending
- * the message, such as batching.
- *
- * Unlike RPC annotations like CLIENT_SEND, messaging spans never share a span
- * ID. For example, "ms" should always be the parent of "mr".
- *
- * Annotation.host is not the destination, it is the host which logged the send
- * event: the producer. When annotating MESSAGE_SEND, instrumentation should
- * also tag the MESSAGE_ADDR.
- */
-const string MESSAGE_SEND = "ms"
-/**
- * A consumer received ("mr") a message from a broker. This may be the only
- * annotation in a messaging span. If WIRE_RECV exists in the same span, it
- * precedes this moment and clarifies any local queuing delay.
- *
- * Unlike RPC annotations like SERVER_RECV, messaging spans never share a span
- * ID. For example, "mr" should always be a child of "ms" unless it is a root
- * span.
- *
- * Annotation.host is not the broker, it is the host which logged the receive
- * event: the consumer. When annotating MESSAGE_RECV, instrumentation should
- * also tag the MESSAGE_ADDR.
- */
-const string MESSAGE_RECV = "mr"
-/**
- * Optionally logs an attempt to send a message on the wire. Multiple wire send
- * events could indicate network retries. A lag between client or server send
- * and wire send might indicate queuing or processing delay.
- */
-const string WIRE_SEND = "ws"
-/**
- * Optionally logs an attempt to receive a message from the wire. Multiple wire
- * receive events could indicate network retries. A lag between wire receive
- * and client or server receive might indicate queuing or processing delay.
- */
-const string WIRE_RECV = "wr"
-/**
- * Optionally logs progress of a (CLIENT_SEND, WIRE_SEND). For example, this
- * could be one chunk in a chunked request.
- */
-const string CLIENT_SEND_FRAGMENT = "csf"
-/**
- * Optionally logs progress of a (CLIENT_RECV, WIRE_RECV). For example, this
- * could be one chunk in a chunked response.
- */
-const string CLIENT_RECV_FRAGMENT = "crf"
-/**
- * Optionally logs progress of a (SERVER_SEND, WIRE_SEND). For example, this
- * could be one chunk in a chunked response.
- */
-const string SERVER_SEND_FRAGMENT = "ssf"
-/**
- * Optionally logs progress of a (SERVER_RECV, WIRE_RECV). For example, this
- * could be one chunk in a chunked request.
- */
-const string SERVER_RECV_FRAGMENT = "srf"
-
-#***** BinaryAnnotation.key ******
-/**
- * The value of "lc" is the component or namespace of a local span.
- *
- * BinaryAnnotation.host adds service context needed to support queries.
- *
- * Local Component("lc") supports three key features: flagging, query by
- * service and filtering Span.name by namespace.
- *
- * While structurally the same, local spans are fundamentally different than
- * RPC spans in how they should be interpreted. For example, zipkin v1 tools
- * center on RPC latency and service graphs. Root local-spans are neither
- * indicative of critical path RPC latency, nor have impact on the shape of a
- * service graph. By flagging with "lc", tools can special-case local spans.
- *
- * Zipkin v1 Spans are unqueryable unless they can be indexed by service name.
- * The only path to a service name is by (Binary)?Annotation.host.serviceName.
- * By logging "lc", a local span can be queried even if no other annotations
- * are logged.
- *
- * The value of "lc" is the namespace of Span.name. For example, it might be
- * "finatra2", for a span named "bootstrap". "lc" allows you to resolves
- * conflicts for the same Span.name, for example "finatra/bootstrap" vs
- * "finch/bootstrap". Using local component, you'd search for spans named
- * "bootstrap" where "lc=finch"
- */
-const string LOCAL_COMPONENT = "lc"
-
-#***** BinaryAnnotation.key where value = [1] and annotation_type = BOOL ******
-/**
- * Indicates a client address ("ca") in a span. Most likely, there's only one.
- * Multiple addresses are possible when a client changes its ip or port within
- * a span.
- */
-const string CLIENT_ADDR = "ca"
-/**
- * Indicates a server address ("sa") in a span. Most likely, there's only one.
- * Multiple addresses are possible when a client is redirected, or fails to a
- * different server ip or port.
- */
-const string SERVER_ADDR = "sa"
-/**
- * Indicates the remote address of a messaging span, usually the broker.
- */
-const string MESSAGE_ADDR = "ma"
-
-/**
- * Indicates the network context of a service recording an annotation with two
- * exceptions.
- *
- * When a BinaryAnnotation, and key is CLIENT_ADDR or SERVER_ADDR,
- * the endpoint indicates the source or destination of an RPC. This exception
- * allows zipkin to display network context of uninstrumented services, or
- * clients such as web browsers.
- */
-struct Endpoint {
- /**
- * IPv4 host address packed into 4 bytes.
- *
- * Ex for the ip 1.2.3.4, it would be (1 << 24) | (2 << 16) | (3 << 8) | 4
- */
- 1: i32 ipv4
- /**
- * IPv4 port
- *
- * Note: this is to be treated as an unsigned integer, so watch for negatives.
- *
- * Conventionally, when the port isn't known, port = 0.
- */
- 2: i16 port
- /**
- * Service name in lowercase, such as "memcache" or "zipkin-web"
- *
- * Conventionally, when the service name isn't known, service_name = "unknown".
- */
- 3: string service_name
- /**
- * IPv6 host address packed into 16 bytes. Ex Inet6Address.getBytes()
- */
- 4: optional binary ipv6
-}
-
-/**
- * An annotation is similar to a log statement. It includes a host field which
- * allows these events to be attributed properly, and also aggregatable.
- */
-struct Annotation {
- /**
- * Microseconds from epoch.
- *
- * This value should use the most precise value possible. For example,
- * gettimeofday or syncing nanoTime against a tick of currentTimeMillis.
- */
- 1: i64 timestamp
- 2: string value // what happened at the timestamp?
- /**
- * Always the host that recorded the event. By specifying the host you allow
- * rollup of all events (such as client requests to a service) by IP address.
- */
- 3: optional Endpoint host
- // don't reuse 4: optional i32 OBSOLETE_duration // how long did the operation take? microseconds
-}
-
-enum AnnotationType { BOOL, BYTES, I16, I32, I64, DOUBLE, STRING }
-
-/**
- * Binary annotations are tags applied to a Span to give it context. For
- * example, a binary annotation of "http.uri" could the path to a resource in a
- * RPC call.
- *
- * Binary annotations of type STRING are always queryable, though more a
- * historical implementation detail than a structural concern.
- *
- * Binary annotations can repeat, and vary on the host. Similar to Annotation,
- * the host indicates who logged the event. This allows you to tell the
- * difference between the client and server side of the same key. For example,
- * the key "http.uri" might be different on the client and server side due to
- * rewriting, like "/api/v1/myresource" vs "/myresource. Via the host field,
- * you can see the different points of view, which often help in debugging.
- */
-struct BinaryAnnotation {
- 1: string key,
- 2: binary value,
- 3: AnnotationType annotation_type,
- /**
- * The host that recorded tag, which allows you to differentiate between
- * multiple tags with the same key. There are two exceptions to this.
- *
- * When the key is CLIENT_ADDR or SERVER_ADDR, host indicates the source or
- * destination of an RPC. This exception allows zipkin to display network
- * context of uninstrumented services, or clients such as web browsers.
- */
- 4: optional Endpoint host
-}
-
-/**
- * A trace is a series of spans (often RPC calls) which form a latency tree.
- *
- * The root span is where trace_id = id and parent_id = Nil. The root span is
- * usually the longest interval in the trace, starting with a SERVER_RECV
- * annotation and ending with a SERVER_SEND.
- */
-struct Span {
- 1: i64 trace_id # unique trace id, use for all spans in trace
- /**
- * Span name in lowercase, rpc method for example
- *
- * Conventionally, when the span name isn't known, name = "unknown".
- */
- 3: string name,
- 4: i64 id, # unique span id, only used for this span
- 5: optional i64 parent_id, # parent span id
- 6: list annotations, # all annotations/events that occurred, sorted by timestamp
- 8: list binary_annotations # any binary annotations
- 9: optional bool debug = 0 # if true, we DEMAND that this span passes all samplers
- /**
- * Microseconds from epoch of the creation of this span.
- *
- * This value should be set directly by instrumentation, using the most
- * precise value possible. For example, gettimeofday or syncing nanoTime
- * against a tick of currentTimeMillis.
- *
- * For compatibility with instrumentation that precede this field, collectors
- * or span stores can derive this via Annotation.timestamp.
- * For example, SERVER_RECV.timestamp or CLIENT_SEND.timestamp.
- *
- * This field is optional for compatibility with old data: first-party span
- * stores are expected to support this at time of introduction.
- */
- 10: optional i64 timestamp,
- /**
- * Measurement of duration in microseconds, used to support queries.
- *
- * This value should be set directly, where possible. Doing so encourages
- * precise measurement decoupled from problems of clocks, such as skew or NTP
- * updates causing time to move backwards.
- *
- * For compatibility with instrumentation that precede this field, collectors
- * or span stores can derive this by subtracting Annotation.timestamp.
- * For example, SERVER_SEND.timestamp - SERVER_RECV.timestamp.
- *
- * If this field is persisted as unset, zipkin will continue to work, except
- * duration query support will be implementation-specific. Similarly, setting
- * this field non-atomically is implementation-specific.
- *
- * This field is i64 vs i32 to support spans longer than 35 minutes.
- */
- 11: optional i64 duration
- /**
- * Optional unique 8-byte additional identifier for a trace. If non zero, this
- * means the trace uses 128 bit traceIds instead of 64 bit.
- */
- 12: optional i64 trace_id_high
-}
-
-# define TChannel service
-
-struct Response {
- 1: required bool ok
-}
-
-service ZipkinCollector {
- list submitZipkinBatch(1: list spans)
-}
diff --git a/exporter/opentelemetry-exporter-jaeger/LICENSE b/exporter/opentelemetry-exporter-jaeger/LICENSE
deleted file mode 100644
index 1ef7dad2c5c..00000000000
--- a/exporter/opentelemetry-exporter-jaeger/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright The OpenTelemetry Authors
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/exporter/opentelemetry-exporter-jaeger/README.rst b/exporter/opentelemetry-exporter-jaeger/README.rst
deleted file mode 100644
index 9f0cec92504..00000000000
--- a/exporter/opentelemetry-exporter-jaeger/README.rst
+++ /dev/null
@@ -1,35 +0,0 @@
-OpenTelemetry Jaeger Exporter
-=============================
-
-.. warning::
- Since v1.35, the Jaeger supports OTLP natively. Please use the OTLP exporter instead.
- Support for this exporter will end July 2023.
-
- This package is no longer being tested.
-
-|pypi|
-
-.. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-jaeger.svg
- :target: https://pypi.org/project/opentelemetry-exporter-jaeger/
-
-This library is provided as a convenience to install all supported Jaeger Exporters. Currently it installs:
-* opentelemetry-exporter-jaeger-proto-grpc
-* opentelemetry-exporter-jaeger-thrift
-
-To avoid unnecessary dependencies, users should install the specific package once they've determined their
-preferred serialization method.
-
-Installation
-------------
-
-::
-
- pip install opentelemetry-exporter-jaeger
-
-
-References
-----------
-
-* `OpenTelemetry Jaeger Exporter `_
-* `Jaeger `_
-* `OpenTelemetry Project `_
diff --git a/exporter/opentelemetry-exporter-jaeger/pyproject.toml b/exporter/opentelemetry-exporter-jaeger/pyproject.toml
deleted file mode 100644
index 755e36c51ed..00000000000
--- a/exporter/opentelemetry-exporter-jaeger/pyproject.toml
+++ /dev/null
@@ -1,52 +0,0 @@
-[build-system]
-requires = ["hatchling"]
-build-backend = "hatchling.build"
-
-[project]
-name = "opentelemetry-exporter-jaeger"
-dynamic = ["version"]
-description = "Jaeger Exporters for OpenTelemetry"
-readme = "README.rst"
-license = "Apache-2.0"
-requires-python = ">=3.7"
-authors = [
- { name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" },
-]
-classifiers = [
- "Development Status :: 5 - Production/Stable",
- "Intended Audience :: Developers",
- "License :: OSI Approved :: Apache Software License",
- "Programming Language :: Python",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
- "Programming Language :: Python :: 3.10",
- "Programming Language :: Python :: 3.11",
- "Typing :: Typed",
-]
-dependencies = [
- "opentelemetry-exporter-jaeger-proto-grpc == 1.22.0.dev",
- "opentelemetry-exporter-jaeger-thrift == 1.22.0.dev",
-]
-
-[project.optional-dependencies]
-test = []
-
-[project.entry-points.opentelemetry_traces_exporter]
-jaeger = "opentelemetry.exporter.jaeger.proto.grpc:JaegerExporter"
-
-[project.urls]
-Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-jaeger"
-
-[tool.hatch.version]
-path = "src/opentelemetry/exporter/jaeger/version.py"
-
-[tool.hatch.build.targets.sdist]
-include = [
- "/src",
- "/tests",
-]
-
-[tool.hatch.build.targets.wheel]
-packages = ["src/opentelemetry"]
diff --git a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/py.typed b/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/py.typed
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/version.py b/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/version.py
deleted file mode 100644
index f2d56fac64e..00000000000
--- a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/version.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 2019, OpenCensus Authors
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-__version__ = "1.22.0.dev"
diff --git a/exporter/opentelemetry-exporter-jaeger/tests/__init__.py b/exporter/opentelemetry-exporter-jaeger/tests/__init__.py
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/exporter/opentelemetry-exporter-jaeger/tests/test_jaeger.py b/exporter/opentelemetry-exporter-jaeger/tests/test_jaeger.py
deleted file mode 100644
index 935a2976079..00000000000
--- a/exporter/opentelemetry-exporter-jaeger/tests/test_jaeger.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright The OpenTelemetry Authors
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import unittest
-
-# pylint:disable=no-name-in-module
-# pylint:disable=import-error
-from opentelemetry.exporter.jaeger import thrift
-from opentelemetry.exporter.jaeger.proto import grpc
-
-
-# pylint:disable=no-member
-class TestJaegerExporter(unittest.TestCase):
- def test_constructors(self):
- """Test ensures both exporters can co-exist"""
- try:
- grpc.JaegerExporter()
- thrift.JaegerExporter()
- except Exception as exc: # pylint: disable=broad-except
- self.assertIsNone(exc)
diff --git a/opentelemetry-api/src/opentelemetry/_logs/__init__.py b/opentelemetry-api/src/opentelemetry/_logs/__init__.py
index a01d1b14ee5..aaf29e5fe63 100644
--- a/opentelemetry-api/src/opentelemetry/_logs/__init__.py
+++ b/opentelemetry-api/src/opentelemetry/_logs/__init__.py
@@ -14,8 +14,7 @@
"""
The OpenTelemetry logging API describes the classes used to generate logs and events.
-The :class:`.LoggerProvider` provides users access to the :class:`.Logger` which in
-turn is used to create :class:`.Event` and :class:`.Log` objects.
+The :class:`.LoggerProvider` provides users access to the :class:`.Logger`.
This module provides abstract (i.e. unimplemented) classes required for
logging, and a concrete no-op implementation :class:`.NoOpLogger` that allows applications
diff --git a/opentelemetry-sdk/tests/test_configurator.py b/opentelemetry-sdk/tests/test_configurator.py
index 3696dc61b35..b825ae931cb 100644
--- a/opentelemetry-sdk/tests/test_configurator.py
+++ b/opentelemetry-sdk/tests/test_configurator.py
@@ -826,11 +826,9 @@ def test_otlp_exporter_conflict(self):
)
assert len(logs_context.output) == 1
- @patch.dict(environ, {"OTEL_TRACES_EXPORTER": "jaeger,zipkin"})
+ @patch.dict(environ, {"OTEL_TRACES_EXPORTER": "zipkin"})
def test_multiple_exporters(self):
- self.assertEqual(
- sorted(_get_exporter_names("traces")), ["jaeger", "zipkin"]
- )
+ self.assertEqual(sorted(_get_exporter_names("traces")), ["zipkin"])
@patch.dict(environ, {"OTEL_TRACES_EXPORTER": "none"})
def test_none_exporters(self):
diff --git a/pyproject.toml b/pyproject.toml
index 405792011e3..01ae2999afc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,8 +9,6 @@ exclude = '''
.venv.*|
target.*|
.*/build/lib/.*|
- exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen|
- exporter/opentelemetry-exporter-jaeger-thrift/src/opentelemetry/exporter/jaeger/thrift/gen|
exporter/opentelemetry-exporter-zipkin-proto-http/src/opentelemetry/exporter/zipkin/proto/http/v2/gen|
opentelemetry-proto/src/opentelemetry/proto/.*/.*|
scripts
diff --git a/rationale.md b/rationale.md
index 4f1dd3ab82e..9c10727fd59 100644
--- a/rationale.md
+++ b/rationale.md
@@ -28,7 +28,7 @@ Public portions of the SDK (constructors, configuration, end-user interfaces) mu
## Core components
-Core components refer to the set of components which are required as per the spec. This includes API, SDK, propagators (B3 and Jaeger) and exporters which are required by the specification. These exporters are OTLP, Jaeger and Zipkin.
+Core components refer to the set of components which are required as per the spec. This includes API, SDK, propagators (B3 and Jaeger) and exporters which are required by the specification. These exporters are OTLP, and Zipkin.
## Mature or stable Signals
diff --git a/scripts/coverage.sh b/scripts/coverage.sh
index df43010ec6d..56cbc78dde5 100755
--- a/scripts/coverage.sh
+++ b/scripts/coverage.sh
@@ -32,8 +32,6 @@ cov opentelemetry-sdk
cov exporter/opentelemetry-exporter-datadog
cov instrumentation/opentelemetry-instrumentation-flask
cov instrumentation/opentelemetry-instrumentation-requests
-cov exporter/opentelemetry-exporter-jaeger-proto-grpc
-cov exporter/opentelemetry-exporter-jaeger-thrift
cov instrumentation/opentelemetry-instrumentation-opentracing-shim
cov util/opentelemetry-util-http
cov exporter/opentelemetry-exporter-zipkin
diff --git a/scripts/public_symbols_checker.py b/scripts/public_symbols_checker.py
index c485c4740e9..05b7ad4abb4 100644
--- a/scripts/public_symbols_checker.py
+++ b/scripts/public_symbols_checker.py
@@ -41,7 +41,11 @@ def get_symbols(change_type, diff_lines_getter, prefix):
.iter_change_type(change_type)
):
- b_file_path = diff_lines.b_blob.path
+ if diff_lines.b_blob is None:
+ # This happens if a file has been removed completely.
+ b_file_path = diff_lines.a_blob.path
+ else:
+ b_file_path = diff_lines.b_blob.path
b_file_path_obj = Path(b_file_path)
if (
diff --git a/tox.ini b/tox.ini
index e3f0866f523..86ac70d0c5a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -213,9 +213,6 @@ commands_pre =
python -m pip install -e {toxinidir}/tests/opentelemetry-test-utils[test]
python -m pip install -e {toxinidir}/shim/opentelemetry-opentracing-shim[test]
python -m pip install -e {toxinidir}/shim/opentelemetry-opencensus-shim[test]
- python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-jaeger-proto-grpc[test]
- python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-jaeger-thrift[test]
- python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-jaeger[test]
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-opencensus[test]
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common[test]
python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc[test]