Skip to content

Commit

Permalink
chore(metrics): Added presigned url metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Malinowski authored and Edward Malinowski committed May 28, 2024
1 parent ea9fdfd commit 724ca86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
)

from fence import auth
from fence import presigned_url_counter
from fence.auth import (
get_jwt,
current_token,
Expand Down Expand Up @@ -197,6 +196,8 @@ def _log_signed_url_data_info(indexed_file, user_sub, client_id, requested_proto
f"Signed URL Generated. size_in_kibibytes={size_in_kibibytes} "
f"acl={acl} authz={authz} bucket={bucket} user_sub={user_sub} client_id={client_id}"
)
from fence import presigned_url_counter

presigned_url_counter.inc()


Expand Down

0 comments on commit 724ca86

Please sign in to comment.