diff --git a/.flake8 b/.flake8 index 3e309a5cb39..8dabaabc127 100644 --- a/.flake8 +++ b/.flake8 @@ -22,4 +22,4 @@ exclude = docs/examples/opentelemetry-example-app/build/* opentelemetry-proto/build/* opentelemetry-proto/src/opentelemetry/proto/ - opentelemetry-python-contrib/ \ No newline at end of file + opentelemetry-python-contrib/ diff --git a/docs/conf.py b/docs/conf.py index 0ee56e9118d..4ccb1ca0b1c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -37,7 +37,9 @@ instr = "../opentelemetry-python-contrib/instrumentation" instr_dirs = [ - os.path.abspath("/".join(["../opentelemetry-python-contrib/instrumentation", f, "src"])) + os.path.abspath( + "/".join(["../opentelemetry-python-contrib/instrumentation", f, "src"]) + ) for f in listdir(instr) if isdir(join(instr, f)) ] diff --git a/docs/examples/django/pages/views.py b/docs/examples/django/pages/views.py index 4083888e17b..9d277e2b7f7 100644 --- a/docs/examples/django/pages/views.py +++ b/docs/examples/django/pages/views.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. from django.http import HttpResponse - from opentelemetry import trace from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import ( diff --git a/docs/examples/opentelemetry-example-app/setup.cfg b/docs/examples/opentelemetry-example-app/setup.cfg index 8e55d321d4f..a98d907e746 100644 --- a/docs/examples/opentelemetry-example-app/setup.cfg +++ b/docs/examples/opentelemetry-example-app/setup.cfg @@ -44,8 +44,8 @@ install_requires = typing; python_version<'3.5' opentelemetry-api == 0.16.dev0 opentelemetry-sdk == 0.16.dev0 - opentelemetry-instrumentation-requests == 0.16.dev0 - opentelemetry-instrumentation-flask == 0.16.dev0 + opentelemetry-instrumentation-requests == 0.15.b0 + opentelemetry-instrumentation-flask == 0.15.b0 flask requests protobuf~=3.11 diff --git a/docs/getting-started.rst b/docs/getting-started.rst index efbba2d719e..a1591bc219a 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -150,7 +150,7 @@ The above is a great example, but it's very manual. Within the telemetry space, * Database calls To help instrument common scenarios, opentelemetry also has the concept of "instrumentations": packages that are designed to interface -with a specific framework or library, such as Flask and psycopg2. +with a specific framework or library, such as Flask and psycopg2. A list of the currently curated extension packages can be found `at the Contrib repo `. We will now instrument a basic Flask application that uses the requests library to send HTTP requests. First, install the instrumentation packages themselves: diff --git a/docs/index.rst b/docs/index.rst index a3df89ebe61..afa4505a436 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -30,6 +30,10 @@ In addition, there are several extension packages which can be installed separat pip install opentelemetry-instrumentation-{instrumentation} These are for exporter and instrumentation packages respectively. +Some packages can be found in :scm_web:`instrumentation ` and :scm_web:`exporter ` +directory of the repository. The remaining packages can be round at the Contrib repo directory for +`instrumentation ` +and `exporters = 1.25.2 changedir = tests/opentelemetry-docker-tests/tests commands_pre = - pip install -e {toxinidir}/exporter/opentelemetry-exporter-opencensus + pip install -e {toxinidir}/opentelemetry-api \ + -e {toxinidir}/opentelemetry-sdk \ + -e {toxinidir}/tests/util \ + -e {toxinidir}/exporter/opentelemetry-exporter-opencensus + docker-compose up -d commands = pytest {posargs} - +commands_post = + docker-compose down -v