Skip to content

Commit 4d9a957

Browse files
committed
revert json_dumps change in observe (caused double dumps) issues
1 parent 503ee39 commit 4d9a957

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lmnr/opentelemetry_lib/decorators/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ def _process_input(
7979
try:
8080
if input_formatter is not None:
8181
inp = input_formatter(*args, **kwargs)
82-
if not isinstance(inp, str):
83-
inp = json_dumps(inp)
8482
else:
8583
inp = get_input_from_func_args(
8684
fn,
@@ -117,8 +115,6 @@ def _process_output(
117115
try:
118116
if output_formatter is not None:
119117
output = output_formatter(result)
120-
if not isinstance(output, str):
121-
output = json_dumps(output)
122118
else:
123119
output = result
124120

0 commit comments

Comments
 (0)