nokia / restful

A powerful RESTful framework for Go.
BSD 3-Clause "New" or "Revised" License
17 stars 14 forks source link

Logs with trace IDs #32

Closed Som-Som-CC closed 1 year ago

Som-Som-CC commented 2 years ago

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

Som-Som-CC commented 1 year ago

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