ougai icon indicating copy to clipboard operation
ougai copied to clipboard

Invalid JSON on not local env only

Open bestwebua opened this issue 1 year ago • 0 comments

Hello and thanks for this nice gem! I have a very strange issue. One application. During local running everything is okay. But when I run it on the demo env I see broken log structure:

{"name":"rackup","hostname":"4a37fsdf352a47","pid":9,"level":30,"time":"2023-09-22T14:26:36.298+00:00","v":0,"msg":"{:msg=>\"No message\", :service_name=>\"my-service\", :service_version=>\"1.0.0\", :team=>\"my-team\", :trace_id=>\"d0e7a1f58c8ffbb50a2655b465e76e77\", :span_id=>\"f05a320ca0b6aa96\"}"}

Under msg key we can see collected, not serialized as json, context, that should be in the root of expected json. Any ideas?

Seems this issue is very similar to: https://github.com/tilfin/ougai/issues/94

bestwebua avatar Sep 22 '23 15:09 bestwebua