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