Skip to content

Commit 75188d0

Browse files
committed
Redact the task veclen and value count when printing IncrementalityBranchResultsRow objects
1 parent b0c6a19 commit 75188d0

File tree

1 file changed

+4
-1
lines changed
  • jobs/ads-incrementality-dap-collector/ads_incrementality_dap_collector

1 file changed

+4
-1
lines changed

jobs/ads-incrementality-dap-collector/ads_incrementality_dap_collector/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import tldextract
88

99
from typing import List, Optional
10-
import logging
1110

1211
@attr.s(auto_attribs=True)
1312
class Branch:
@@ -198,6 +197,10 @@ def __init__(self, experiment: NimbusExperiment, branch_slug: str, visitCounting
198197
# This will be populated when we successfully fetch the count from DAP
199198
self.value_count = None
200199

200+
def __str__(self):
201+
return f"IncrementalityBranchResultsRow(advertiser='{self.advertiser}', branch='{self.branch}', bucket='{self.bucket}', experiment_slug='{self.experiment_slug}', metric='{self.metric}', task_id='{self.task_id}', task_veclen='redacted', value_count='redacted')"
202+
203+
__repr__ = __str__
201204

202205
@attr.s(auto_attribs=True)
203206
class BQConfig:

0 commit comments

Comments
 (0)