feature-creeps / observability-workshop

Apache License 2.0
33 stars 7 forks source link

Remove legacy trace ID from logs #128

Open lieberlois opened 1 year ago

lieberlois commented 1 year ago

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.