Skip to content

Commit 0dc3fcd

Browse files
committed
tweak messages
1 parent 8811495 commit 0dc3fcd

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

extapi/http/executors/metrics.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ async def execute(self, request: RequestData) -> Response[T]:
3131
if path_template is None:
3232
warnings.warn(
3333
"It is highly recommended to pass `path_template` "
34-
"argument to the executor in order to to not blow the l"
35-
"abel cardinality when path is customized",
34+
"argument to the executor in order to not explode the "
35+
"label cardinality when path is customized on each request. "
36+
"For example, you may pass path_template='/some/items/<item_id>' "
37+
"when executing request like `GET /some/items/123`.",
3638
UserWarning,
3739
stacklevel=1,
3840
)

tests/_test_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def demo2():
6161
)
6262

6363
async with await executor.get(
64-
"https://ifconfig.co/json", path_template="/json"
64+
"https://ifconfig.co/json" # , path_template="/json"
6565
) as response:
6666
print(await response.read())
6767
print(response.backend_response.original().headers)

0 commit comments

Comments
 (0)