Skip to content

Commit

Permalink
Store raw path including query params
Browse files Browse the repository at this point in the history
  • Loading branch information
vpcarlos committed Apr 11, 2023
1 parent 519ea55 commit 31c6ef2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion profyle/middleware/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(

async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
if self.enabled and scope['type'] == 'http':
with profyle(name=scope['path']):
with profyle(name=scope['raw_path']):
await self.app(scope, receive, send)
return
await self.app(scope, receive, send)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "profyle"
version = "0.0.12"
version = "0.0.13"
description = "Profyle, a development tool for analysing and managing python traces"
authors = ["Carlos Valdivia <[email protected]>"]
maintainers = [
Expand Down
2 changes: 1 addition & 1 deletion tests/middleware/test_fastapi_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ def run_middleware_1():


def test_fastapi_middleware():
client.post('test')
client.post('test?demo=true')
client.post('test1')

0 comments on commit 31c6ef2

Please sign in to comment.