Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kiroframe_arcee/sender/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ async def create_stage(self, run_id, token, name):
async def send_stats(self, token, data):
headers = {"x-api-key": token, "Content-Type": "application/json"}
meta = await self.m()
for k in data["data"]:
if isinstance(k, str) and k.endswith("*"):
raise ValueError("* is not allowed in metric keys")
data.update({"platform": meta.to_dict()})
await self.send_post_request(
"%s/%s" % (self.endpoint_url, "collect"), headers, data
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# setup.cfg
[metadata]
name = kiroframe_arcee
version = 0.1.51
version = 0.1.52
author = Hystax
description = ML profiling tool for Kiroframe
long_description = file: README.md
Expand Down