From 77ff0702c405805cb732d621109364e79ba944fa Mon Sep 17 00:00:00 2001 From: alrex Date: Wed, 17 Mar 2021 10:02:51 -0700 Subject: [PATCH] split otlp exporter (#1695) --- CHANGELOG.md | 4 + docs/examples/fork-process-model/README.rst | 4 +- .../flask-gunicorn/gunicorn.config.py | 4 +- .../fork-process-model/flask-uwsgi/app.py | 4 +- docs/exporter/otlp/otlp.rst | 9 +- docs/getting_started/otlpcollector_example.py | 4 +- .../LICENSE | 201 ++++++++++++++++++ .../MANIFEST.in | 9 + .../README.rst | 25 +++ .../setup.cfg | 59 +++++ .../setup.py | 33 +++ .../exporter/otlp/proto/grpc}/__init__.py | 2 +- .../exporter/otlp/proto/grpc}/exporter.py | 0 .../proto/grpc}/trace_exporter/__init__.py | 2 +- .../exporter/otlp/proto/grpc/version.py | 15 ++ .../tests/__init__.py | 0 .../tests/fixtures/test.cert | 0 .../test_benchmark_trace_exporter.py | 8 +- .../tests/test_otlp_exporter_mixin.py | 2 +- .../tests/test_otlp_trace_exporter.py | 46 ++-- .../opentelemetry-exporter-otlp/README.rst | 14 +- .../opentelemetry-exporter-otlp/setup.cfg | 22 +- .../tests/test_otlp.py | 29 +++ .../src/opentelemetry/distro/__init__.py | 4 +- opentelemetry-distro/tests/test_distro.py | 4 +- opentelemetry-instrumentation/README.rst | 4 +- .../profile_resource_usage_batch_export.py | 4 +- .../profile_resource_usage_simple_export.py | 4 +- .../test_otlp_grpc_exporter_functional.py | 4 +- tox.ini | 23 +- 30 files changed, 476 insertions(+), 67 deletions(-) create mode 100644 exporter/opentelemetry-exporter-otlp-proto-grpc/LICENSE create mode 100644 exporter/opentelemetry-exporter-otlp-proto-grpc/MANIFEST.in create mode 100644 exporter/opentelemetry-exporter-otlp-proto-grpc/README.rst create mode 100644 exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg create mode 100644 exporter/opentelemetry-exporter-otlp-proto-grpc/setup.py rename exporter/{opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp => opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc}/__init__.py (96%) rename exporter/{opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp => opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc}/exporter.py (100%) rename exporter/{opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp => opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc}/trace_exporter/__init__.py (99%) create mode 100644 exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/version.py rename exporter/{opentelemetry-exporter-otlp => opentelemetry-exporter-otlp-proto-grpc}/tests/__init__.py (100%) rename exporter/{opentelemetry-exporter-otlp => opentelemetry-exporter-otlp-proto-grpc}/tests/fixtures/test.cert (100%) rename exporter/{opentelemetry-exporter-otlp => opentelemetry-exporter-otlp-proto-grpc}/tests/performance/benchmarks/test_benchmark_trace_exporter.py (90%) rename exporter/{opentelemetry-exporter-otlp => opentelemetry-exporter-otlp-proto-grpc}/tests/test_otlp_exporter_mixin.py (96%) rename exporter/{opentelemetry-exporter-otlp => opentelemetry-exporter-otlp-proto-grpc}/tests/test_otlp_trace_exporter.py (92%) create mode 100644 exporter/opentelemetry-exporter-otlp/tests/test_otlp.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 30aeb1209e2..918c5e502af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Split up `opentelemetry-exporter-jaeger` package into `opentelemetry-exporter-jaeger-proto` and `opentelemetry-exporter-jaeger-thrift` packages to reduce dependencies for each one. ([#1694](https://github.com/open-telemetry/opentelemetry-python/pull/1694)) +- Added `opentelemetry-exporter-otlp-proto-grpc` and changed `opentelemetry-exporter-otlp` to + install it as a dependency. This will allow for the next package/protocol to also be in + its own package. + ([#1695](https://github.com/open-telemetry/opentelemetry-python/pull/1695)) ### Removed - Removed unused `get_hexadecimal_trace_id` and `get_hexadecimal_span_id` methods. diff --git a/docs/examples/fork-process-model/README.rst b/docs/examples/fork-process-model/README.rst index ba09530f935..2bd0c9ecbcd 100644 --- a/docs/examples/fork-process-model/README.rst +++ b/docs/examples/fork-process-model/README.rst @@ -16,7 +16,7 @@ Gunicorn post_fork hook .. code-block:: python from opentelemetry import trace - from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter + from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor @@ -44,7 +44,7 @@ uWSGI postfork decorator from uwsgidecorators import postfork from opentelemetry import trace - from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter + from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor diff --git a/docs/examples/fork-process-model/flask-gunicorn/gunicorn.config.py b/docs/examples/fork-process-model/flask-gunicorn/gunicorn.config.py index 237f5244b34..eaf67773929 100644 --- a/docs/examples/fork-process-model/flask-gunicorn/gunicorn.config.py +++ b/docs/examples/fork-process-model/flask-gunicorn/gunicorn.config.py @@ -13,7 +13,9 @@ # limitations under the License. from opentelemetry import trace -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor diff --git a/docs/examples/fork-process-model/flask-uwsgi/app.py b/docs/examples/fork-process-model/flask-uwsgi/app.py index d7683e59167..adcf52691f9 100644 --- a/docs/examples/fork-process-model/flask-uwsgi/app.py +++ b/docs/examples/fork-process-model/flask-uwsgi/app.py @@ -17,7 +17,9 @@ from uwsgidecorators import postfork from opentelemetry import trace -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.instrumentation.flask import FlaskInstrumentor from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider diff --git a/docs/exporter/otlp/otlp.rst b/docs/exporter/otlp/otlp.rst index 7663ec9489c..e4bfdd07a1d 100644 --- a/docs/exporter/otlp/otlp.rst +++ b/docs/exporter/otlp/otlp.rst @@ -1,7 +1,12 @@ -Opentelemetry OTLP Exporter -=========================== +Opentelemetry OTLP Exporters +============================ .. automodule:: opentelemetry.exporter.otlp :members: :undoc-members: :show-inheritance: + +.. automodule:: opentelemetry.exporter.otlp.proto.grpc + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/getting_started/otlpcollector_example.py b/docs/getting_started/otlpcollector_example.py index 4ca7ade35f7..f4ada80f196 100644 --- a/docs/getting_started/otlpcollector_example.py +++ b/docs/getting_started/otlpcollector_example.py @@ -16,7 +16,9 @@ import time from opentelemetry import trace -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/LICENSE b/exporter/opentelemetry-exporter-otlp-proto-grpc/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/LICENSE @@ -0,0 +1,201 @@ + 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 [yyyy] [name of copyright owner] + + 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-otlp-proto-grpc/MANIFEST.in b/exporter/opentelemetry-exporter-otlp-proto-grpc/MANIFEST.in new file mode 100644 index 00000000000..aed3e33273b --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/MANIFEST.in @@ -0,0 +1,9 @@ +graft src +graft tests +global-exclude *.pyc +global-exclude *.pyo +global-exclude __pycache__/* +include CHANGELOG.md +include MANIFEST.in +include README.rst +include LICENSE diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/README.rst b/exporter/opentelemetry-exporter-otlp-proto-grpc/README.rst new file mode 100644 index 00000000000..279e1aed21e --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/README.rst @@ -0,0 +1,25 @@ +OpenTelemetry Collector Protobuf over gRPC Exporter +=================================================== + +|pypi| + +.. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-otlp-proto-grpc.svg + :target: https://pypi.org/project/opentelemetry-exporter-otlp-proto-grpc/ + +This library allows to export data to the OpenTelemetry Collector using the OpenTelemetry Protocol using Protobuf over gRPC. + +Installation +------------ + +:: + + pip install opentelemetry-exporter-otlp-proto-grpc + + +References +---------- + +* `OpenTelemetry Collector Exporter `_ +* `OpenTelemetry Collector `_ +* `OpenTelemetry `_ +* `OpenTelemetry Protocol Specification `_ diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg b/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg new file mode 100644 index 00000000000..cfb450d8974 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg @@ -0,0 +1,59 @@ +# 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. +# +[metadata] +name = opentelemetry-exporter-otlp-proto-grpc +description = OpenTelemetry Collector Protobuf over gRPC Exporter +long_description = file: README.rst +long_description_content_type = text/x-rst +author = OpenTelemetry Authors +author_email = cncf-opentelemetry-contributors@lists.cncf.io +url = https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-grpc +platforms = any +license = Apache-2.0 +classifiers = + Development Status :: 4 - Beta + Intended Audience :: Developers + License :: OSI Approved :: Apache Software License + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + +[options] +python_requires = >=3.5 +package_dir= + =src +packages=find_namespace: +install_requires = + grpcio >= 1.0.0, < 2.0.0 + googleapis-common-protos ~= 1.52.0 + opentelemetry-api == 1.0.0.dev0 + opentelemetry-sdk == 1.0.0.dev0 + opentelemetry-proto == 1.0.0.dev0 + backoff ~= 1.10.0 + +[options.extras_require] +test = + pytest-grpc + +[options.packages.find] +where = src + +[options.entry_points] +opentelemetry_exporter = + otlp_proto_grpc_span = opentelemetry.exporter.otlp.proto.grpc.trace_exporter:OTLPSpanExporter diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.py new file mode 100644 index 00000000000..616edde878b --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.py @@ -0,0 +1,33 @@ +# 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 setuptools + +BASE_DIR = os.path.dirname(__file__) +VERSION_FILENAME = os.path.join( + BASE_DIR, + "src", + "opentelemetry", + "exporter", + "otlp", + "proto", + "grpc", + "version.py", +) +PACKAGE_INFO = {} +with open(VERSION_FILENAME) as f: + exec(f.read(), PACKAGE_INFO) + +setuptools.setup(version=PACKAGE_INFO["__version__"]) diff --git a/exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/__init__.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/__init__.py similarity index 96% rename from exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/__init__.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/__init__.py index 705f14d7c23..c4c96b76c0f 100644 --- a/exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/__init__.py +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/__init__.py @@ -43,7 +43,7 @@ .. code:: python from opentelemetry import trace - from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter + from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor diff --git a/exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/exporter.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py similarity index 100% rename from exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/exporter.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py diff --git a/exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/trace_exporter/__init__.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py similarity index 99% rename from exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/trace_exporter/__init__.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py index a8b3cc79b42..518fc5551f0 100644 --- a/exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/trace_exporter/__init__.py +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py @@ -19,7 +19,7 @@ from grpc import ChannelCredentials, Compression -from opentelemetry.exporter.otlp.exporter import ( +from opentelemetry.exporter.otlp.proto.grpc.exporter import ( OTLPExporterMixin, _get_credentials, _translate_key_values, diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/version.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/version.py new file mode 100644 index 00000000000..e4529dffc64 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/version.py @@ -0,0 +1,15 @@ +# 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.0.0.dev0" diff --git a/exporter/opentelemetry-exporter-otlp/tests/__init__.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/__init__.py similarity index 100% rename from exporter/opentelemetry-exporter-otlp/tests/__init__.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/tests/__init__.py diff --git a/exporter/opentelemetry-exporter-otlp/tests/fixtures/test.cert b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/fixtures/test.cert similarity index 100% rename from exporter/opentelemetry-exporter-otlp/tests/fixtures/test.cert rename to exporter/opentelemetry-exporter-otlp-proto-grpc/tests/fixtures/test.cert diff --git a/exporter/opentelemetry-exporter-otlp/tests/performance/benchmarks/test_benchmark_trace_exporter.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/performance/benchmarks/test_benchmark_trace_exporter.py similarity index 90% rename from exporter/opentelemetry-exporter-otlp/tests/performance/benchmarks/test_benchmark_trace_exporter.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/tests/performance/benchmarks/test_benchmark_trace_exporter.py index 7434a0d8d0d..201a29fe7c1 100644 --- a/exporter/opentelemetry-exporter-otlp/tests/performance/benchmarks/test_benchmark_trace_exporter.py +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/performance/benchmarks/test_benchmark_trace_exporter.py @@ -14,7 +14,9 @@ from unittest.mock import patch -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.sdk.trace import TracerProvider, sampling from opentelemetry.sdk.trace.export import ( BatchSpanProcessor, @@ -36,7 +38,7 @@ def __init__(self, channel): @patch( - "opentelemetry.exporter.otlp.trace_exporter.OTLPSpanExporter._stub", + "opentelemetry.exporter.otlp.proto.grpc.trace_exporter.OTLPSpanExporter._stub", new=MockTraceServiceStub, ) def test_simple_span_processor(benchmark): @@ -55,7 +57,7 @@ def create_spans_to_be_exported(): @patch( - "opentelemetry.exporter.otlp.trace_exporter.OTLPSpanExporter._stub", + "opentelemetry.exporter.otlp.proto.grpc.trace_exporter.OTLPSpanExporter._stub", new=MockTraceServiceStub, ) def test_batch_span_processor(benchmark): diff --git a/exporter/opentelemetry-exporter-otlp/tests/test_otlp_exporter_mixin.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py similarity index 96% rename from exporter/opentelemetry-exporter-otlp/tests/test_otlp_exporter_mixin.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py index e9c9e3f9d20..7ea53ddc069 100644 --- a/exporter/opentelemetry-exporter-otlp/tests/test_otlp_exporter_mixin.py +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py @@ -17,7 +17,7 @@ from grpc import Compression -from opentelemetry.exporter.otlp.exporter import ( +from opentelemetry.exporter.otlp.proto.grpc.exporter import ( InvalidCompressionValueException, environ_to_compression, ) diff --git a/exporter/opentelemetry-exporter-otlp/tests/test_otlp_trace_exporter.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_trace_exporter.py similarity index 92% rename from exporter/opentelemetry-exporter-otlp/tests/test_otlp_trace_exporter.py rename to exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_trace_exporter.py index 254f7dc3155..ed22cbdbea1 100644 --- a/exporter/opentelemetry-exporter-otlp/tests/test_otlp_trace_exporter.py +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_trace_exporter.py @@ -22,7 +22,9 @@ from google.rpc.error_details_pb2 import RetryInfo from grpc import ChannelCredentials, Compression, StatusCode, server -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.proto.collector.trace.v1.trace_service_pb2 import ( ExportTraceServiceRequest, ExportTraceServiceResponse, @@ -179,7 +181,9 @@ def tearDown(self): OTEL_EXPORTER_OTLP_TRACES_COMPRESSION: "gzip", }, ) - @patch("opentelemetry.exporter.otlp.exporter.OTLPExporterMixin.__init__") + @patch( + "opentelemetry.exporter.otlp.proto.grpc.exporter.OTLPExporterMixin.__init__" + ) def test_env_variables(self, mock_exporter_mixin): OTLPSpanExporter() @@ -193,9 +197,13 @@ def test_env_variables(self, mock_exporter_mixin): self.assertIsNotNone(kwargs["credentials"]) self.assertIsInstance(kwargs["credentials"], ChannelCredentials) - @patch("opentelemetry.exporter.otlp.exporter.ssl_channel_credentials") - @patch("opentelemetry.exporter.otlp.exporter.secure_channel") - @patch("opentelemetry.exporter.otlp.trace_exporter.OTLPSpanExporter._stub") + @patch( + "opentelemetry.exporter.otlp.proto.grpc.exporter.ssl_channel_credentials" + ) + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.secure_channel") + @patch( + "opentelemetry.exporter.otlp.proto.grpc.trace_exporter.OTLPSpanExporter._stub" + ) # pylint: disable=unused-argument def test_no_credentials_error( self, mock_ssl_channel, mock_secure, mock_stub @@ -207,8 +215,10 @@ def test_no_credentials_error( "os.environ", {OTEL_EXPORTER_OTLP_TRACES_HEADERS: "key1=value1,key2=value2"}, ) - @patch("opentelemetry.exporter.otlp.exporter.ssl_channel_credentials") - @patch("opentelemetry.exporter.otlp.exporter.secure_channel") + @patch( + "opentelemetry.exporter.otlp.proto.grpc.exporter.ssl_channel_credentials" + ) + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.secure_channel") # pylint: disable=unused-argument def test_otlp_headers_from_env(self, mock_ssl_channel, mock_secure): exporter = OTLPSpanExporter() @@ -225,7 +235,7 @@ def test_otlp_headers_from_env(self, mock_ssl_channel, mock_secure): ) # pylint: disable=no-self-use - @patch("opentelemetry.exporter.otlp.exporter.insecure_channel") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.insecure_channel") @patch.dict("os.environ", {OTEL_EXPORTER_OTLP_COMPRESSION: "gzip"}) def test_otlp_exporter_otlp_compression_envvar( self, mock_insecure_channel @@ -237,7 +247,7 @@ def test_otlp_exporter_otlp_compression_envvar( ) # pylint: disable=no-self-use - @patch("opentelemetry.exporter.otlp.exporter.insecure_channel") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.insecure_channel") @patch.dict("os.environ", {OTEL_EXPORTER_OTLP_COMPRESSION: "gzip"}) def test_otlp_exporter_otlp_compression_kwarg(self, mock_insecure_channel): """Specifying kwarg should take precedence over env""" @@ -247,7 +257,7 @@ def test_otlp_exporter_otlp_compression_kwarg(self, mock_insecure_channel): ) # pylint: disable=no-self-use - @patch("opentelemetry.exporter.otlp.exporter.insecure_channel") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.insecure_channel") @patch.dict("os.environ", {}) def test_otlp_exporter_otlp_compression_unspecified( self, mock_insecure_channel @@ -259,7 +269,7 @@ def test_otlp_exporter_otlp_compression_unspecified( ) # pylint: disable=no-self-use - @patch("opentelemetry.exporter.otlp.exporter.insecure_channel") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.insecure_channel") @patch.dict( "os.environ", {OTEL_EXPORTER_OTLP_TRACES_COMPRESSION: "gzip"}, ) @@ -274,16 +284,18 @@ def test_otlp_exporter_otlp_compression_precendence( "localhost:4317", compression=Compression.Gzip ) - @patch("opentelemetry.exporter.otlp.exporter.ssl_channel_credentials") - @patch("opentelemetry.exporter.otlp.exporter.secure_channel") + @patch( + "opentelemetry.exporter.otlp.proto.grpc.exporter.ssl_channel_credentials" + ) + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.secure_channel") # pylint: disable=unused-argument def test_otlp_headers(self, mock_ssl_channel, mock_secure): exporter = OTLPSpanExporter() # pylint: disable=protected-access self.assertIsNone(exporter._headers, None) - @patch("opentelemetry.exporter.otlp.exporter.expo") - @patch("opentelemetry.exporter.otlp.exporter.sleep") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.expo") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.sleep") def test_unavailable(self, mock_sleep, mock_expo): mock_expo.configure_mock(**{"return_value": [1]}) @@ -296,8 +308,8 @@ def test_unavailable(self, mock_sleep, mock_expo): ) mock_sleep.assert_called_with(1) - @patch("opentelemetry.exporter.otlp.exporter.expo") - @patch("opentelemetry.exporter.otlp.exporter.sleep") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.expo") + @patch("opentelemetry.exporter.otlp.proto.grpc.exporter.sleep") def test_unavailable_delay(self, mock_sleep, mock_expo): mock_expo.configure_mock(**{"return_value": [1]}) diff --git a/exporter/opentelemetry-exporter-otlp/README.rst b/exporter/opentelemetry-exporter-otlp/README.rst index bd3b581e1db..06f45540de8 100644 --- a/exporter/opentelemetry-exporter-otlp/README.rst +++ b/exporter/opentelemetry-exporter-otlp/README.rst @@ -1,12 +1,20 @@ -OpenTelemetry Collector Exporter -================================ +OpenTelemetry Collector Exporters +================================= |pypi| .. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-otlp.svg :target: https://pypi.org/project/opentelemetry-exporter-otlp/ -This library allows to export data to the OpenTelemetry Collector using the OpenTelemetry Protocol. +This library is provided as a convenience to install all supported OpenTelemetry Collector Exporters. Currently it installs: +* opentelemetry-exporter-otlp-proto-grpc + +In the future, additional packages will be available: +* opentelemetry-exporter-otlp-proto-http +* opentelemetry-exporter-otlp-json-http + +To avoid unnecessary dependencies, users should install the specific package once they've determined their +preferred serialization and protocol method. Installation ------------ diff --git a/exporter/opentelemetry-exporter-otlp/setup.cfg b/exporter/opentelemetry-exporter-otlp/setup.cfg index 612529ff3e8..64d94a91a4a 100644 --- a/exporter/opentelemetry-exporter-otlp/setup.cfg +++ b/exporter/opentelemetry-exporter-otlp/setup.cfg @@ -14,7 +14,7 @@ # [metadata] name = opentelemetry-exporter-otlp -description = OpenTelemetry Collector Exporter +description = OpenTelemetry Collector Exporters long_description = file: README.rst long_description_content_type = text/x-rst author = OpenTelemetry Authors @@ -36,24 +36,6 @@ classifiers = [options] python_requires = >=3.5 -package_dir= - =src packages=find_namespace: install_requires = - grpcio >= 1.0.0, < 2.0.0 - googleapis-common-protos ~= 1.52.0 - opentelemetry-api == 1.0.0.dev0 - opentelemetry-sdk == 1.0.0.dev0 - opentelemetry-proto == 1.0.0.dev0 - backoff ~= 1.10.0 - -[options.extras_require] -test = - pytest-grpc - -[options.packages.find] -where = src - -[options.entry_points] -opentelemetry_exporter = - otlp_span = opentelemetry.exporter.otlp.trace_exporter:OTLPSpanExporter + opentelemetry-exporter-otlp-proto-grpc == 1.0.0.dev0 diff --git a/exporter/opentelemetry-exporter-otlp/tests/test_otlp.py b/exporter/opentelemetry-exporter-otlp/tests/test_otlp.py new file mode 100644 index 00000000000..ab3173928cf --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp/tests/test_otlp.py @@ -0,0 +1,29 @@ +# 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 opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) + + +class TestOTLPExporters(unittest.TestCase): + def test_constructors(self): + try: + OTLPSpanExporter() + except Exception: # pylint: disable=broad-except + self.fail( + "Unexpected exception raised when instantiating OTLPSpanExporter" + ) diff --git a/opentelemetry-distro/src/opentelemetry/distro/__init__.py b/opentelemetry-distro/src/opentelemetry/distro/__init__.py index 1adfe56ac75..576f44a506e 100644 --- a/opentelemetry-distro/src/opentelemetry/distro/__init__.py +++ b/opentelemetry-distro/src/opentelemetry/distro/__init__.py @@ -35,7 +35,7 @@ EXPORTER_OTLP = "otlp" -EXPORTER_OTLP_SPAN = "otlp_span" +EXPORTER_OTLP_SPAN = "otlp_proto_grpc_span" RANDOM_ID_GENERATOR = "random" _DEFAULT_ID_GENERATOR = RANDOM_ID_GENERATOR @@ -159,4 +159,4 @@ class OpenTelemetryDistro(BaseDistro): """ def _configure(self, **kwargs): - os.environ.setdefault(OTEL_TRACES_EXPORTER, "otlp_span") + os.environ.setdefault(OTEL_TRACES_EXPORTER, "otlp_proto_grpc_span") diff --git a/opentelemetry-distro/tests/test_distro.py b/opentelemetry-distro/tests/test_distro.py index 3e4aa799e2d..2e42ed904a9 100644 --- a/opentelemetry-distro/tests/test_distro.py +++ b/opentelemetry-distro/tests/test_distro.py @@ -33,4 +33,6 @@ def test_default_configuration(self): distro = OpenTelemetryDistro() self.assertIsNone(os.environ.get(OTEL_TRACES_EXPORTER)) distro.configure() - self.assertEqual("otlp_span", os.environ.get(OTEL_TRACES_EXPORTER)) + self.assertEqual( + "otlp_proto_grpc_span", os.environ.get(OTEL_TRACES_EXPORTER) + ) diff --git a/opentelemetry-instrumentation/README.rst b/opentelemetry-instrumentation/README.rst index 78b6d790876..6f74d2232f7 100644 --- a/opentelemetry-instrumentation/README.rst +++ b/opentelemetry-instrumentation/README.rst @@ -63,10 +63,10 @@ Well known trace exporter names: - jaeger - opencensus - otlp - - otlp_span + - otlp_proto_grpc_span - zipkin -``otlp`` is an alias for ``otlp_span``. +``otlp`` is an alias for ``otlp_proto_grpc_span``. * ``--id-generator`` or ``OTEL_PYTHON_ID_GENERATOR`` diff --git a/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_batch_export.py b/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_batch_export.py index 570965cd53d..c4b16dd8de9 100644 --- a/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_batch_export.py +++ b/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_batch_export.py @@ -15,7 +15,9 @@ import time from unittest.mock import patch -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.sdk.trace import TracerProvider, sampling from opentelemetry.sdk.trace.export import BatchSpanProcessor diff --git a/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_simple_export.py b/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_simple_export.py index 4636b31d5cd..efad1a8407f 100644 --- a/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_simple_export.py +++ b/opentelemetry-sdk/tests/performance/resource-usage/trace/profile_resource_usage_simple_export.py @@ -15,7 +15,9 @@ import time from unittest.mock import patch -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.sdk.trace import TracerProvider, sampling from opentelemetry.sdk.trace.export import SimpleSpanProcessor diff --git a/tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_grpc_exporter_functional.py b/tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_grpc_exporter_functional.py index b0992f42d8c..789dcc7d105 100644 --- a/tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_grpc_exporter_functional.py +++ b/tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_grpc_exporter_functional.py @@ -14,7 +14,9 @@ from opentelemetry import trace from opentelemetry.context import attach, detach, set_value -from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter +from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( + OTLPSpanExporter, +) from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import SimpleSpanProcessor from opentelemetry.test.test_base import TestBase diff --git a/tox.ini b/tox.ini index 556430bfaeb..07126f90fce 100644 --- a/tox.ini +++ b/tox.ini @@ -41,9 +41,13 @@ envlist = py3{5,6,7,8,9}-test-exporter-opencensus ; exporter-opencensus intentionally excluded from pypy3 - ; opentelemetry-exporter-otlp - py3{5,6,7,8,9}-test-exporter-otlp - ; exporter-otlp intentionally excluded from pypy3 + ; opentelemetry-exporter-otlp-combined + py3{5,6,7,8,9}-test-exporter-otlp-combined + ; intentionally excluded from pypy3 + + ; opentelemetry-exporter-otlp-proto-grpc + py3{5,6,7,8,9}-test-exporter-otlp-proto-grpc + ; intentionally excluded from pypy3 ; opentelemetry-exporter-zipkin py3{5,6,7,8,9}-test-exporter-zipkin @@ -91,7 +95,8 @@ changedir = test-exporter-jaeger-proto: exporter/opentelemetry-exporter-jaeger-proto/tests test-exporter-jaeger-thrift: exporter/opentelemetry-exporter-jaeger-thrift/tests test-exporter-opencensus: exporter/opentelemetry-exporter-opencensus/tests - test-exporter-otlp: exporter/opentelemetry-exporter-otlp/tests + test-exporter-otlp-combined: exporter/opentelemetry-exporter-otlp/tests + test-exporter-otlp-proto-grpc: exporter/opentelemetry-exporter-otlp-proto-grpc/tests test-exporter-zipkin: exporter/opentelemetry-exporter-zipkin/tests test-propagator-b3: propagator/opentelemetry-propagator-b3/tests @@ -112,8 +117,12 @@ commands_pre = opencensus: pip install {toxinidir}/exporter/opentelemetry-exporter-opencensus - otlp: pip install {toxinidir}/opentelemetry-proto - otlp: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp + exporter-otlp-combined: pip install {toxinidir}/opentelemetry-proto + exporter-otlp-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc + exporter-otlp-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp + + exporter-otlp-proto-grpc: pip install {toxinidir}/opentelemetry-proto + exporter-otlp-proto-grpc: pip install {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc exporter-jaeger-combined: pip install {toxinidir}/exporter/opentelemetry-exporter-jaeger-proto {toxinidir}/exporter/opentelemetry-exporter-jaeger-thrift {toxinidir}/exporter/opentelemetry-exporter-jaeger exporter-jaeger-proto: pip install {toxinidir}/exporter/opentelemetry-exporter-jaeger-proto @@ -173,6 +182,7 @@ commands_pre = 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-grpc[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp[test] python -m pip install -e {toxinidir}/exporter/opentelemetry-exporter-zipkin[test] python -m pip install -e {toxinidir}/propagator/opentelemetry-propagator-b3[test] @@ -228,6 +238,7 @@ commands_pre = -e {toxinidir}/tests/util \ -e {toxinidir}/exporter/opentelemetry-exporter-opencensus \ -e {toxinidir}/opentelemetry-proto \ + -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc \ -e {toxinidir}/exporter/opentelemetry-exporter-otlp docker-compose up -d commands =