From b8a36c800e961e39a6550c09c7283d7e4d2c8bfd Mon Sep 17 00:00:00 2001 From: Niklas Nielsen Date: Wed, 25 Oct 2023 09:22:16 -0500 Subject: [PATCH] Save all field on response --- log10/load.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/log10/load.py b/log10/load.py index d82cc598..67eeebc1 100644 --- a/log10/load.py +++ b/log10/load.py @@ -256,20 +256,20 @@ def wrapper(*args, **kwargs): "index": 0, } ] - log_row = { - "response": json.dumps(output), - "status": "finished", - "duration": int(duration * 1000), - "stacktrace": json.dumps(stacktrace), - "kind": "completion", - } - else: - log_row = { - "response": json.dumps(output), - "status": "finished", - "duration": int(duration * 1000), - "stacktrace": json.dumps(stacktrace), - } + + log_row = { + "response": json.dumps(output), + "status": "finished", + "duration": int(duration * 1000), + "stacktrace": json.dumps(stacktrace), + "kind": "completion", + "orig_module": func.__module__, + "orig_qualname": func.__qualname__, + "request": json.dumps(kwargs), + "session_id": sessionID, + "organization_id": org_id, + "tags": global_tags, + } if target_service == "log10": res = requests.request(