Skip to content

Improve json traces format #161

@jeluard

Description

@jeluard

What revision are you using?

main

What operating system are you using?

MacOS

What architecture are you using?

aarch64/armv8

What problem are you having? What should be the expected behaviour?

Fields are not escaped when formatted as json. This make json traces pretty easy to break.
Make sure json traces are always valid json.

See tokio-rs/tracing#377 (comment) for context.

Also scripts leveraging those traces (e.g. demo) should probably better handle incorrect traces and not swallow errors.

If possible, provide reproductions steps.

No response

If any, provide logs / error outputs from the system when the problem occurs.

No response

Please confirm that you've already searched issues, CHANGELOG and available documentation.

  • I searched, but no luck.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions