178 Commits

Author SHA1 Message Date
224780f38d Move AWS X-Ray Propagator into its own package (#720)
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-10-12 15:44:03 +00:00
fb24599324 Feature/add pika instrumentation (#680)
* Added initial code

* Add all needed spans, and add support of instrumentation and uninstrumentation

* Added tests. Ready for PR

* Rename RequestsInstrumentation to RequestsInstrumentor to follow conventions

* Add suppress_instrumentation functionality

* Fix suppress_instrumentation functionality

* Fix CR comments and lint test failures

* Add usage of wrapt according to CR comments

* Fix according to CR Comments

* Move the tracer to be an attribute of the instrumentor instead of the channel

* Fix Tests

* Update Changelog and fix failing test

* update code using tox -e generate

* Update the name of the variable to store the tracer provider.

* Update the core repo hash in the workflow

* Update the core repo hash in the workflow

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-10-06 23:52:39 +05:30
2710e25b78 add Python 3.9 to setup.cfg template (#698) 2021-09-28 17:26:18 +00:00
d2984f5242 remove need to clone core repo (#678) 2021-09-27 20:28:32 +00:00
8e0d0e04a9 Falcon 3 support (#644) 2021-09-27 19:58:13 +00:00
efaa257a63 Add net.peer.ip in requests & urllib3 instrumentations. (#661) 2021-09-27 10:21:26 -07:00
2e77bfc555 Added a script to generate readme file for root instrumentations (#647)
directory

This file lists down all instrumentations and the packages+versions they
support. This is helpful to find out at a glance what is exactly
supported.

Co-authored-by: alrex <aboten@lightstep.com>
2021-09-02 01:33:02 +05:30
cc57aacd71 Improve reliability of tests (#643)
* Run tests on Windows in Github Actions

* core sha update

* format code

* fix ci yaml

* rebase

* lint

* Try without win+py3.6 fix

* Try without win+py3.6 fix

* Improve test reliability

Update some tests to use more deterministic methods of testing in memory
spans. This helps the core repo pass tests after adding Windows to CI
matrix.
2021-09-01 12:06:13 +02:00
c279ee59a8 Rerun a flaky test (#639)
* Rerun a flaky test
2021-08-31 03:47:58 +05:30
cc2529e2cd Fix tox lint command (#623)
* Fix tox lint command

- Move apt-get install command to github actions to run on an ubuntu
  system only. This keeps tox.ini cross-platform and enabled to run on
  non-ubuntu systems locally.
- Add `-y` flag to apt-get install command so it does not wait for
  configuration on CI.

* Downgrade pylint to 2.9.x

* Add pip cache to github actions cache
2021-08-25 02:48:23 +05:30
f878b834f8 add comment to tox (#621) 2021-08-13 13:28:04 -07:00
d14d888c71 disable elasticcachesearch7 (#619) 2021-08-12 10:45:01 -07:00
c8b6de6c1c Add support for SQLAlchemy 1.4 (#568) 2021-08-04 15:00:10 -07:00
278149553b Remove opentelemetry-instrumentation (#595)
Fixes #592
2021-07-19 09:19:48 -07:00
c100b21fa4 Require aiopg to be less than 1.3.0 (#560) 2021-07-01 14:01:25 -07:00
63e7561931 Update the psycopg2 dependency (#543) 2021-06-22 07:47:34 -07:00
c1fbe0e281 Fix tox build (#542) 2021-06-14 15:46:10 -07:00
4be32b542b Add create context key to contrib (#502) 2021-06-11 09:50:06 -07:00
865837f757 Ensure clean http url (#538) 2021-06-11 09:01:52 -07:00
9695bcfed3 Add support for HTTPX instrumentation (#461) 2021-06-08 08:28:03 -07:00
b2dd4b8205 Fix pyodbc cursor error in SQLA instrumentation (#469) 2021-06-07 09:11:37 -07:00
5d1f3201af Simplify bootstrap and generate code (#514)
- We now automatically generate bootstrap_gen.py file from the list of instrumentations present in the source tree.
- Bootstrap command now uses consumes this auto-generated list instead of keeping it's own local copy.
- We no longer uninstall packages before installing them as instrumentation package no longer specify libraries as dependencies so the edge cases are no longer there.
- We no longer try to install an incompatible version or force upgrade/downgrade an installed version. This used to leave systems in broken states which should happen no more.
2021-06-01 09:19:09 -07:00
af7ab072cc update base version of python to 3.9 (#515) 2021-05-31 12:17:49 -07:00
daa72382df Instrumentation runtime checks (#475) 2021-05-26 22:55:36 -07:00
b1d6c90d70 add python 3.9 tests (#466) 2021-04-27 09:09:30 -07:00
78cd776243 Revert typo (#470) 2021-04-26 17:26:18 -07:00
f2311ddc40 Move opentelemetry-instrumentation from core (#465) 2021-04-26 11:35:13 -07:00
8d0c150b31 Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
1c5f0b5465 Add urllib3 instrumentation (#299) 2021-03-31 08:08:53 -07:00
ef0f74ec64 remove python 3.5 support (#374) 2021-03-18 08:15:35 -07:00
9ef4410fa8 Added logging instrumentation to enable log - trace correlation (#345)
This commit adds a new logging instrumentation. The instrumentation
patches standard library logging module to inject tracing context
variables (otelSpanID, otelTraceID, otelServiceName) into log record
objects. It also optionally calls `logging.basicConfig()` and sets a
logging format that makes use of these vars if instructed by the user.
2021-03-09 21:52:58 -08:00
269e0f4de3 Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
c265e2f035 Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
b016f6f774 update requirements for snappy (#314) 2021-02-04 15:10:10 -08:00
2fd68a2bf9 Remove Configuration from instrumentations (#285) 2021-02-04 08:02:37 -08:00
c9075cf1f2 Add readTheDocs (#252)
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
Co-authored-by: alrex <aboten@lightstep.com>
2021-01-26 09:06:39 -08:00
8abed07184 fix docker-tests build (#282) 2021-01-06 20:39:12 -08:00
472f845381 Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
f9ea61cfd8 Celery: Add support for new major version 5.x (#266) 2020-12-22 15:48:23 -08:00
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
187987d9cc Feature/urllib instrumentation (#222) 2020-12-15 10:11:33 -08:00
dc24b9d0b4 Fix build (#258) 2020-12-15 08:30:01 -08:00
91bfc9afe5 Add performance tests to AWS SDK Extension (#243) 2020-12-11 11:22:17 -08:00
6514f37177 Prometheus Remote Write Exporter (5/6) (#216) 2020-12-09 10:46:31 -08:00
3b48a38948 Explicitly install dependencies in lint env for tox (#241) 2020-12-08 07:28:48 -08:00
3e36dc282d Mark test case as flaky (#197)
Fixes #196

This marks the test case as flaky, making it run at most 3 times. It is
enough for one of this runs to pass to consider this test case passed
and ran no more. If 3 consecutive runs of this test case fail, the test
case will be considered failed. It has been reported that running this
test case again makes it pass, usually. This approach is preferred over
marking it as xfail(strict=False) because most of the times the test
ends up passing after another run, so that in most of the cases we
can still benefit from running this test case (since if it is actually
failing because of a bug it will be reported as such after failing 3
times, making the team aware of an actual issue happening here).
2020-11-30 14:30:58 -08:00
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