Skip to content

Commit

Permalink
magical fix, the second
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat committed Sep 22, 2023
1 parent bb9ec2b commit 43451b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/host_tools/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def emit_raw_emf(emf_msg: dict):
if "AWS_EMF_AGENT_ENDPOINT" not in os.environ:
return

emf_msg["_aws"]["LogGroupName"] = os.environ["AWS_EMF_NAMESPACE"]
emf_msg["_aws"]["LogGroupName"] = os.environ.get(
"AWS_EMF_LOG_GROUP_NAME", f"{os.environ['AWS_EMF_NAMESPACE']}-metrics"
)
emf_msg["_aws"]["LogStreamName"] = ""

emf_endpoint = urlparse(os.environ["AWS_EMF_AGENT_ENDPOINT"])
Expand Down

0 comments on commit 43451b8

Please sign in to comment.