Skip to content

Commit 867eaab

Browse files
author
ks6088ts
committed
add server request hook
1 parent d77af77 commit 867eaab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

template_fastapi/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def server_request_hook(span: Span, scope: dict):
3030

3131
configure_azure_monitor(
3232
connection_string=AZURE_CONNECTION_STRING,
33+
server_request_hook=server_request_hook,
3334
)
3435
FastAPIInstrumentor.instrument_app(app)
3536

0 commit comments

Comments
 (0)