Skip to content

Commit

Permalink
Save all field on response
Browse files Browse the repository at this point in the history
  • Loading branch information
nqn committed Oct 25, 2023
1 parent 57caabe commit b8a36c8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions log10/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b8a36c8

Please sign in to comment.