Skip to content

Commit

Permalink
fix(metrics): reduce value for size to stay within limits of metrics …
Browse files Browse the repository at this point in the history
…gathering
  • Loading branch information
Avantol13 committed Dec 1, 2023
1 parent 2718cf5 commit fc1b08d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get_signed_url_for_file(


def _log_signed_url_data_info(index_document, user_sub):
size = index_document.get("size")
size_in_kibibytes = index_document.get("size", 0) / 1024
acl = index_document.get("acl")
authz = index_document.get("authz")
buckets = set()
Expand All @@ -187,7 +187,7 @@ def _log_signed_url_data_info(index_document, user_sub):
buckets_formatted = ",".join(buckets)

logger.info(
f"Signed URL Generated. size={size} acl={acl} authz={authz} buckets={buckets_formatted} user_sub={user_sub}"
f"Signed URL Generated. size_in_kibibytes={size_in_kibibytes} acl={acl} authz={authz} buckets={buckets_formatted} user_sub={user_sub}"
)


Expand Down

0 comments on commit fc1b08d

Please sign in to comment.