Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
roypat committed Sep 22, 2023
1 parent a3f5f9d commit 4bdc8d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/host_tools/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def emit_raw_emf(emf_msg: dict):
"""Emites a raw EMF log message to the local cloudwatch agent"""
emf_endpoint = urlparse(os.environ["AWS_EMF_AGENT_ENDPOINT"])
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
print(json.dumps(emf_msg), emf_endpoint.hostname, emf_endpoint.port)
sock.sendto(
(json.dumps(emf_msg) + "\n").encode("utf-8"),
(emf_endpoint.hostname, emf_endpoint.port),
Expand Down

0 comments on commit 4bdc8d3

Please sign in to comment.