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.
* 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
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>
* 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>
* 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>
_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
* 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
* 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>
* 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
* 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>
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.
* 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
* 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
* Making span as internal in presence of a span in current context
* Updating changelog
* Removing extra print statements
* Resolving comments: Setting current context as parent in its presence
* Ignoring pylint check as django.conf.urls.url is removed in django 4.0
Django release notes: https://docs.djangoproject.com/en/4.0/releases/4.0/
* Removing changes in django files