Skip to content

Commit

Permalink
sakipping null values in scribe message
Browse files Browse the repository at this point in the history
Summary: since we have added flexibility for different sets of metrics per operater we want to skip messages for empty metrics

Reviewed By: nmacchioni

Differential Revision: D64345289

fbshipit-source-id: d5b1fff90c6acd530867d0b6ef3ea97bc6f41cf5
  • Loading branch information
adamomainz authored and facebook-github-bot committed Oct 14, 2024
1 parent 7cb1c0a commit 509e94f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/userbenchmark/upload_scribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def format_message(self, field_dict):
assert "time" in field_dict, "Missing required Scribe field 'time'"
message = defaultdict(dict)
for field, value in field_dict.items():
if value is None:
continue
if field in self.schema["normal"]:
message["normal"][field] = str(value)
elif field in self.schema["int"]:
Expand Down

0 comments on commit 509e94f

Please sign in to comment.