Skip to content

Commit

Permalink
Merge pull request #32 from artsmolin/fix_metrix
Browse files Browse the repository at this point in the history
Fix metrics
  • Loading branch information
artsmolin authored Jan 20, 2023
2 parents dd8c7f5 + 2f243e7 commit 6c5c77d
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 6c5c77d

Please sign in to comment.