Skip to content

Commit

Permalink
Fix metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
artsmolin committed Jan 20, 2023
1 parent dd8c7f5 commit 2f243e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 = "pythogen"
version = "0.1.1"
version = "0.1.2"
description = "Generator of python HTTP-clients from OpenApi specification."
homepage = "https://github.com/artsmolin/pythogen"
repository = "https://github.com/artsmolin/pythogen"
Expand Down
2 changes: 1 addition & 1 deletion pythogen/templates/client/httpx-request-metrics.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if self.metrics_integration.shadow_path:
self.metrics_integration.on_request_error(self.client_name, exc, "{{ method }}", "{{ path | replace('{', ':') | replace('}', '') }}")
else:
self.metrics_integration.on_request_error(self.client_name, exc, "{{ method }}", "{{ path }}")
self.metrics_integration.on_request_error(self.client_name, exc, "{{ method }}", f"{{ path }}")

{%- endif %}
raise exc
Expand Down

0 comments on commit 2f243e7

Please sign in to comment.