Commit Graph

25 Commits

Author SHA1 Message Date
Leighton Chen c265e2f035
Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
Diego Hurtado 2fd68a2bf9
Remove Configuration from instrumentations (#285) 2021-02-04 08:02:37 -08:00
Owais Lone 8b9202be6f
Updated dbapi and psycopg2 instrumentations. (#246)
Changes:

- Update dbapi instrumentation to use the SQL statement name as the span
instead of the entire SQL query.
- Renamed TracedCursor with CursorTracing. The class was not a valid
Cursor so the name was confusing.
- Updated CursorTracing's (previously TracedCursor) traced_execution
method to accept the cursor instance as the first argument. This is
required as for some dbapi implementations, we need a reference to the
cursor in order to correctly format the SQL query.
- Updated psycopg2 instrumentation to leverage dbapi's `cursor_factory`
mechanism instead of wrapping the cursor with wrapt. This results in a
simpler instrumentation without monkey patching objects at runtime and
allows psycopg2's type registration system to work. This should make it
possible to use psycopg2 instrumentation when using the JSONB feature or
with frameworks like Django.
2021-01-20 10:45:28 -08:00
Owais Lone 472f845381
Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
Azfaar Qureshi f6f5b90aeb
Prometheus Remote Write Exporter (6/6) (#227)
* adding README

adding sample app

adding examples readme

fixing lint errors

linting examples

updating readme tls_config example

excluding examples

adding examples to exclude in all linters

adding isort.cfg skip

changing isort to path

ignoring yml only

adding it to excluded directories in pylintrc

only adding exclude to directory

removing readme.rst and adding explicit file names to ignore

adding the rest of the files

adding readme.rst back

adding to ignore glob instead

reverting back to ignore list

converting README.md to README.rst

* addressing readme comments

* adding link to spec for details on aggregators

* updating readme

* adding python-snappy to setup.cfg
2020-12-22 11:06:22 -08:00
Shovnik Bhattacharya 9b71f8b30c
Setup Prometheus Remote Write Exporter (#180) 2020-11-27 09:58:55 -08:00
(Eliseo) Nathaniel Ruiz Nowell eb53012a8c
Fix lint by making pkg tests folders namespace pkgs (#131) 2020-11-06 13:11:51 -08:00
Nathaniel Ruiz Nowell 5135b80c13 Working on lint tests 2020-11-03 16:41:03 -08:00
Nathaniel Ruiz Nowell 82e44f165e Modify existing workflow for CI tests 2020-11-03 13:50:06 -08:00
Nathaniel Ruiz Nowell 48217da7cf Merge branch 'core-ci-v0.15b0' 2020-11-03 10:29:55 -08:00
Amos Law 82581272cf Protect access to Span implementation (#1188) 2020-10-06 14:44:41 -07:00
Steve Flanders ce66c8d458
Remove non-inclusive language (#43)
Addresses #42

TODO: address pylint
2020-09-08 17:06:47 -07:00
Steve Flanders ff69908250 Remove non-inclusive language from comments in pylint (#1077)
* Remove non-inclusive language from comments in pylint
Co-authored-by: Daniel <61800298+ffe4@users.noreply.github.com>
2020-09-08 08:05:34 -07:00
Diego Hurtado e103fbb0de exporter/otlp: Add OTLP metric exporter (#835) 2020-08-17 23:06:05 -05:00
Tahir H. Butt 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
Diego Hurtado 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
Mauricio Vásquez fc4620c5b8
Add eachdist and move tox to root folder (#29)
Move tox and other configuration files to root folder. Add eachdist to make it
easier to handle operations with different packages.

The eachdist is taken from opentelemetry but slighty modified to avoid ignoring
a given path.
2020-04-09 10:06:59 -07:00
Chris Kleinknecht c7f20df264 Add sampler API, use in SDK tracer (#225) 2019-10-24 07:57:52 -07:00
Mauricio Vásquez 050ede7173 Add Jaeger exporter (#174)
This adds a Jeager exporter for OpenTelemetry.  This exporter is based
on https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-jaeger.

The exporter uses thrift and can be configured to send data to the agent and
also to a remote collector.

There is a long discussion going on about how to include generated files
in the repo, so for now just put them here.
2019-10-08 12:24:23 +02:00
Allan Feldman 5b00ddcaed Add initial black formatting (#104)
Closes: #88
2019-08-29 10:20:42 -07:00
Aliaksei Urbanski 6a8f3eeee7 Relax the pylint rule for constants (#108)
These changes follow up the "Fix and improve tests for Python != 3.7" PR.
2019-08-27 09:49:39 -07:00
Chris Kleinknecht ead2e6b192 Span creation in tracer SDK (#69) 2019-08-06 13:36:20 -07:00
Chris Kleinknecht b6b1bc9a71 Lint SDK package (#65) 2019-07-26 16:53:07 -07:00
Chris Kleinknecht 6838c64c8a Set pylint's line length to 79 chars (#35) 2019-06-27 09:03:05 -07:00
Christian Neumüller 24604c3204 Add a .pylintrc & fix warnings (#24)
* Add .pylintrc based on OpenCensus (related #6).

* Fix/disable pylint warnings.

* pylint: Fix W0107: Unnecessary pass statement (unnecessary-pass)

I'm not sure I like this warning.
2019-06-25 08:52:03 +02:00