Skip to content

Commit

Permalink
Rename opentelemetry-auto-instrumentation to opentelemetry-instrument…
Browse files Browse the repository at this point in the history
…ation,and the console command `opentelemetry-auto-instrumentation` to `opentelemetry-instrument`
  • Loading branch information
cnnradams committed Jun 5, 2020
1 parent c42749a commit f5a8cc3
Show file tree
Hide file tree
Showing 51 changed files with 107 additions and 104 deletions.
2 changes: 1 addition & 1 deletion docs/auto_instrumentation/auto_instrumentation.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenTelemetry Python Autoinstrumentation
========================================

.. automodule:: opentelemetry.auto_instrumentation
.. automodule:: opentelemetry.instrumentation
:members:
:undoc-members:
:show-inheritance:
Expand Down
4 changes: 2 additions & 2 deletions docs/auto_instrumentation/instrumentor.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
opentelemetry.auto_instrumentation.instrumentor package
opentelemetry.instrumentation.instrumentor package
=======================================================

.. automodule:: opentelemetry.auto_instrumentation.instrumentor
.. automodule:: opentelemetry.instrumentation.instrumentor
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
source_dirs = [
os.path.abspath("../opentelemetry-api/src/"),
os.path.abspath("../opentelemetry-sdk/src/"),
os.path.abspath("../opentelemetry-auto-instrumentation/src/"),
os.path.abspath("../opentelemetry-instrumentation/src/"),
]

ext = "../ext"
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/auto-instrumentation/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Installation
.. code:: sh
$ pip install opentelemetry-sdk
$ pip install opentelemetry-auto-instrumentation
$ pip install opentelemetry-instrumentation
$ pip install opentelemetry-ext-flask
$ pip install requests
Expand Down Expand Up @@ -138,7 +138,7 @@ and run this instead:

.. code:: sh
$ opentelemetry-auto-instrumentation python server_uninstrumented.py
$ opentelemetry-instrumentation python server_uninstrumented.py
In the console where you previously executed ``client.py``, run again
this again:
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/datadog_exporter/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Auto-Instrumention Example
pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-ext-datadog
pip install opentelemetry-auto-instrumentation
pip install opentelemetry-instrumentation
pip install opentelemetry-ext-flask
pip install flask
pip install requests
Expand All @@ -66,16 +66,16 @@ Auto-Instrumention Example

.. code-block:: sh
opentelemetry-auto-instrumentation python server.py
opentelemetry-instrumentation python server.py
* Run client

.. code-block:: sh
opentelemetry-auto-instrumentation python client.py testing
opentelemetry-instrumentation python client.py testing
* Run client with parameter to raise error

.. code-block:: sh
opentelemetry-auto-instrumentation python client.py error
opentelemetry-instrumentation python client.py error
2 changes: 1 addition & 1 deletion eachdist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
sortfirst=
opentelemetry-api
opentelemetry-sdk
opentelemetry-auto-instrumentation
opentelemetry-instrumentation
ext/opentelemetry-ext-wsgi
ext/opentelemetry-ext-dbapi
ext/*
Expand Down
1 change: 1 addition & 0 deletions ext/opentelemetry-ext-aiohttp-client/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api >= 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
aiohttp ~= 3.0

[options.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-boto/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
boto ~= 2.0
opentelemetry-api == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0

[options.extras_require]
test =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Instrument `Boto`_ to trace service requests.
There are two options for instrumenting code. The first option is to use the
``opentelemetry-auto-instrumentation`` executable which will automatically
``opentelemetry-instrumentation`` executable which will automatically
instrument your Boto client. The second is to programmatically enable
instrumentation via the following code:
Expand Down Expand Up @@ -50,8 +50,8 @@
from boto.connection import AWSAuthConnection, AWSQueryConnection
from wrapt import ObjectProxy, wrap_function_wrapper

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.boto.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import SpanKind, get_tracer

logger = logging.getLogger(__name__)
Expand Down
1 change: 1 addition & 0 deletions ext/opentelemetry-ext-dbapi/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
wrapt >= 1.0.0, < 2.0.0

[options.extras_require]
Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-django/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
django >= 1.10
opentelemetry-ext-wsgi == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
opentelemetry-api == 0.9.dev0

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

from django.conf import settings

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.configuration import Configuration
from opentelemetry.ext.django.middleware import _DjangoMiddleware
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor

_logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-flask/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
flask ~= 1.0
opentelemetry-ext-wsgi == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
opentelemetry-api == 0.9.dev0

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def hello():

import opentelemetry.ext.wsgi as otel_wsgi
from opentelemetry import configuration, context, propagators, trace
from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.flask.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.util import disable_trace, time_ns

_logger = getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-jinja2/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
jinja2~=2.7
wrapt >= 1.0.0, < 2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
from wrapt import ObjectProxy
from wrapt import wrap_function_wrapper as _wrap

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.jinja2.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import SpanKind, get_tracer
from opentelemetry.trace.status import Status, StatusCanonicalCode

Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-mysql/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-ext-dbapi == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
mysql-connector-python ~= 8.0
wrapt >= 1.0.0, < 2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@

import mysql.connector

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext import dbapi
from opentelemetry.ext.mysql.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import TracerProvider, get_tracer


Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-psycopg2/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-ext-dbapi == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
psycopg2-binary >= 2.7.3.1
wrapt >= 1.0.0, < 2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
import psycopg2
import wrapt

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext import dbapi
from opentelemetry.ext.psycopg2.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import TracerProvider, get_tracer


Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-pymongo/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
pymongo ~= 3.1

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
from pymongo import monitoring

from opentelemetry import trace
from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.pymongo.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import SpanKind, get_tracer
from opentelemetry.trace.status import Status, StatusCanonicalCode

Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-pymysql/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-ext-dbapi == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
PyMySQL ~= 0.9.3

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@

import pymysql

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext import dbapi
from opentelemetry.ext.pymysql.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import TracerProvider, get_tracer


Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-redis/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
redis >= 2.6
wrapt >= 1.12.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Instrument `redis`_ to report Redis queries.
There are two options for instrumenting code. The first option is to use the
``opentelemetry-auto-instrumentation`` executable which will automatically
``opentelemetry-instrumentation`` executable which will automatically
instrument your Redis client. The second is to programmatically enable
instrumentation via the following code:
Expand Down Expand Up @@ -49,12 +49,12 @@
from wrapt import ObjectProxy, wrap_function_wrapper

from opentelemetry import trace
from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.redis.util import (
_extract_conn_attributes,
_format_command_args,
)
from opentelemetry.ext.redis.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor

_DEFAULT_SERVICE = "redis"
_RAWCMD = "db.statement"
Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-requests/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
requests ~= 2.0

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
from requests.sessions import Session

from opentelemetry import context, propagators, trace
from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.requests.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import SpanKind, get_tracer
from opentelemetry.trace.status import Status, StatusCanonicalCode

Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-sqlalchemy/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
wrapt >= 1.11.2
sqlalchemy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Instrument `sqlalchemy`_ to report SQL queries.
There are two options for instrumenting code. The first option is to use
the ``opentelemetry-auto-instrumentation`` executable which will automatically
the ``opentelemetry-instrumentation`` executable which will automatically
instrument your SQLAlchemy engine. The second is to programmatically enable
instrumentation via the following code:
Expand Down Expand Up @@ -47,12 +47,12 @@
import wrapt
from wrapt import wrap_function_wrapper as _w

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext.sqlalchemy.engine import (
EngineTracer,
_get_tracer,
_wrap_create_engine,
)
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor


def _unwrap(obj, attr):
Expand Down
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-sqlite3/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-ext-dbapi == 0.9.dev0
opentelemetry-auto-instrumentation == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0
wrapt >= 1.0.0, < 2.0.0

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
import sqlite3
import typing

from opentelemetry.auto_instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.ext import dbapi
from opentelemetry.ext.sqlite3.version import __version__
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.trace import TracerProvider, get_tracer


Expand Down
1 change: 1 addition & 0 deletions ext/opentelemetry-ext-wsgi/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ package_dir=
packages=find_namespace:
install_requires =
opentelemetry-api == 0.9.dev0
opentelemetry-instrumentation == 0.9.dev0

[options.extras_require]
test =
Expand Down
19 changes: 0 additions & 19 deletions opentelemetry-auto-instrumentation/README.rst

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f5a8cc3

Please sign in to comment.