observability-workshop icon indicating copy to clipboard operation
observability-workshop copied to clipboard

Remove legacy trace ID from logs

Open lieberlois opened this issue 1 year ago • 0 comments

In the logs of the application services, we can see the following json log:

{"traceId":"01bf071bf63c0f21","spanId":"c9c3d2e76bcd3d12","transaction.id":"65da1965fdd22ea5","trace.id":"e85980ac19e9abf1b771f4f8a000fead","mimeType":"image/jpg","event.id":"c2428dc7-7992-42d1-96f4-12d824b221cf","degrees":"-197","@timestamp":"2023-03-15T15:02:24.128Z","message":"Receiving image/jpg image to rotate by -197 degrees","logger_name":"com.github.olly.workshop.imagerotator.adapter.ImageController","level":"INFO","service":"imagerotator"}

The issue is, that there are the fields traceId and trace.id which should be merged into one field.

lieberlois avatar Mar 15 '23 15:03 lieberlois