Skip to content

Commit

Permalink
fix: Apply small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Oct 14, 2024
1 parent 3c77808 commit 557950c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agents-api/agents_api/metrics/counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def increase_counter(metric_label: str, id_field_name: str = "developer_id"):
def decor(func: Callable[P, T] | None = None):
def decor(func: Callable[P, T]):
metric = Counter(
metric_label,
f"Number of {metric_label} calls",
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/routers/sessions/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
total_tokens_per_user = Counter(
"total_tokens_per_user",
"Total token count per user",
labels=("developer_id",),
labelnames=("developer_id",),
)

0 comments on commit 557950c

Please sign in to comment.