Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename exporter packages from "ext" to "exporter" #953

Merged
merged 16 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ exclude =
venv*/
target
__pycache__
ext/opentelemetry-ext-jaeger/src/opentelemetry/ext/jaeger/gen/
ext/opentelemetry-ext-jaeger/build/*
exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/gen/
exporter/opentelemetry-ext-jaeger/build/*
docs/examples/opentelemetry-example-app/src/opentelemetry_example_app/grpc/gen/
docs/examples/opentelemetry-example-app/build/*
opentelemetry-proto/build/*
Expand Down
9 changes: 8 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@
os.path.abspath("../opentelemetry-instrumentation/src/"),
]

exp = "../exporter"
exp_dirs = [
os.path.abspath("/".join(["../exporter", f, "src"]))
for f in listdir(exp)
if isdir(join(exp, f))
]

ext = "../ext"
ext_dirs = [
os.path.abspath("/".join(["../ext", f, "src"]))
for f in listdir(ext)
if isdir(join(ext, f))
]
sys.path[:0] = source_dirs + ext_dirs
sys.path[:0] = source_dirs + exp_dirs + ext_dirs

# -- Project information -----------------------------------------------------

Expand Down
48 changes: 0 additions & 48 deletions docs/examples/cloud_monitoring/README.rst

This file was deleted.

43 changes: 0 additions & 43 deletions docs/examples/cloud_monitoring/basic_metrics.py

This file was deleted.

79 changes: 0 additions & 79 deletions docs/examples/cloud_trace_exporter/README.rst

This file was deleted.

14 changes: 0 additions & 14 deletions docs/examples/cloud_trace_exporter/basic_trace.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/datadog_exporter/basic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

from opentelemetry import trace
from opentelemetry.ext.datadog import (
from opentelemetry.exporter.datadog import (
DatadogExportSpanProcessor,
DatadogSpanExporter,
)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/datadog_exporter/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from requests import get

from opentelemetry import propagators, trace
from opentelemetry.ext.datadog import (
from opentelemetry.exporter.datadog import (
DatadogExportSpanProcessor,
DatadogSpanExporter,
)
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/datadog_exporter/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
from flask import Flask, request

from opentelemetry import propagators, trace
from opentelemetry.ext.datadog import (
from opentelemetry.exporter.datadog import (
DatadogExportSpanProcessor,
DatadogSpanExporter,
)
from opentelemetry.ext.datadog.propagator import DatadogFormat
from opentelemetry.exporter.datadog.propagator import DatadogFormat
from opentelemetry.sdk.trace import TracerProvider

app = Flask(__name__)
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/opencensus-exporter-metrics/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Installation

pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-ext-opencensusexporter
pip install opentelemetry-exporter-opencensus

Run the Example
---------------
Expand Down Expand Up @@ -46,7 +46,7 @@ Useful links
- OpenTelemetry_
- `OpenTelemetry Collector`_
- :doc:`../../api/trace`
- :doc:`../../ext/opencensusexporter/opencensusexporter`
- :doc:`../../exporter/opencensus/opencensus`

.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/
.. _OpenTelemetry Collector: https://github.com/open-telemetry/opentelemetry-collector
2 changes: 1 addition & 1 deletion docs/examples/opencensus-exporter-metrics/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

from opentelemetry import metrics
from opentelemetry.ext.opencensusexporter.metrics_exporter import (
from opentelemetry.exporter.opencensus.metrics_exporter import (
OpenCensusMetricsExporter,
)
from opentelemetry.sdk.metrics import Counter, MeterProvider
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/opencensus-exporter-tracer/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Installation

pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-ext-opencensusexporter
pip install opentelemetry-exporter-opencensus

Run the Example
---------------
Expand Down Expand Up @@ -45,7 +45,7 @@ Useful links
- OpenTelemetry_
- `OpenTelemetry Collector`_
- :doc:`../../api/trace`
- :doc:`../../ext/opencensusexporter/opencensusexporter`
- :doc:`../../exporter/opencensus/opencensus`

.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/
.. _OpenTelemetry Collector: https://github.com/open-telemetry/opentelemetry-collector
2 changes: 1 addition & 1 deletion docs/examples/opencensus-exporter-tracer/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

from opentelemetry import trace
from opentelemetry.ext.opencensusexporter.trace_exporter import (
from opentelemetry.exporter.opencensus.trace_exporter import (
OpenCensusSpanExporter,
)
from opentelemetry.sdk.trace import TracerProvider
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/opentracing/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python

from opentelemetry import trace
from opentelemetry.exporter.jaeger import JaegerSpanExporter
from opentelemetry.ext import opentracing_shim
from opentelemetry.ext.jaeger import JaegerSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleExportSpanProcessor
from rediscache import RedisCache
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenTelemetry Datadog Exporter
==============================

.. automodule:: opentelemetry.ext.datadog
.. automodule:: opentelemetry.exporter.datadog
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Opentelemetry Jaeger Exporter
=============================

.. automodule:: opentelemetry.ext.jaeger
.. automodule:: opentelemetry.exporter.jaeger
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -10,7 +10,7 @@ Opentelemetry Jaeger Exporter
Submodules
----------

.. automodule:: opentelemetry.ext.jaeger.gen.jaeger.ttypes
.. automodule:: opentelemetry.exporter.jaeger.gen.jaeger.ttypes
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenCensus Exporter
===================

.. automodule:: opentelemetry.ext.opencensusexporter
.. automodule:: opentelemetry.exporter.opencensus
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/ext/otlp/otlp.rst → docs/exporter/otlp/otlp.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Opentelemetry OTLP Exporter
===========================

.. automodule:: opentelemetry.ext.otlp
.. automodule:: opentelemetry.exporter.otlp
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenTelemetry Prometheus Exporter
=================================

.. automodule:: opentelemetry.ext.prometheus
.. automodule:: opentelemetry.exporter.prometheus
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Opentelemetry Zipkin Exporter
=============================

.. automodule:: opentelemetry.ext.zipkin
.. automodule:: opentelemetry.exporter.zipkin
:members:
:undoc-members:
:show-inheritance:
7 changes: 0 additions & 7 deletions docs/ext/cloud_monitoring/cloud_monitoring.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/ext/cloud_trace/cloud_trace.rst

This file was deleted.

Loading