Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ASGI middleware #716

Merged
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5d6df0c
ext-wsgi duplicated as ext-asgi
Skeen Feb 8, 2020
e2b85ad
Rename WSGI files
Skeen Feb 8, 2020
f729c3d
WSGI to ASGI
Skeen Feb 8, 2020
782e9b1
Fix ext/testutil
Skeen Feb 8, 2020
a343b7d
Black reformatting
Skeen Feb 8, 2020
d6ac1e2
Isort reformatting
Skeen Feb 8, 2020
8a8f726
Flake8 reformatting
Skeen Feb 8, 2020
ac7cb72
Pylint reformatting
Skeen Feb 8, 2020
2d32ef9
Documentation
Skeen Feb 8, 2020
103ff1d
ASGI only runs under Python 3.5+, fixes to tox/coverage
Skeen Feb 19, 2020
4bbc7a6
Added callback to override default span-name, default span name to HT…
Skeen Feb 21, 2020
4833891
Set send_span name immediately, instead of updating it
Skeen Feb 21, 2020
924fe35
Changed span-names to asgi.{scope["type"]}.send/receive
Skeen Feb 21, 2020
5a13e0c
Handle scope["server"] = None, by defaulting to 0.0.0.0:80
Skeen Feb 21, 2020
0df9c62
Set http.server_name based on Host header
Skeen Feb 21, 2020
c88f152
fix tests
majorgreys May 20, 2020
f0ef937
fix propagation
majorgreys May 20, 2020
b4356ac
update changelog
majorgreys May 20, 2020
c1d3cbe
add http.user_agent
majorgreys May 21, 2020
353bf27
update version
majorgreys May 21, 2020
0e48edd
add websocket, disable for lifespan
majorgreys May 21, 2020
46f3565
Apply suggestions from code review
majorgreys May 21, 2020
2f94f83
Merge branch 'majorgreys/feature/ext_asgi' of github.com:DataDog/open…
majorgreys May 21, 2020
429b8e2
add py38
majorgreys May 21, 2020
83139f0
remove py34
majorgreys May 21, 2020
3759a51
lint fix
majorgreys May 21, 2020
a4cce67
move doc
majorgreys May 21, 2020
da0a00b
method or path
majorgreys May 21, 2020
16f37f7
websocket tests
majorgreys May 21, 2020
0b9fbcd
Merge remote-tracking branch 'upstream/master' into majorgreys/featur…
majorgreys May 21, 2020
3ac4620
handle empty attributes
majorgreys May 22, 2020
9f3d5bb
fix lint
majorgreys May 22, 2020
9e00976
Merge remote-tracking branch 'upstream/master' into majorgreys/featur…
majorgreys May 22, 2020
01f9310
Merge branch 'master' into majorgreys/feature/ext_asgi
majorgreys May 22, 2020
553969c
Merge branch 'master' into majorgreys/feature/ext_asgi
majorgreys May 26, 2020
9e04228
Apply suggestions from code review
majorgreys May 26, 2020
edc6044
more review updates
majorgreys May 27, 2020
bc6f0a9
Merge remote-tracking branch 'upstream/master' into majorgreys/featur…
majorgreys May 27, 2020
3849da1
better handling for query_string
majorgreys May 27, 2020
bb8506b
added versions for install_requires
majorgreys May 27, 2020
d888a6f
at least asgiref 3.0
majorgreys May 27, 2020
25b0534
remove unused import
majorgreys May 27, 2020
8c9eded
Merge branch 'master' into majorgreys/feature/ext_asgi
majorgreys May 27, 2020
22dbe06
Merge branch 'master' into majorgreys/feature/ext_asgi
majorgreys May 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Documentation
  • Loading branch information
Skeen authored and majorgreys committed May 20, 2020

Unverified

This user has not yet uploaded their public signing key.
commit 2d32ef97c518787360d8fd4ac309ebfc80faf5ff
1 change: 1 addition & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ sphinx-rtd-theme~=0.4
sphinx-autodoc-typehints~=1.10.2

# Required by ext packages
asgiref~=3.2.3
ddtrace>=0.34.0
aiohttp ~= 3.0
Deprecated>=1.2.6
10 changes: 10 additions & 0 deletions docs/opentelemetry.ext.asgi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
opentelemetry.ext.asgi package
==========================================
majorgreys marked this conversation as resolved.
Show resolved Hide resolved

Module contents
---------------

.. automodule:: opentelemetry.ext.asgi
:members:
:undoc-members:
:show-inheritance:
3 changes: 2 additions & 1 deletion ext/opentelemetry-ext-asgi/setup.cfg
Original file line number Diff line number Diff line change
@@ -31,12 +31,13 @@ classifiers =
Programming Language :: Python :: 3.7
majorgreys marked this conversation as resolved.
Show resolved Hide resolved

[options]
python_requires = >=3.4
python_requires = >=3.7
package_dir=
=src
packages=find_namespace:
install_requires =
opentelemetry-api
majorgreys marked this conversation as resolved.
Show resolved Hide resolved
asgiref
majorgreys marked this conversation as resolved.
Show resolved Hide resolved

[options.extras_require]
test =
1 change: 1 addition & 0 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ coverage erase
cov opentelemetry-api
cov opentelemetry-sdk
cov ext/opentelemetry-ext-datadog
cov ext/opentelemetry-ext-asgi
cov ext/opentelemetry-ext-flask
cov ext/opentelemetry-ext-requests
cov ext/opentelemetry-ext-jaeger