Commit Graph

181 Commits

Author SHA1 Message Date
Leighton Chen 93ecda427b tox 2021-10-13 14:12:20 -07:00
Leighton Chen 57a6cde741 Update tox.ini 2021-10-13 12:17:09 -07:00
Michael Manganiello 5105820fff
Add Django ASGI support (#391) 2021-10-12 10:28:03 -07:00
(Eliseo) Nathaniel Ruiz Nowell 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
Nikolay Sokolik 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
alrex 2710e25b78
add Python 3.9 to setup.cfg template (#698) 2021-09-28 17:26:18 +00:00
alrex d2984f5242
remove need to clone core repo (#678) 2021-09-27 20:28:32 +00:00
Adrian Garcia Badaracco 8e0d0e04a9
Falcon 3 support (#644) 2021-09-27 19:58:13 +00:00
Christian Neumüller efaa257a63
Add net.peer.ip in requests & urllib3 instrumentations. (#661) 2021-09-27 10:21:26 -07:00
Owais Lone 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
Owais Lone 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
Diego Hurtado c279ee59a8
Rerun a flaky test (#639)
* Rerun a flaky test
2021-08-31 03:47:58 +05:30
Owais Lone 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
alrex f878b834f8
add comment to tox (#621) 2021-08-13 13:28:04 -07:00
alrex d14d888c71
disable elasticcachesearch7 (#619) 2021-08-12 10:45:01 -07:00
Matthew Brown c8b6de6c1c
Add support for SQLAlchemy 1.4 (#568) 2021-08-04 15:00:10 -07:00
Diego Hurtado 278149553b
Remove opentelemetry-instrumentation (#595)
Fixes #592
2021-07-19 09:19:48 -07:00
Ryan, Siu Long Wa c100b21fa4
Require aiopg to be less than 1.3.0 (#560) 2021-07-01 14:01:25 -07:00
Ryan, Siu Long Wa 63e7561931
Update the psycopg2 dependency (#543) 2021-06-22 07:47:34 -07:00
Leighton Chen c1fbe0e281
Fix tox build (#542) 2021-06-14 15:46:10 -07:00
Eunice Kim 4be32b542b
Add create context key to contrib (#502) 2021-06-11 09:50:06 -07:00
Ryo Kather 865837f757
Ensure clean http url (#538) 2021-06-11 09:01:52 -07:00
Joshua 9695bcfed3
Add support for HTTPX instrumentation (#461) 2021-06-08 08:28:03 -07:00
Joshua b2dd4b8205
Fix pyodbc cursor error in SQLA instrumentation (#469) 2021-06-07 09:11:37 -07:00
Owais Lone 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
alrex af7ab072cc
update base version of python to 3.9 (#515) 2021-05-31 12:17:49 -07:00
Owais Lone daa72382df
Instrumentation runtime checks (#475) 2021-05-26 22:55:36 -07:00
alrex b1d6c90d70
add python 3.9 tests (#466) 2021-04-27 09:09:30 -07:00
Leighton Chen 78cd776243
Revert typo (#470) 2021-04-26 17:26:18 -07:00
Leighton Chen f2311ddc40
Move opentelemetry-instrumentation from core (#465) 2021-04-26 11:35:13 -07:00
Srikanth Chekuri 8d0c150b31
Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
Mario Jonke 1c5f0b5465
Add urllib3 instrumentation (#299) 2021-03-31 08:08:53 -07:00
alrex ef0f74ec64
remove python 3.5 support (#374) 2021-03-18 08:15:35 -07:00
Owais Lone 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
Diego Hurtado 269e0f4de3
Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
Leighton Chen c265e2f035
Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
alrex b016f6f774
update requirements for snappy (#314) 2021-02-04 15:10:10 -08:00
Diego Hurtado 2fd68a2bf9
Remove Configuration from instrumentations (#285) 2021-02-04 08:02:37 -08:00
(Eliseo) Nathaniel Ruiz Nowell 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
alrex 8abed07184
fix docker-tests build (#282) 2021-01-06 20:39:12 -08:00
Owais Lone 472f845381
Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
Michael Manganiello f9ea61cfd8
Celery: Add support for new major version 5.x (#266) 2020-12-22 15:48:23 -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
Max Nikitenko 187987d9cc
Feature/urllib instrumentation (#222) 2020-12-15 10:11:33 -08:00
Leighton Chen dc24b9d0b4
Fix build (#258) 2020-12-15 08:30:01 -08:00
(Eliseo) Nathaniel Ruiz Nowell 91bfc9afe5
Add performance tests to AWS SDK Extension (#243) 2020-12-11 11:22:17 -08:00
Azfaar Qureshi 6514f37177
Prometheus Remote Write Exporter (5/6) (#216) 2020-12-09 10:46:31 -08:00
Leighton Chen 3b48a38948
Explicitly install dependencies in lint env for tox (#241) 2020-12-08 07:28:48 -08:00
Diego Hurtado 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
(Eliseo) Nathaniel Ruiz Nowell cb70679ae8
Add sklearn tests to test workflow (#177) 2020-11-12 11:37:49 -08:00