Skip to content

Commit

Permalink
Rename exporter packages from "ext" to "exporter" (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzchen authored Jul 29, 2020
1 parent 35fdac8 commit eec050b
Show file tree
Hide file tree
Showing 125 changed files with 221 additions and 384 deletions.
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-exporter-jaeger/build/*
docs/examples/opentelemetry-example-app/src/opentelemetry_example_app/grpc/gen/
docs/examples/opentelemetry-example-app/build/*
opentelemetry-proto/build/*
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
paths:
- 'docs/**'
- 'exporter/**'
- 'ext/**'
- 'opentelemetry-python/opentelemetry-api/src/opentelemetry/**'
- 'opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/**'
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.

4 changes: 2 additions & 2 deletions docs/examples/datadog_exporter/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Basic Example
pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-ext-datadog
pip install opentelemetry-exporter-datadog
* Start Datadog Agent

Expand Down Expand Up @@ -48,7 +48,7 @@ Distributed Example
pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-ext-datadog
pip install opentelemetry-exporter-datadog
pip install opentelemetry-instrumentation
pip install opentelemetry-ext-flask
pip install flask
Expand Down
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
2 changes: 1 addition & 1 deletion docs/examples/opentracing/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
opentelemetry-api
opentelemetry-sdk
opentelemetry-ext-jaeger
opentelemetry-exporter-jaeger
opentelemetry-opentracing-shim
redis
redis_opentracing
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:
Loading

0 comments on commit eec050b

Please sign in to comment.