Minidump API Endpoint: custom/extra fields support

This commit is contained in:
Klaas van Schelven
2025-11-16 09:29:20 +01:00
parent f5605c8d0e
commit 8283b80b35
4 changed files with 77 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
from bugsink.utils import nc_rnd
from bugsink.utils import nc_rnd, set_path
from tags.utils import EVENT_DATA_CONVERSION_TABLE, CONTEXT_CONVERSION_TABLE
@@ -27,15 +27,6 @@ def random_postfix():
return "".join([chr(ord("A") + int(c)) for c in str(unevenly_distributed_number)])
def set_path(data, path, v):
d = data
for part in path[:-1]:
if part not in d:
d[part] = {}
d = d[part]
d[path[-1]] = v
def handle_upload_tags(event_data, tags):
if "tags" not in event_data:
event_data["tags"] = {}