1443 Commits

Author SHA1 Message Date
59ca95d12f Falcon: Capture request/response headers as span attributes (#1003) 2022-03-21 10:23:06 -07:00
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
2f74c9021c Add opentelemetry-contrib-instrumentations meta package (#681) 2022-03-16 18:02:44 -06:00
abd01fbe99 Changed the format of traceparent id (#941) 2022-03-15 17:10:05 -07:00
640b117ab8 fix non-recording bug (#999) 2022-03-15 10:50:33 -07:00
8fc95cab64 support topic as kwarg (#949) 2022-03-14 09:38:46 -07:00
d86f1645da Tornado: Capture custom request/response headers as span attributes (#950) 2022-03-11 11:30:45 -08:00
5539d1f35a adding additional event sources (#926) 2022-03-11 10:39:01 -08:00
7a0caed36f updating changelogs and version to 1.10.0-0.29b0 (#995) (#996) v0.29b0 2022-03-10 17:49:49 -06:00
1b7e8e44b2 Moving owais to approver (#953) 2022-03-10 15:10:12 -08:00
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
1bf9e0c51f datadog-apm: deprecate datadog exporter (#900) 2022-03-10 09:22:04 -08:00
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
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
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
2ab66416ab Make requests span attributes available to samplers (#931) 2022-03-04 11:00:37 -08:00
7bb29bd9ab Fix typos (#929) 2022-03-02 14:03:34 -08:00
ca5a4a16a5 Fixing build failures (#928) 2022-03-01 13:18:14 -08:00
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
22cc215c6c [build] bump pylint (#923)
* [build] bump pylint

Fixes #632

* apply lint suggestions

* specify encoding
2022-02-16 17:52:00 -06:00
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
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
0b9e96dae0 Support newer httpx versions (#866) 2022-02-04 09:07:31 -08:00
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
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
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
c0eba00244 Using _start_internal_or_server_span function in asgi interceptor (#898) 2022-02-03 09:36:15 -06:00
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
0e553419c5 Handle null statuses in http_status_to_status_code (#823) 2022-02-02 10:53:43 -08:00
e69030e94b aiohttp instrumentation: Remove span_name from docs (#857) 2022-02-02 10:08:20 -08:00
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 e482ba54fc119a16e001cccc0753554c92549c3e.

* fix: add yarl to nitpick exceptions

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

* fix test ...
2022-02-01 18:19:18 +00:00
2189e81da1 feat: support pymongo v4.0 (#876) 2022-02-01 17:16:16 +05:30
c8020cbea5 updating changelogs and version to 1.9.1-0.28b1 (#887)
* updating changelogs and version to 1.9.1-0.28b1

* Update CHANGELOG.md

Co-authored-by: Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>

* Update CHANGELOG.md

Co-authored-by: Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>

Co-authored-by: Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
v0.28b1
2022-01-31 09:40:29 +00:00
11103ffb9c Add release cadence (#880)
* add note about monthly cadence

Update the release section of the readme to include the monthly cadence of releases.

Fixes #457

* add note about monthly cadence

Update the release section of the readme to include the monthly cadence of releases.

Fixes #457
2022-01-28 17:10:31 -06:00
3ceab3b510 prepare_release script to ignore some packages/files (#885) 2022-01-28 11:24:11 -08:00
14d0726d3c Fix redis doc link (#884)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-01-28 18:58:15 +00:00
ef7769c86e fix: safe kafka partition extraction (#872)
* safe partition extraction

* update changelog
2022-01-28 21:32:50 +05:30
e53c1da979 Add packaging as a required package for pika instrumentation (#882)
Fixes #881
2022-01-28 14:59:59 +05:30
d55d1dc0d6 [tests] use _NoOpTracer and _NoOpTracerProvider (#860)
* [tests] use _NoOpTracer and _NoOpTracerProvider

* update
2022-01-27 15:04:23 -06:00
089c2b8262 Release Botocore Instrumentation as 0.28b0 (#878) 2022-01-27 02:05:32 +05:30
f9b4d2b864 updating changelogs and version to 1.9.0-0.28b0 (#875) v0.28b0 2022-01-26 12:00:44 -06:00
571c3780e6 (instrumentation-sqlite3): trace connections made with dbapi2.connect (#873)
* Change wrap_connect method

* Wrap both connect defs

* Add tests

* Add CHANGELOG entry
2022-01-26 00:19:25 +00:00
ec5b73c626 Support partial timelimit for celery tasks (#847) 2022-01-25 23:43:13 +00:00
b32be746e4 Develop/conditional server span pyramid (#869)
* code change to resolve the bug https://github.com/open-telemetry/opentelemetry-python-contrib/issues/449

* modifying the changelog file to add entry for PR #869

* removing redundent get statement

* Conditionally create server spans for falcon (#867)

* Making span as internal for falcon in presence of a span in current context

* Updating changelog

* Fixing lint and generate build failures

* Resolving comments: Converting snippet to re-usable function

* Fixing build failures

* Resolving comments: Creating wrapper for start span to make internal/server span

* Rerun docker tests

* Resolving comments: Refactoring

* Fix Django 1.9 issue preventing use of MIDDLEWARE_CLASSES (#870)

* Update CHANGELOG.md

* Fix Django 1.9 issue preventing use of MIDDLEWARE_CLASSES

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

* changing the import trace statement to resolve issue with unit test cases

Co-authored-by: Ashutosh Goel <39601429+ashu658@users.noreply.github.com>
Co-authored-by: Dan <pezzer55@gmail.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2022-01-25 15:31:13 +00:00
a2098c351e add trailing_metadata to _OpenTelemetryServicerContext (#871)
The trailing_metadata method was added to grpc._server.ServicerContext
in gRPC v1.38.0.
2022-01-25 20:46:55 +05:30
Dan
91d65e033e Fix Django 1.9 issue preventing use of MIDDLEWARE_CLASSES (#870)
* Update CHANGELOG.md

* Fix Django 1.9 issue preventing use of MIDDLEWARE_CLASSES

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-01-22 00:10:32 +05:30
8bb1e74ccf Conditionally create server spans for falcon (#867)
* Making span as internal for falcon in presence of a span in current context

* Updating changelog

* Fixing lint and generate build failures

* Resolving comments: Converting snippet to re-usable function

* Fixing build failures

* Resolving comments: Creating wrapper for start span to make internal/server span

* Rerun docker tests

* Resolving comments: Refactoring
2022-01-21 10:24:01 -06:00
dd72d94615 Revert moto change (#859) 2022-01-11 20:52:18 +00:00
741321434f Add @nozik as maintainer of kafka-python instrumentation (#849) 2022-01-11 19:04:38 +00:00