Commit Graph

1319 Commits

Author SHA1 Message Date
Chris Kleinknecht 79a2ca277c Prepare to host on readthedocs.org (#452) 2020-03-02 11:42:24 -08:00
Hector Hernandez 21cbbb6990 OT Collector trace exporter (#405)
Based on the OpenCensus agent exporter.

Fixes #343

Co-authored-by: Chris Kleinknecht <libc@google.com>
2020-02-27 16:37:24 -08:00
Brett Langdon f13c716af6
Merge in latest from datadog/dd-trace-py (#1) 2020-02-26 08:57:16 -08:00
Hector Hernandez 2256f07e53 Prometheus metric exporter (#378)
prometheus-exporter: initial commit
2020-02-21 11:31:04 -08:00
joshuahlang b259e320a6 Clean up tox.ini (#417)
Remove redundant environments and separate environments into logical groupings
for maintainability.
2020-02-20 09:25:04 -08:00
Yusuke Tsutsumi 260ca25911 Upgrading tox envs to python3.8 (#426)
Python3.8 is now stable, and we should run the common tasks under 3.8
instead of 3.7
2020-02-18 10:33:30 -08:00
alrex 2b2a512724 Adding Context API (#395)
This change implements the Context API portion of OTEP #66. The
CorrelationContext API and Propagation API changes will come in future PRs.
We're leveraging entrypoints to support other implementations of the Context
API if/when necessary. For backwards compatibility, this change uses
aiocontextvars for Python versions older than 3.7.

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
2020-02-13 15:18:39 -08:00
Leighton Chen 5b282c3951 Metrics export pipeline + metrics stdout exporter (#341)
Initial implementation of the end-to-end metrics pipeline.
2020-02-11 11:07:11 -08:00
Hector Hernandez 35001a0c69 Add pymongo functional tests (#340) 2020-02-07 13:55:09 -08:00
Hector Hernandez ee2796a924 Adding psycopg2 integration (#298) 2020-01-21 16:32:38 -08:00
Daniel González 8b08ed0e60 Remove pinned multidict (#364) 2020-01-13 11:52:23 -08:00
alrex e43ee892ef Using InMemorySpanExporter for wsgi/flask tests (#306)
The InMemorySpanExporter provides a friendly interface to retrieving span information, reducing the need for mocking in unit tests.

Signed-off-by: Alex Boten <aboten@lightstep.com>
2020-01-07 09:58:27 -08:00
Hector Hernandez f28e259eb5 Adding DB API integration + MySQL connector integration (#264)
Adding the ext.dbapi and ext.mysql package.
2020-01-05 09:41:15 -08:00
alrex 331aeb3751 Adding Zipkin exporter (#320)
Signed-off-by: Alex Boten <aboten@lightstep.com>
2019-12-29 22:02:55 -08:00
alrex 8b0cb2fa2f Adding Zipkin exporter (#320)
Signed-off-by: Alex Boten <aboten@lightstep.com>
2019-12-29 22:02:55 -08:00
alrex ee50e5073e Adding docs for sdk and integrations (#319)
Adding documentation that was previously missing for multiple sdks and integrations.

Signed-off-by: Alex Boten <aboten@lightstep.com>
2019-12-12 10:18:15 -08:00
Christian Neumüller 748339ce5c Work around build failures (#330) 2019-12-11 09:55:54 -08:00
Christian Neumüller d8434bf2da Add eachdist.py to simplify build (#291) 2019-12-09 17:54:56 -08:00
Christian Neumüller f6d132f61d Add eachdist.py to simplify build (#291) 2019-12-09 17:54:56 -08:00
Christian Neumüller f5ca0bffad Do full Sphinx build every time to not hide errors (#322) 2019-12-09 15:39:26 -08:00
Diego Hurtado 0f88a05b5e Add posargs (#324)
Fixes #323
2019-12-09 15:26:42 -08:00
Christian Neumüller 75eb39327b Update WSGI & Flask integrations to follow new semantic conventions (#299)
Updates flask & WSGI integrations to follow new semantic conventions for HTTP
as of #263.
2019-12-09 15:26:00 -08:00
Chris Kleinknecht 95deb74b8b Remove obsolete version requirement for pytest (#317) 2019-12-06 10:49:16 -08:00
Leighton Chen 17b58d131d Implement LabelSet for metrics (#258)
The primary purpose of LabelSets are to have an optimal way of re-using handles
with the same label values. We achieve this by having the keys and values of
the labels encoded and stored in each LabelSet instance, so we can have an easy
lookup to the corresponding handle for each metric instrument.
2019-12-02 21:25:53 -08:00
alrex d79ca4c148 Always recreate lint env (#310) 2019-11-27 14:19:17 -08:00
Diego Hurtado 44b64150f1 Fix isort issues (#309) 2019-11-27 11:40:10 -08:00
Johannes Liebermann e985bec6ed Add documentation for the OpenTracing shim (#244) 2019-11-25 13:09:44 -08:00
Christian Neumüller aa0623b662 Add Flask integration based on WSGI ext (#206)
The flask integration has (only) two advantages over the plain WSGI middleware
approach:

- It can use the endpoint as span name (which is lower cardinality than the
  route; cf #270)
- It can set the http.route attribute.

In addition, it also has an easier syntax to enable (you don't have to know
about Flask.wsgi_app).
2019-11-22 16:27:55 -08:00
Leighton Chen 9fd4d2a84f Remove Azure Exporters out of main repo (master) (#272) 2019-11-21 08:13:14 -08:00
alrex 3b89d506d1 Adding more documentation around examples (#277) 2019-11-15 18:10:21 -08:00
alrex 5d00aeb550 Skip pytest 5.2.3 (#293) 2019-11-15 13:45:51 -08:00
Alex Boten 67f43ea6ab initial commit
Signed-off-by: Alex Boten <aboten@lightstep.com>
2019-11-15 08:52:03 -08:00
Chris Kleinknecht f4433d9332 Bump sphinx-autodoc-typehints to 1.10.2 (#271) 2019-11-12 10:58:18 -08:00
Hector Hernandez c04bc874ae Adding pymongo integration (#232) 2019-11-07 15:13:18 -08:00
Aliaksei Urbanski 1bc956f705 Add test coverage collecting (#128) 2019-11-06 16:11:45 -08:00
Aliaksei Urbanski ef96394c16 Add test coverage collecting (#128) 2019-11-06 16:11:45 -08:00
Hector Hernandez 4e505248db Do not use latest sphinx-autodoc-typehints (#267) 2019-11-04 14:57:02 -08:00
Chris Kleinknecht 68af5cd0d8 Reblacken (#249) 2019-10-29 11:11:47 -07:00
Yusuke Tsutsumi 38c8c0fbc7 Adding w3c tracecontext integration test (#228)
Verifying that our tracecontext is compliant with the w3c
tracecontext reference is valuable. Adding a tox command
to verify that the TraceContext propagator adheres to the
w3c spec.

The tracecontexthttptextformat is now completely compliant with the w3c
tracecontext test suite.
2019-10-29 11:01:59 -07:00
Chris Kleinknecht c7f20df264 Add sampler API, use in SDK tracer (#225) 2019-10-24 07:57:52 -07:00
Johannes Liebermann 47bafab91b OpenTracing Bridge - Initial implementation (#211)
Initial implementation, without baggage support.
2019-10-24 16:46:23 +02:00
Johannes Liebermann 49b63f95a1 Fix mypy errors (#229)
In particular, the following errors are fixed in this commit:

* Don't return False in __exit__

Returning a literal causes a mypy error when combined with the
`typing.Optional[bool]` type hint. Furthermore, exception handling is
the same when returning `False` and when returning `None` (the
exception is re-raised). Therefore, it's simpler to remove the return
statement and change the type hint to `None`.

* Correctly initialize nested tuple

Tuples of length 1 should be initialized with a trailing comma to be
properly interpreted.

* Pass correct type to use_context() in test

* Add type annotations for test helper functions

Since we have `disallow_untyped_calls = True` in our mypy config for
tests, we must add type annotations to any function that is called
from a test.


Addditionally, bump minimal mypy version to 0.740 to consistently reproduce these errors.
2019-10-21 17:27:32 +02: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
Reiley Yang d0bee00e1a Move example app to the examples folder (#172) 2019-09-25 12:46:41 -07:00
Reiley Yang 657c8fd39e Skeleton for azure monitor exporters (#151) 2019-09-24 20:12:56 -07:00
Christian Neumüller f6f8d55816 Ensure that type info is picked up from installed package. (#124)
* Ensure that type info is picked up from installed package.

This required moving all top-level modules to a sub-package, to not
create collisions with py.typed marker files.

See https://www.python.org/dev/peps/pep-0561/#packaging-type-information

* Add MANIFEST.in for SDK package.
2019-09-16 11:19:34 +02:00
Aliaksei Urbanski 6765f82ab0 Fix skipping tests for PyPy (#133) 2019-09-11 10:25:00 +02:00
Yusuke Tsutsumi 1e8e5dd923 Introducing an example app instrumented with opentelemetry (#129)
Creating an example app that showcases how an application integrates with opentelemetry.
2019-09-10 22:14:26 -07:00
Christian Neumüller 786430c16c Fix setup for ext packages. (#122)
* Fix setup for ext packages.

Previously the wheels would contain the metadata but not the actual
code.

* Check that all packages install properly in test.

* Document why we don't use -e.
2019-09-06 11:30:18 +02:00
Aliaksei Urbanski ef4d7840a6 Describe isort's multi_line_output setting (#109)
These changes follow up the "Fix and improve tests for Python != 3.7" PR.

The multi_line_output was already set to 3 in the
"Add initial black formatting" PR, so after rebasing to master
this commit contains only comment that describes a magic number
from the isort configuration file.

Corresponding PR:

 - https://github.com/open-telemetry/opentelemetry-python/pull/109

Related discussions:

 - https://github.com/open-telemetry/opentelemetry-python/pull/95#discussion_r315942697

 - https://github.com/open-telemetry/opentelemetry-python/pull/95#issuecomment-523566519
2019-09-05 08:57:30 +02:00