nokia / restful

A powerful RESTful framework for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logs with trace IDs

Som-Som-CC opened this issue · comments

On client and server transactions logs are printed with trace IDs. To improve correlation of tracing and logs, use OpenTelemetry log format of printing IDs as separate fields. Use logrus WithFields function.

That does not resolve the issue of behaving differently from OpenTelemetry.

See https://opentelemetry.io/docs/reference/specification/logs/overview/#json-formats

There is an ongoing pull request review of OpenTelemetry. That sounds to be a better idea.