Commit Graph

728 Commits

Author SHA1 Message Date
Leighton Chen f7ba3ba516
update (#337) 2021-02-16 14:27:31 -08:00
Leighton Chen 9c1f98d250
Update main after 1.0.0rc1 release from core (#333) 2021-02-16 09:35:18 -08:00
Diego Hurtado 138927abe6
Update util path (#319) 2021-02-12 10:52:25 -08:00
alrex 0fe9096bfc
Update span interface usage (#324) 2021-02-09 12:31:03 -08:00
Michael Stella 5fc26d3264
gRPC streaming bugfix (#260) 2021-02-08 11:15:48 -08:00
alrex 7bd1d904b2
Ensure resources are not mutated (#310) 2021-02-08 10:54:13 -08:00
Leighton Chen c265e2f035
Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
Michael Stella ade29f692b
gRPC instrumentation: client additions (#269)
The docs on metric labels suggests that they should probably be strings,
and all others I can find are strings, and so these ought to be also.
Otherwise, some of the exporters/processors have to handle things
specifically, and not all of these come out as nice as could be when you
`str()` them.

I've also made sure to use the `StatusCode` name, as that's the
interesting thing.

Finally, there's no need to report specifically that `error=false`, so
I've removed that tag.
2021-02-05 09:09:57 -08:00
Garner Jervis Tan 55efeb6063
Case insensitive header key retrieval for asgi instrumentation (#308) 2021-02-05 08:51:06 -08:00
Diego Hurtado 2fd68a2bf9
Remove Configuration from instrumentations (#285) 2021-02-04 08:02:37 -08:00
Mario Jonke f0adb23143
Remove 'component' span attribute in instrumentations (#301) 2021-01-29 13:15:26 -08:00
alrex f022385e37
update references to main (#306) 2021-01-29 12:09:22 -08:00
M.J 5dd2412d75
Aiohttp instrumentation readme (#286) 2021-01-28 09:12:31 -08:00
alrex 08e82a92d7
[post-release] updating version to 0.18.dev0 (#289) 2021-01-21 09:10:30 -08:00
alrex 2a11aeeafa
[pre-release] Update changelogs, version [0.17b0] (#287) 2021-01-20 16:01:24 -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
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
Thomas Desrosiers 21a5c164fa
Adds back retry_attempts to botocore (#275) 2021-01-05 17:27:18 -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
Michael Manganiello f9ea61cfd8
Celery: Add support for new major version 5.x (#266) 2020-12-22 15:48:23 -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
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
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
Leighton Chen 3eb27ca466
Return none for Getter if key does not exist (#233) 2020-12-08 08:22:38 -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
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 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
Srikanth Chekuri a46744976b Add docstring and comments 2020-11-24 11:32:33 +05:30
Srikanth Chekuri 69f0b40ba9 Set database_index when db is not 0 2020-11-24 10:42:58 +05:30
Srikanth Chekuri 5a7615bbf0
Update instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg/__init__.py
Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
2020-11-24 03:29:10 +00:00
Leighton Chen c1452b71ce
Merge branch 'master' into asyncpg-semantic-conv 2020-11-23 15:39:07 -05:00
Leighton Chen 9ad88e1a41
Merge branch 'master' into req 2020-11-23 14:14:04 -05:00
Leighton Chen b7f8a5bee3
Merge branch 'master' into sqlalchemy-semantic-conv 2020-11-23 13:48:34 -05:00
Srikanth Chekuri d36edda08a Remove service from tests 2020-11-23 22:57:07 +05:30
Srikanth Chekuri 02a28680a8 Merge branch 'sqlalchemy-semantic-conv' of https://github.com/lonewolf3739/opentelemetry-python-contrib into sqlalchemy-semantic-conv 2020-11-23 22:37:33 +05:30
Srikanth Chekuri 63aebd5695 Remove service from docstring and example 2020-11-23 22:37:07 +05:30
Leighton Chen 848cad8d12
Merge branch 'master' into req 2020-11-23 11:04:45 -05:00