Skip to content

Commit 4adacfc

Browse files
jayantkJayant Krishnamurthy
andauthored
Add service tag to datadog events (#42)
* tweak datadog event metadata * delete source * lint Co-authored-by: Jayant Krishnamurthy <[email protected]>
1 parent 8ae7075 commit 4adacfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyth_observer/notifiers/datadog.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ async def notify(self, error):
1818

1919
error_id = error.unique_id
2020

21-
tags = [f"symbol:{error.symbol}", f"error_code:{error.error_code}", f"network:{error.network}"]
21+
tags = [
22+
f"symbol:{error.symbol}",
23+
f"error_code:{error.error_code}",
24+
f"network:{error.network}",
25+
f"service:pyth-observer-{error.network}",
26+
]
2227
if error.publisher_key is not None:
2328
tags.append(f"publisher:{error.publisher_name}")
2429

0 commit comments

Comments
 (0)