Skip to content

Commit

Permalink
Merge branch 'master' into issue_242
Browse files Browse the repository at this point in the history
  • Loading branch information
alrex authored Jul 31, 2020
2 parents 17bda17 + 1112792 commit d032e24
Show file tree
Hide file tree
Showing 244 changed files with 2,946 additions and 893 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
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A

# Checklist:

- [ ] Followed the style guidelines of this project
- [ ] Changelogs have been updated
- [ ] Unit tests have been added
- [ ] Documentation has been updated
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ Meeting notes are available as a public [Google doc](https://docs.google.com/doc

Approvers ([@open-telemetry/python-approvers](https://github.com/orgs/open-telemetry/teams/python-approvers)):

- [Aaron Abbott](https://github.com/aabmass), Google
- [Carlos Alberto Cortez](https://github.com/carlosalberto), Lightstep
- [Tahir H. Butt](https://github.com/majorgreys) DataDog
- [Chris Kleinknecht](https://github.com/c24t), Google
- [Diego Hurtado](https://github.com/ocelotl)
- [Hector Hernandez](https://github.com/hectorhdzg), Microsoft
- [Mauricio Vásquez](https://github.com/mauriciovasquezbernal), Kinvolk
- [Reiley Yang](https://github.com/reyang), Microsoft
- [Yusuke Tsutsumi](https://github.com/toumorokoshi), Google

Expand Down
1 change: 1 addition & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ asgiref~=3.0
asyncpg>=0.12.0
ddtrace>=0.34.0
aiohttp~= 3.0
aiopg>=0.13.0
Deprecated>=1.2.6
django>=2.2
PyMySQL~=0.9.3
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
2 changes: 1 addition & 1 deletion docs/examples/basic_meter/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ These examples show how to use OpenTelemetry to capture and report metrics.

There are three different examples:

* basic_metrics: Shows to how create a metric instrument, how to configure an
* basic_metrics: Shows how to create a metric instrument, how to configure an
exporter and a controller and also how to capture data by using the direct
calling convention.

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
2 changes: 1 addition & 1 deletion docs/examples/django/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Execution of the Django app

Set these environment variables first:

#. ``export OPENTELEMETRY_PYTHON_DJANGO_INSTRUMENT=True``
#. ``export OTEL_PYTHON_DJANGO_INSTRUMENT=True``
#. ``export DJANGO_SETTINGS_MODULE=instrumentation_example.settings``

The way to achieve OpenTelemetry instrumentation for your Django app is to use
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
Loading

0 comments on commit d032e24

Please sign in to comment.