* 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
* Fix sqlalchemy for postgres unix sockets
The following bit of replaced code contained a type inconsistency:
```py
attrs[SpanAttributes.NET_PEER_PORT] = int(data.get("port"))
```
`data.get` returns `Optional[str]` but `int(None)` throws a `TypeError`.
When using postgresql via unix socket `dsn` looks something like this:
```py
'user=postgres host=/tmp/socket dbname=postgres'
```
The `parse_dsn` function returns this:
```py
{'user': 'postgres', 'dbname': 'postgres', 'host': '/tmp/socket'}
```
* Update CHANGELOG
* Conditionally set net.transport for psql tcp/unix
* Use .value properties of enums
* Improve postgresql attribute detection from cursor
* Fix formatting
Co-authored-by: Matt Oberle <mattoberle@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
* Add support for generic OTEL_PYTHON_EXCLUDED_URLS variable
Use `OTEL_PYTHON_EXCLUDED_URLS` environment variable as a fallback of
`OTEL_PYTHON_{instrumentation}_EXCLUDED_URLS`.
* Only use generic variable when instrumentation-specific is not set
* Change wording on docs
Co-authored-by: Leighton Chen <lechen@microsoft.com>
* Add instrumentation for AWS Lambda Service - Implementation
* Lambda is CONSUMER SQS trace if 'Records' key in Lambda event
* More robust check of SQS by indexing and catching
* Explicitly catch errors we expect when determinig if SQS triggered Lambda