Commit Graph

1436 Commits

Author SHA1 Message Date
Diego Hurtado 423f67e2f6
Merge branch 'main' into release/1.10.0-0.29b0 2022-03-10 17:31:49 -06:00
Owais Lone 1b7e8e44b2
Moving owais to approver (#953) 2022-03-10 15:10:12 -08:00
Diego Hurtado f1b6e7a221
updating changelogs and version to 1.10.0-0.29b0 (#995) 2022-03-10 16:43:57 -06: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
Owais Lone 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>
2022-01-31 09:40:29 +00:00
Alex Boten 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
Owais Lone 3ceab3b510
prepare_release script to ignore some packages/files (#885) 2022-01-28 11:24:11 -08:00
Craig Austin 14d0726d3c
Fix redis doc link (#884)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-01-28 18:58:15 +00:00
Ran Nozik ef7769c86e
fix: safe kafka partition extraction (#872)
* safe partition extraction

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

* update
2022-01-27 15:04:23 -06:00
Nathaniel Ruiz Nowell 089c2b8262
Release Botocore Instrumentation as 0.28b0 (#878) 2022-01-27 02:05:32 +05:30
Owais Lone f9b4d2b864
updating changelogs and version to 1.9.0-0.28b0 (#875) 2022-01-26 12:00:44 -06:00
Srikanth Chekuri 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
OHeimlich ec5b73c626
Support partial timelimit for celery tasks (#847) 2022-01-25 23:43:13 +00:00
Sanket Mehta 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
jbraswell 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
Ashutosh Goel 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
Leighton Chen dd72d94615
Revert moto change (#859) 2022-01-11 20:52:18 +00:00
Leighton Chen 741321434f
Add @nozik as maintainer of kafka-python instrumentation (#849) 2022-01-11 19:04:38 +00:00
Leighton Chen 23394ccd80
Unblock builds by removing botocore test (#851) 2022-01-11 10:24:18 -08:00
ItayGibel-helios e67a728be5
kafka-python instrumentation (#814) 2022-01-10 09:55:52 -08:00
Sanket Mehta d01efe5c50
Develop/condition server span django (#832)
* Code changes and pytests for https://github.com/open-telemetry/opentelemetry-python-contrib/issues/448

* removing unnecessary imports

* removing unnecessary imports

* adding wsgi.py file to get the wsgi application object

* Revert "Updating personal fork from public repo"

* Revert "Updating personal fork from public repo"

* Revert "Updating personal fork from public repo"

* Revert "Updating personal fork from public repo"

* Changing the unit test case by removing WSGI instrumentation and make it from generalised

* removing unnecessary import statements

* Revert "Updating personal fork from public repo"

* resolving failed builds for lint and generate

* removing commented code

* removing blank line

* removed unused variable resp from test_middleware.py and modified the CHANGELOG.md with PR entry

* modified the CHANGELOG.md to removed unnecessary entry

* modified the CHANGELOG.md to add proper PR entry

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-01-07 16:24:09 -06:00
Jakub Wach 4c813c47e4
ASGI: Conditionally create SERVER spans (#843) 2022-01-07 15:12:58 -06:00
Phillip Verheyden 3de29868a9
Add traceresponse headers for asgi apps (FastAPI, Starlette) (#817)
This asgi version is modeled after the original wsgi version in #436 and corresponds to the SERVER span. Also cleans up some of the existing ASGI functionality to reduce complexity and make future contributions more straightforward.
2021-12-25 21:52:28 +00:00
Ran Nozik 26aa17f8e9
Support older pika versions (#837)
* feat: support older pika versions

* update tox.ini

* update changelog

* take version from pika

* avoid exception when property name changes

* add callback attr name test
2021-12-26 03:03:22 +05:30
(Eliseo) Nathaniel Ruiz Nowell c962da908c
Merge parallel benchmarks + include propagator + latest GH action (#838)
* Include propagator benchmarks + latest GH action
* When we moved the aws-xray propagator in #720, we needed to update the benchmark step of the workflow
* Additionally, the GH action has evolved since we added benchmarks so we should use the latest version

* Merge all parallel benchmarks after they complete
2021-12-23 14:06:47 +05:30