132 Commits

Author SHA1 Message Date
cb70679ae8 Add sklearn tests to test workflow (#177) 2020-11-12 11:37:49 -08:00
c81995d0ce Add SDK Extension for Compatibility with AWS X-Ray 2020-11-09 14:51:30 -08:00
eb53012a8c Fix lint by making pkg tests folders namespace pkgs (#131) 2020-11-06 13:11:51 -08:00
82e44f165e Modify existing workflow for CI tests 2020-11-03 13:50:06 -08:00
48217da7cf Merge branch 'core-ci-v0.15b0' 2020-11-03 10:29:55 -08:00
6144ad5e3e removing travis 2020-10-01 22:24:30 -07:00
d7b2e89150 removing references to python 3.4 2020-10-01 22:22:49 -07:00
677b849cec Adding metric collection as part of instrumentations - Requests (#1116) 2020-09-25 07:31:35 -07:00
997900a003 Added instrumentation for Tornado 6 and above (#1018)
This commit adds auto-instrumentation for Tornado 6 and above on Python
versions 3.5 and above.
2020-09-17 07:19:27 -07:00
96c91e16f4 instrumentation/falcon: Added Falcon 2.0+ instrumentation (#1039) 2020-09-16 09:04:02 -07:00
7ab5cb4416 dropping support for python 3.4 (#1099)
* dropping support for python 3.4
2020-09-14 15:11:56 -07:00
7d9ea1bd1e Populate resource attributes as per semantic conventions (#1053)
As per semantic conventions, set the `telemetry.sdk` parameters.
2020-09-03 16:02:02 -07:00
a5bb6de811 Add support for db cursors and connections in context managers (#1028)
Here is an example snippet that will not report tracing without this patch:

with psycopg2.connect(...) as conn, conn.cursor() as cursor:
    cursor.execute("select 1;")

Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
2020-09-02 11:26:16 -07:00
8ca32f0ba5 Rename remaining framework packages from "ext" to "instrumentation" (#969) 2020-08-04 19:10:51 -07:00
81595475af Rename db framework packages from "ext" to "instrumentation" (#966) 2020-08-03 17:48:44 -07:00
53de79b0aa Rename web framework packages from "ext" to "instrumentation" (#961) 2020-08-03 10:10:45 -07:00
83f5bf2a49 Rename exporter packages from "ext" to "exporter" (#953) 2020-07-29 10:03:46 -07:00
cf1d993468 Move duplicated code to a dependency (#942) 2020-07-28 15:04:31 -07:00
ae9172599c ext/aiopg: Add instrumentation for aiopg (#801)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Alex Boten <aboten@lightstep.com>
2020-07-24 08:35:38 -07:00
77455cebcd remove google exporter files (#918) 2020-07-16 13:12:44 -07:00
8a5df4997c instrumentation/grpc: Testing for gRPC Client Interceptor (#896) 2020-07-16 08:43:04 -07:00
7d80d468e2 chore: update bootstrap with new instrumentations (#913) 2020-07-15 10:18:33 -07:00
757f88f0af fastapi instrumentation (#890)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2020-07-14 23:49:12 -07:00
5c59ea0831 chore: migrate to circleci (#828) 2020-07-13 16:03:34 -07:00
6cc1e5a6a2 Instrumentation for asyncpg (#814)
Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
2020-06-17 15:27:13 -07:00
83d8accf66 Add instrumentation for Celery (#780)
Ported from the DataDog instrumentation.

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
Co-authored-by: alrex <alrex.boten@gmail.com>
2020-06-16 22:13:23 -07:00
4e1cb880c1 Initial elasticsearch instrumentation (#747)
This commit adds auto-instrumentation for elasticsearch. The
instrumentation has been mostly ported over from OpenTracing
elasticsearch instrumentation.

Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
Co-authored-by: alrex <aboten@lightstep.com>
2020-06-16 22:09:43 -07:00
244e709bf0 starlette instrumentation (#777)
adding an initial starlette instrumentation.

tox does exact match on fields delimited by a dash. Thus,
any instrumentation that includes "instrumentation" in the name
would collide with testing of the "opentelemetry-instrumentation"
package.

Renaming opentelemetry-instrumentation to opentelemetry-instrumentation-base to fix that.

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: alrex <aboten@lightstep.com>
2020-06-15 13:59:57 -07:00
14289122c2 pymemcache: Add pymemcache instrumentation (#772)
initial implementation
2020-06-12 07:45:28 -07:00
9d3118ee7d chore: add test coverage for Cloud Monitoring exporter (#804)
Previously cloud monitoring was missing coverage.
2020-06-11 14:41:22 -07:00
9486b2d4d3 ext/otlp: Add OTLP span exporter (#787)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: alrex <aboten@lightstep.com>
2020-06-10 16:44:29 -07:00
64c2ff46be Instrumentation for Pyramid (#776)
Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
2020-06-10 14:00:40 -07:00
3e42946803 botocore: Add botocore instrumentation (#689)
Adding initial boto core implementation.

Co-authored-by: alrex <alrex.boten@gmail.com>
2020-06-09 14:18:03 -07:00
9fa14e285e proto: Add proto files (#728)
Initial addition of opentelemetry-proto based protobufs.

Co-authored-by: alrex <alrex.boten@gmail.com>
Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
2020-06-09 10:05:21 -07:00
8d39609e47 refactor: Add common utils to opentelemetry-auto-instrumentation, rename opentelemetry-auto-instrumentation (#741) 2020-06-08 15:52:38 -07:00
3ef7afd255 cloud-trace: Cloud Trace exporter (#698)
Co-authored-by: Cheng-Lung Sung <clsung@gmail.com>
2020-06-03 21:33:36 -07:00
82116bcfe9 opentracing-shim: add testbed for otshim (#727)
This commit ports the OpenTracing testbed[1] to check that the ot-shim is
working as expected using different frameworks.

Gevent doesn't support context vars yet[2], so those tests are not compatible
with opentelemetry and were not ported.

[1] https://github.com/opentracing/opentracing-python/tree/master/testbed
[2] https://github.com/gevent/gevent/issues/1407

Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
Co-authored-by: alrex <aboten@lightstep.com>
2020-06-02 20:37:36 -07:00
0a37a10713 ext/boto: Add boto instrumentation (#665) 2020-06-02 15:37:56 -07:00
d79be1814f ext/system-metrics: adding instrumentation to collect system metrics (#652)
Adding an extension to provide users an easy mechanism to collect metrics for their system.
2020-05-29 14:02:37 -07:00
6c4541d4a7 asgi: Add ASGI middleware (#716)
Adding an ASGI extension.

Co-authored-by: Emil Madsen <sovende@gmail.com>
Co-authored-by: alrex <alrex.boten@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-27 09:17:35 -07:00
626cf89620 ext/django: django downgrade to 1.10 (#717)
Adding support for django 1.10+
2020-05-25 08:29:51 -07:00
76e1362485 opencensus: Rename otcollector to opencensus (#695)
renaming otcollector to opencensus, as it's using opencensus under the hood. This was originally intended to be replaced by otlp, by a new package can be created for that instead. 

Co-authored-by: alrex <alrex.boten@gmail.com>
2020-05-22 21:01:05 -07:00
62f9e464b8 SQLite3 Instrumentation (#719)
Adds instrumentation for python sqlite3 library.
2020-05-21 16:14:25 -07:00
4f4e278162 infra: accelerate builds (#693)
Some build time improvements:

- split lint/docker-tests/docs into their own steps. Since lint is usually the thing that fails anyways, it's good to have it run first. We could make the build depend on this step to prevent slowing other builds waiting in the pipeline (since we only have 5 workers)
- move all pip install commands into a single line per test environment. this reduces the overhead of calling the pip command separately multiple times per environment.
- removed pip upgrade command for pypy3 and py38
2020-05-21 13:15:12 -07:00
a8dc31188b docs: Consolidate getting started guide and remove duplicated examples (#658)
There are some examples that are duplicated in the getting started guide and in
the examples folder itself. This commit removes the duplicated examples and
updates the getting started guide to include then from real source files that
are passed through the linter and have tests.

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: alrex <aboten@lightstep.com>
2020-05-21 12:11:59 -07:00
fd24b54e28 ext/psycopg2: Implement BaseInstrumentor interface (#694)
- Implemented BaseInstrumentor interface to enable auto-instrumentation
- Added integration tests (same tests as other db integrations)
2020-05-20 21:50:17 -07:00
37c4016e4e docs: Fix warning and treat them as errors (#666)
The CI is not able to catch many documentation problems because we are ignoring
warnings. This commit fixes most of the warnings, ignores the rest and enables
a flag to treat them as errors.

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2020-05-14 20:27:16 -07:00
1767f5882c Add exporter to Datadog (#572)
Add an exporter to Datadog. This implementation makes use of ddtrace to handle the creation of Datadog traces and writing them to the Datadog agent.

Co-Authored-By: Mauricio Vásquez <mauricio@kinvolk.io>
2020-05-13 14:51:28 -07:00
abb1fcfc05 jinja2: Add jinja2 instrumentation (#643)
Migrating the jinja2 plugin forked from ddtracepy.

Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
2020-05-11 09:33:06 -07:00
5d79a27fe6 ext/mysql: Add instrumentor interface (#655)
Implement to helper methods to allow users to enable / disable instrumentation
in a single connection object.

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: alrex <alrex.boten@gmail.com>
2020-05-08 19:04:36 -07:00