mulesoft-consulting / json-logger

Drop-in replacement for default Mule Logger that outputs a JSON structure based on a predefined JSON schema
MIT License
68 stars 212 forks source link

Use correlationId instead of eventId as the key for the elapsed timer #21

Closed revelant-doug closed 3 years ago

revelant-doug commented 3 years ago

This pull request fixes mulesoft-consulting/json-logger#20 by changing the key of the timer from eventId to correlationId so that it doesn't change between calls to the JSON logger for an API call.

I left the two debug level logging statements that I used to troubleshoot as they may be helpful if a similar situation arises in the future.