Commit Graph

1810 Commits

Author SHA1 Message Date
Dipto Chakrabarty e9f83e1292
make span attribute available to urllib (#1014) 2022-04-12 20:37:46 +05:30
Ashutosh Goel 7deea055dd
Add docs to capture HTTP request/response headers (#1038) 2022-04-12 00:10:59 +05:30
Sanket Mehta 45448f8bb2
FastAPI: capture custom request response headers in span attributes (#1032) 2022-04-11 11:10:26 -07:00
Alex Boten 0fdc3c1656
[docs] update maintainers (#1045) 2022-04-09 01:16:44 +05:30
Ashutosh Goel 229dc4561f
Pyramid: Capture custom request/response headers (#1022) 2022-04-08 22:00:03 +05:30
Srikanth Chekuri d76066893b
Pin bleach to 4.1.0 (#1044) 2022-04-08 08:56:09 -07:00
Alex Boten 40c1805b11
`opentelemetry-instrumentation-system-metrics` restore package (#1012) 2022-04-06 10:54:22 -07:00
RJ Duffner b8cad79113
Update pymemcache instrumentation to support pymemcache version >= 1.3.5 (#935) 2022-04-06 08:55:51 -07:00
Srikanth Chekuri dbc3073bd2
Temporarily disable benchmarks workflow (#1031) 2022-04-05 12:40:11 -07:00
Sanket Mehta b1e94d6a6b
Django: Capture custom request/response headers (#1024) 2022-04-05 12:05:48 -07:00
Srikanth Chekuri 36ba621226
Fix multiple import errors (#1030) 2022-04-05 09:31:19 -07:00
Greg Buehler d1f3d51885
Pyramid handle non-HTTPException (#1001) 2022-04-01 10:56:38 -07:00
Sanket Mehta b1bf8d4a54
code change to add custom http and websocket request and response hea… (#1004)
* code change to add custom http and websocket request and response headers as span attributes. Issue: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/919

* adding entry to changelog

* changes after running "tox -e generate" locally

* - added server_span.is_recording() in _get_otel_send() just to make sure the span is recording before adding the attributes to span.
- changed span to current_span to make sure attributes are being added to proper span.

* removed commented code

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-28 19:05:08 -06:00
rahulgupta92 f8b877eebc
Update .instrument() call signature response_hook argument name in the header comments (#1015)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-28 11:36:42 -06:00
zhutianyu db478789e4
bugfix: correct generate search span_name (#1018) 2022-03-24 10:56:52 -07:00
rahulgupta92 8727bc3374
Correct minor typos in the codebase (#1019)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-22 23:20:48 -06:00
Patrice Chalin 1bb3dcf385
Update README.md (#1013)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2022-03-21 11:04:33 -07:00
Ashutosh Goel 59ca95d12f
Falcon: Capture request/response headers as span attributes (#1003) 2022-03-21 10:23:06 -07:00
Thiyagu55 e861b93362
Extending SQLCommenter support of dbapi into psycopg2 (#940)
* Added configuration for sqlcommenter

* Fixed linting errors

* Updated CHANGELOG.md

* Unit test case for sqlcommenter in psycopg2

* Merge conflict resolved

* Update CHANGELOG.md

* psycopg2 sqlcommenter integration test

* linting changes

* linting changes

* linting changes

* linting changes

* linting changes

* version compatability issue fix

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2022-03-17 19:19:30 -06:00
Owais Lone 2f74c9021c
Add opentelemetry-contrib-instrumentations meta package (#681) 2022-03-16 18:02:44 -06:00
Thiyagu55 abd01fbe99
Changed the format of traceparent id (#941) 2022-03-15 17:10:05 -07:00
Alex Boten 640b117ab8
fix non-recording bug (#999) 2022-03-15 10:50:33 -07:00
Ran Nozik 8fc95cab64
support topic as kwarg (#949) 2022-03-14 09:38:46 -07:00
Ashutosh Goel d86f1645da
Tornado: Capture custom request/response headers as span attributes (#950) 2022-03-11 11:30:45 -08:00
brett-bim 5539d1f35a
adding additional event sources (#926) 2022-03-11 10:39:01 -08:00
Diego Hurtado 7a0caed36f
updating changelogs and version to 1.10.0-0.29b0 (#995) (#996) 2022-03-10 17:49:49 -06:00
Owais Lone 1b7e8e44b2
Moving owais to approver (#953) 2022-03-10 15:10:12 -08:00
Alex Boten fcba751969
[instrumentation/wsgi] fix NonRecordingSpan bug (#957)
* [instrumentation/wsgi] fix NonRecordingSpan bug

There was a bug caused by accessing `.kind` on a NonRecordingSpan. Added a test to validate the fix.

Fix #956

* fix lint

* use is_recording

* fix lint

* fix lint

* fix lint
2022-03-10 12:02:49 -06:00
Munir Abdinur 1bf9e0c51f
datadog-apm: deprecate datadog exporter (#900) 2022-03-10 09:22:04 -08:00
Ashutosh Goel c60a7e46ab
Flask: Capture custom request/response headers as span attributes (#952)
* Capture request/response headers for flask

* Update changelog and fixed lint errors
2022-03-09 11:52:06 +00:00
Thiyagu55 dbb35a2946
Sqlcommenter integration into SQLAlchemy (#924)
* Integrating sqlcommenter into psycopg2

* Integrating sqlcommenter into psycopg2 - Converted public local variable into private

* Added test cases for sqlcommenter & PR Changes

* Code refactoring for generate sqlcommenter

* Added testcase for sqlcommenter integration into sqlalchemy

* updated change log

* updated to accept latest logs

* Updated lint changes

* Fixed errors due to linting

* Fixed linting errors

* Fixed linting errors

* Fixed linting errors

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-08 23:57:00 -06:00
Ashutosh Goel 2f5bbc416a
Capture custom request/response headers for wsgi and change in passing response_headers in django, pyramid (#925) 2022-03-07 09:41:46 -08:00
Trask Stalnaker 2ab66416ab
Make requests span attributes available to samplers (#931) 2022-03-04 11:00:37 -08:00
Remi Rampin 7bb29bd9ab
Fix typos (#929) 2022-03-02 14:03:34 -08:00
Ashutosh Goel ca5a4a16a5
Fixing build failures (#928) 2022-03-01 13:18:14 -08:00
Owais Lone 1080b04902
Safer patching for Falcon API (#895)
We replace Falcon API class with a partial callable. It is safer to
replace it with a sub-class of the base falcon.API class so any other
systems making assumptions about falcon don't fail.
2022-02-20 17:40:13 +05:30
Alex Boten 22cc215c6c
[build] bump pylint (#923)
* [build] bump pylint

Fixes #632

* apply lint suggestions

* specify encoding
2022-02-16 17:52:00 -06:00
Srikanth Chekuri d54b61e687
feat(instrumentation-dbapi): add experimental sql commenter capability (#908)
* feat(instrumentation-dbapi): add experimental sql commenter capability

* Update instrumentation/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi/__init__.py

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>

* Fix lint

* Add CHANGELOG entry

* Fix lint

* Fix lint again

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-02-11 10:14:26 -06:00
Sanket Mehta 454f4b1511
code changes to resolve conditional server span creation for WSGI and adding 'attributes' parameter to util function (#903)
* code changes to resolve conditional server span creation for WSGI (https://github.com/open-telemetry/opentelemetry-python-contrib/issues/454)

* Adding entry to changelog.md

* modifying _start_internal_or_server_span() to add attributes as a parameter. Also calling _start_internal_or_server_span() in WSGI instrumentation

* resolving flake8 and typo issues
2022-02-08 22:03:18 -06:00
Ran Nozik 0b9e96dae0
Support newer httpx versions (#866) 2022-02-04 09:07:31 -08:00
Owais Lone 8d309af49a
Logging: Defensively access provider resource (#890)
Now service name is extracted from the provider defensively and lazily.
This accounts for an SDK that does not provide access to "resource" via
TracerProviders and for lazy initialization of TracerProviders.

Fixes #810

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-02-03 12:00:15 -06:00
Sanket Mehta 0431d7b62f
adding unit test case for ASGI framework for application wrapped with… (#899)
* adding unit test case for ASGI framework for application wrapped with another framework

* resolving lint errors

* resolving generate build errors

* resolving flake errors

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-02-03 22:40:03 +05:30
Ashutosh Goel 0180b837ee
Adding unit tests for conditional server span creation in starlette (#897)
* Adding unit tests for conditional server span creation in starlette

* Adding changelog entry and renaming function

* Update CHANGELOG.md

Removing changelog entry

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-02-03 21:57:06 +05:30
Ashutosh Goel c0eba00244
Using _start_internal_or_server_span function in asgi interceptor (#898) 2022-02-03 09:36:15 -06:00
Ashutosh Goel 0e92d6add8
Mark span as internal in presence of another span for tornado and use (#889)
_start_internal_or_server_span function for flask, pyramid and django

Adding changelog entry

Adding unit test and fixing lint errors

Refactoring to use _start_internal_or_server_span function

Removing unwanted imports and variables

Fixing lint errors

adding changes from tox -e generate

Fixing build errors
2022-02-03 14:08:04 +05:30
Greg Buehler 0e553419c5
Handle null statuses in http_status_to_status_code (#823) 2022-02-02 10:53:43 -08:00
Oleg A e69030e94b
aiohttp instrumentation: Remove `span_name` from docs (#857) 2022-02-02 10:08:20 -08:00
Oleg A 895800fa1d
aiohttp instrumentation: correct url filter input type (#864)
* fix: correct _UrlFilterT

* docs: CHANGELOG.md update

* style: apply isort

* fix: add yarl to docs requirements

* Revert "fix: add yarl to docs requirements"

This reverts commit e482ba54fc.

* fix: add yarl to nitpick exceptions

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-02-01 16:04:49 -06:00
Alex Boten ad2594e166
fix broken jinja2 test (#892)
* fix broken jinja2 test

* fix test ...
2022-02-01 18:19:18 +00:00
Ran Nozik 2189e81da1
feat: support pymongo v4.0 (#876) 2022-02-01 17:16:16 +05:30