Skip to content

feat(azure_servicebus): add azure servicebus integration and function trigger distributed tracing #13691

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

Merged
merged 41 commits into from
Jun 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
5b53500
initial commit to add azure_servicebus integration
duncanpharvey Jun 4, 2025
bfa1970
minor updates and todos
duncanpharvey Jun 6, 2025
66a202e
refactor service bus propagation
duncanpharvey Jun 9, 2025
dc87a36
check distributed tracing config and handle async
duncanpharvey Jun 9, 2025
5c9189c
refactor patch and unpatch for multiple modules
duncanpharvey Jun 10, 2025
7cea1b7
add trace context to all messages in list
duncanpharvey Jun 10, 2025
b017652
fix formatting
duncanpharvey Jun 11, 2025
f1c1aa1
add integration tests for distributing tracing of service bus in azur…
duncanpharvey Jun 11, 2025
ce5076b
add image tags, add riot requirements, and fix tests for python 3.8
duncanpharvey Jun 12, 2025
a11c715
rename azure service bus aio import
duncanpharvey Jun 12, 2025
c0293f3
remove setting of req_span and trigger_span since the span is referen…
duncanpharvey Jun 12, 2025
9c73178
add services for testing with azure service bus emulator in ci
duncanpharvey Jun 12, 2025
790480a
clean up riot requirements files
duncanpharvey Jun 12, 2025
0885104
add azure service bus tests and remove redundant azure function tests…
duncanpharvey Jun 13, 2025
8c3fc76
Merge branch 'main' into duncan-harvey/azure-servicebus-integration
duncanpharvey Jun 13, 2025
f32cf5a
add configuration documentation for distributed tracing for azure_fun…
duncanpharvey Jun 13, 2025
a6d6ee0
add azure_service bus to suitspec
duncanpharvey Jun 13, 2025
256aa65
add supported versions to azure service bus integration
duncanpharvey Jun 13, 2025
b2048ac
fix parameter type in test and add port mapping for azuresqledge
duncanpharvey Jun 16, 2025
89d6a30
fix additional type issues and add integrations to registry
duncanpharvey Jun 16, 2025
aa4505a
add min version for azure servicebus integration
duncanpharvey Jun 16, 2025
6c5f5d6
Merge branch 'main' into duncan-harvey/azure-servicebus-integration
duncanpharvey Jun 16, 2025
a60b657
patch schedule_messages
duncanpharvey Jun 16, 2025
a3974fb
complete messages in azure servicebus tests
duncanpharvey Jun 16, 2025
5a7e2a6
add span attributes and refactor tests
duncanpharvey Jun 16, 2025
e084e47
add azure service bus span metadata to azure functions tests
duncanpharvey Jun 17, 2025
bc1fd82
add release note
duncanpharvey Jun 17, 2025
88db325
address code quality violations
duncanpharvey Jun 17, 2025
21e8c93
Merge branch 'main' into duncan-harvey/azure-servicebus-integration
emmettbutler Jun 17, 2025
a44a618
use servicebus instead of Microsoft.ServiceBus for messaging.system s…
duncanpharvey Jun 17, 2025
26d50f1
clean up get_version signature
duncanpharvey Jun 17, 2025
daadb0d
add patching assertions for azure_servicebus and azure_functions inte…
duncanpharvey Jun 17, 2025
ec18ff4
Merge branch 'main' into duncan-harvey/azure-servicebus-integration
duncanpharvey Jun 17, 2025
40abb00
handle version for azure.servicebus.aio with specific case
duncanpharvey Jun 17, 2025
7fa4225
improve performance for azure servicebus tests
duncanpharvey Jun 18, 2025
203933b
remove module scoped fixtures
duncanpharvey Jun 18, 2025
bb557af
remove remaining module scoped fixtures
duncanpharvey Jun 18, 2025
82e0204
don't send messages to the same queue or topic asynchronously and don…
duncanpharvey Jun 18, 2025
33a8c2f
update azure service bus producer span attributes
duncanpharvey Jun 23, 2025
de73d0d
use constant for azure service bus service
duncanpharvey Jun 23, 2025
7a55f4d
fix azure functions tests related to service bus
duncanpharvey Jun 23, 2025
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
13 changes: 13 additions & 0 deletions .gitlab/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,16 @@
azurite:
name: registry.ddbuild.io/images/mirror/azure-storage/azurite:3.34.0
alias: azurite
azureservicebusemulator:
name: registry.ddbuild.io/images/mirror/azure-messaging/servicebus-emulator:1.1.2
alias: azureservicebusemulator
variables:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "Localtestpass1!"
SQL_SERVER: azuresqledge
azuresqledge:
name: registry.ddbuild.io/images/mirror/azure-sql-edge:1.0.7
alias: azuresqledge
variables:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "Localtestpass1!"
30 changes: 30 additions & 0 deletions .riot/requirements/10f86d9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/10f86d9.in
#
attrs==25.3.0
azure-core==1.34.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.9.1
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-asyncio==0.24.0
pytest-cov==6.2.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
typing-extensions==4.14.0
urllib3==2.4.0
32 changes: 32 additions & 0 deletions .riot/requirements/1170953.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1170953.in
#
attrs==25.3.0
azure-core==1.34.0
azure-servicebus==7.14.2
certifi==2025.6.15
charset-normalizer==3.4.2
coverage[toml]==7.9.1
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-asyncio==0.24.0
pytest-cov==6.2.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.14.0
urllib3==2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate --resolver=backtracking .riot/requirements/396b468.in
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1241599.in
#
attrs==25.3.0
azure-core==1.34.0
azure-functions==1.20.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
Expand All @@ -21,7 +24,8 @@ pygments==2.19.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
requests==2.32.3
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.14.0
Expand Down
26 changes: 0 additions & 26 deletions .riot/requirements/1337ee3.txt

This file was deleted.

24 changes: 0 additions & 24 deletions .riot/requirements/14b54db.txt

This file was deleted.

31 changes: 31 additions & 0 deletions .riot/requirements/156842b.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/156842b.in
#
attrs==25.3.0
azure-core==1.33.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.6.1
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.5.0
pytest==8.3.5
pytest-asyncio==0.24.0
pytest-cov==5.0.0
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.13.2
urllib3==2.2.3
32 changes: 32 additions & 0 deletions .riot/requirements/1670b58.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1670b58.in
#
attrs==25.3.0
azure-core==1.34.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.9.1
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-asyncio==0.24.0
pytest-cov==6.2.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.14.0
urllib3==2.4.0
34 changes: 34 additions & 0 deletions .riot/requirements/16ae446.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/16ae446.in
#
attrs==25.3.0
azure-core==1.34.0
azure-functions==1.23.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
markupsafe==3.0.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.14.0
urllib3==2.4.0
werkzeug==3.1.3
30 changes: 30 additions & 0 deletions .riot/requirements/1826cd3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1826cd3.in
#
attrs==25.3.0
azure-core==1.34.0
azure-servicebus==7.14.2
certifi==2025.6.15
charset-normalizer==3.4.2
coverage[toml]==7.9.1
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-asyncio==0.24.0
pytest-cov==6.2.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
typing-extensions==4.14.0
urllib3==2.4.0
30 changes: 30 additions & 0 deletions .riot/requirements/18a650f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/18a650f.in
#
attrs==25.3.0
azure-core==1.34.0
azure-servicebus==7.14.2
certifi==2025.6.15
charset-normalizer==3.4.2
coverage[toml]==7.9.1
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-asyncio==0.24.0
pytest-cov==6.2.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
typing-extensions==4.14.0
urllib3==2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/33e1d73.in
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1ac22db.in
#
attrs==25.3.0
azure-core==1.34.0
azure-functions==1.20.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.8.2
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
Expand All @@ -21,7 +24,8 @@ pygments==2.19.1
pytest==8.4.0
pytest-cov==6.1.1
pytest-mock==3.14.1
requests==2.32.3
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.14.0
Expand Down
32 changes: 32 additions & 0 deletions .riot/requirements/1d35b33.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1d35b33.in
#
attrs==25.3.0
azure-core==1.34.0
azure-servicebus==7.14.2
certifi==2025.4.26
charset-normalizer==3.4.2
coverage[toml]==7.9.1
exceptiongroup==1.3.0
hypothesis==6.45.0
idna==3.10
iniconfig==2.1.0
isodate==0.7.2
mock==5.2.0
opentracing==2.4.0
packaging==25.0
pluggy==1.6.0
pygments==2.19.1
pytest==8.4.0
pytest-asyncio==0.24.0
pytest-cov==6.2.1
pytest-mock==3.14.1
requests==2.32.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
typing-extensions==4.14.0
urllib3==2.4.0
Loading
Loading