Commit Graph

1112 Commits

Author SHA1 Message Date
Srikanth Chekuri b3aa7a79d3
Update TraceState (#276) 2021-01-20 12:13:12 -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 8c8f2785bd
SQLAlchemy: Use SQL operation and DB name as the Span name (#254)
Current instrumentation uses the entire SQL query as the operation name
which makes traces very hard to read and understand in addition to
introducing high-cardinality issues. This commit fixes the problem by
using only the SQL operation name and the DB name instead of the entire
query.
2021-01-20 08:41:19 -08:00
Leighton Chen d12f67fc31
Fix ids_generator references from moving from api to sdk (#283) 2021-01-11 12:40:38 -08:00
Srikanth Chekuri 57b8106edc
Fix AttributeError: __aexit__ for aiopg.connect and aiopg.create_pool (#235) 2021-01-08 08:56:38 -08:00
Dave Grochowski cb01a6bcb7
Use instanceof to check if responses are valid Response objects (#273) 2021-01-07 18:24:19 -08:00
alrex 8abed07184
fix docker-tests build (#282) 2021-01-06 20:39:12 -08:00
Thomas Desrosiers 21a5c164fa
Adds back retry_attempts to botocore (#275) 2021-01-05 17:27:18 -08:00
Michael Stella 5a6c4f6fd2
datadog-exporter: bugfix for unintentional type change (#261) 2021-01-05 09:58:47 -08:00
Owais Lone 9fea7f7a27
Ensure SQLAlchemy spans have kind set to CLIENT (#278)
SQLAlchemy spans were missing kind field and it was being set to
internal instead of client. This commit changes sqlalchemy spans to have
kind set to "client" instead.
2021-01-05 09:05:58 -08:00
Owais Lone 472f845381
Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
Shovnik Bhattacharya df79be6ea9
Add CodeQL analysis (#277) 2020-12-31 12:52:03 -08:00
(Eliseo) Nathaniel Ruiz Nowell cfaa2b7fff
Set max number of commits in performance graph (#270) 2020-12-22 16:32:58 -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
Leighton Chen 65801c31d8
Fix requests and urllib instrumentations span name callback parameters (#259) 2020-12-16 08:17:23 -08:00
Max Nikitenko 187987d9cc
Feature/urllib instrumentation (#222) 2020-12-15 10:11:33 -08:00
João Sampaio 20c1cb994b
When Flask activation is missing, do not emit a log message (#253)
If a Flask request doesn't have an active span, it just means that it
was initialized via a mechanism that doesn't run `before_request`, like
`app.test_request_context` or even manually. It is okay and
instrumentation still works.
2020-12-15 09:53:07 -08:00
Leighton Chen dc24b9d0b4
Fix build (#258) 2020-12-15 08:30:01 -08:00
(Eliseo) Nathaniel Ruiz Nowell 4b830771d5
Only commit benchmark results to master folder (#250) 2020-12-14 14:16:11 -08:00
Diego Hurtado e5a0153794
Add test case for DataDog fields and AWS SDK Extension (#231) 2020-12-11 12:48:01 -08:00
(Eliseo) Nathaniel Ruiz Nowell 91bfc9afe5
Add performance tests to AWS SDK Extension (#243) 2020-12-11 11:22:17 -08:00
Michael Stella be463c548a
gRPC client instrumentation docs fixes (#245) 2020-12-11 10:18:16 -08:00
Sergei Malafeev 11a06db3d5
Rename "host.port" attribute to "net.host.port" (#242) 2020-12-11 07:55:11 -08:00
Michael Stella a7aa662fe5
Add more tests, fix compliance to semantics (#236) 2020-12-10 10:44:26 -08:00
Azfaar Qureshi 6514f37177
Prometheus Remote Write Exporter (5/6) (#216) 2020-12-09 10:46:31 -08:00
alrex ae70d5abe5
Combine changelogs (#239) 2020-12-08 16:20:29 -08:00
Srikanth Chekuri 76fda25b25
Add ability to exclude some routes in fastapi and starlette (#237) 2020-12-08 10:24:32 -08:00
Shovnik Bhattacharya b310ec1728
Added exporter request methods (#212) 2020-12-08 10:06:46 -08:00
Leighton Chen 3eb27ca466
Return none for Getter if key does not exist (#233) 2020-12-08 08:22:38 -08:00
Leighton Chen 3b48a38948
Explicitly install dependencies in lint env for tox (#241) 2020-12-08 07:28:48 -08:00
Srikanth Chekuri 744e961080
Update instrumentations (#232) 2020-12-07 08:29:57 -08:00
Srikanth Chekuri a403b65183
Use Config class methods for common purposes (#220) 2020-12-04 10:18:25 -08:00
Vishal Khondre 609b025cd9
Update __init__.py (#223) 2020-12-03 19:10:12 -08:00
(Eliseo) Nathaniel Ruiz Nowell 70b425a588
Add test to validate propagator fields method (#228) 2020-12-03 16:53:06 -08:00
Shovnik Bhattacharya f71bc2b79e
Add conversion to TimeSeries methods (#207) 2020-12-02 06:47:12 -08:00
Diego Hurtado 8b323e935d
Add fields method (#226)
Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
2020-12-01 16:18:33 -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
Azfaar Qureshi aba6e97d00
Adding param validation (#206)
fix lint changes
2020-11-27 11:39:42 -08:00
Shovnik Bhattacharya 9b71f8b30c
Setup Prometheus Remote Write Exporter (#180) 2020-11-27 09:58:55 -08:00
alrex 18c18f30a2
Merge pull request #218 from open-telemetry/bump-0.17dev0
Update master branch to 0.17.dev0
2020-11-26 09:59:06 -08:00
Alex Boten 4c7ccf0dae update core SHA 2020-11-25 21:13:01 -08:00
Alex Boten bcec49cf2e update version to 0.17.dev0 2020-11-25 21:10:39 -08:00
alrex 3e4c5d3aa3
[pre-release] Update changelogs, version [0.16b0] (#217) 2020-11-25 19:44:20 -08:00
Srikanth Chekuri 4aeac4a9ba
Update README.md (#214) 2020-11-25 07:47:41 -08:00
alrex be7a2c5c68
copying scripts to prepare release (#211) 2020-11-24 11:13:02 -08:00
Leighton Chen dabd2f2dc0
Merge pull request #210 from lonewolf3739/dbindex-redis 2020-11-24 09:49:57 -05:00
Srikanth Chekuri 49f8c52e17 Merge branch 'dbindex-redis' of https://github.com/lonewolf3739/opentelemetry-python-contrib into dbindex-redis 2020-11-24 20:05:44 +05:30
Srikanth Chekuri 659007cd20 Add db for both name and database_index 2020-11-24 20:05:14 +05:30
Leighton Chen 13976b5275
Merge branch 'master' into dbindex-redis 2020-11-24 09:32:30 -05:00