* [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
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