Skip to content

Commit

Permalink
Add agent_language to serverless payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
umaannamalai committed May 15, 2024
1 parent df2b159 commit 72382b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions newrelic/core/agent_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ def __init__(self, settings, host=None, client_cls=ServerlessModeClient):
"protocol_version": self.VERSION,
"execution_environment": os.environ.get("AWS_EXECUTION_ENV", None),
"agent_version": version,
"agent_language": "python",
}

def finalize(self):
Expand Down
1 change: 1 addition & 0 deletions tests/agent_unittests/test_agent_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ def test_serverless_protocol_finalize(capsys):

assert data["metadata"]["foo"] == "bar"
assert data["metadata"]["agent_version"] != "x"
assert data["metadata"]["agent_language"] == "python"


def test_audit_logging():
Expand Down

0 comments on commit 72382b4

Please sign in to comment.