Skip to content

Commit 0023e48

Browse files
authored
log the repo in the data label when logging the coverage metric (Azure#39953)
1 parent 544f422 commit 0023e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/tox/run_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
metric_obj = {}
5151
metric_obj["value"] = total_coverage / 100
5252
metric_obj["name"] = "test_coverage_ratio"
53-
metric_obj["labels"] = { "package": pkg_details.name }
53+
metric_obj["labels"] = { "package": pkg_details.name, "repo": "Azure/azure-sdk-for-python" }
5454
metric_obj["timestamp"] = datetime.datetime.now(datetime.timezone.utc).isoformat()
5555
# normally we logging.info anywhere we need to output, but these logmetric statements
5656
# need to be the sole value on the line, as the logmetric log parsing doesn't allow prefixes

0 commit comments

Comments
 (0)