Skip to content

Commit

Permalink
Merge pull request #62 from log10-io/store-request-on-end
Browse files Browse the repository at this point in the history
Save all field on response
  • Loading branch information
wenzhe-log10 authored Oct 25, 2023
2 parents 57caabe + b8a36c8 commit 81ec06d
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 81ec06d

Please sign in to comment.