Commit Graph

1810 Commits

Author SHA1 Message Date
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
Mauricio Vásquez cf13bbb94a tox: add --diff to isort (#118)
Sometimes it complains and it is difficult to understand what exactly it wants.
The --diff option allows to know what is the format it expects.
2019-09-02 13:23:40 +02:00
Allan Feldman 5b00ddcaed Add initial black formatting (#104)
Closes: #88
2019-08-29 10:20:42 -07:00
Christian Neumüller 5480b0eee6 Fix running tox on Windows. (#111) 2019-08-27 09:51:21 -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
Christian Neumüller 009de09c20 Requests integration (#94)
Adds requests integration. Two commits that might be of special interest (see #94):

* c66af2faa100b0f41afafdb6e4de9f4de4cc62bc requests test: Use actual Response object.

Co-Authored-By: Allan Feldman <6374032+a-feld@users.noreply.github.com>

* 1b90a0ddc286c936f7256b14e14ef36fd3c6a24f More tests, rename to http-requests to work around pylint bug (?)

See previous CI failure for pylint issue:

************* Module ext/opentelemetry-ext-requests/src/__init__.py
ext/opentelemetry-ext-requests/src/__init__.py:1:0: F0001: No module named ext/opentelemetry-ext-requests/src/__init__.py (fatal)

It seems that pylint gets confused when there is more than one "requests" module??
2019-08-27 16:01:23 +02:00
Aliaksei Urbanski 94be2dcd04 Improve testing (#95)
I believe it would be nice to have
tests on CI not only for Python 3.7,
but for all supported Python versions.

These changes:

 - fix compatibility with Python 3.5 and 3.4

 - add tests for various Python versions on CI

 - allow running tests for any branches
2019-08-26 12:48:04 +02:00
Allan Feldman db9fdb8a16 Implement WSGI middleware integration. (#84) 2019-08-19 11:10:15 -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