Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion hindsight-api-slim/hindsight_api/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ def record_operation(
start_time = time.time()
attributes = {
"operation": operation,
"bank_id": bank_id,
"source": source,
"tenant": _get_tenant(),
}
Expand Down
2 changes: 1 addition & 1 deletion hindsight-api-slim/tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_record_operation_records_duration(self, collector):
# Second arg is attributes dict
attributes = call_args[0][1]
assert attributes["operation"] == "recall"
assert attributes["bank_id"] == "test_bank"
assert "bank_id" not in attributes
assert attributes["source"] == "api"
assert attributes["success"] == "true"

Expand Down