Changing correlation-id plugin execution order


#1

Is there any specific reason why correlation-id plugin has a priority of 1?

I need correlation-id during the execution of my custom plugins, what would be downside of running the correlation-id plugin at the very beginning of the pipeline?

I was thinking about duplicating correlation-id plugin with PRIORITY=10000, so that it runs at the very beginning, that would guarantee that the correlation-id would always be available in all plugins.


#2

Hi,

Historically, the correlation-id plugin hasn’t interacted directly with other plugins, so running it last hasn’t been a problem. I don’t think modifying the priority or duplicating it with a higher priority would be exceptionally harmful, but as always, make sure you test any changes before deploying in a production environment :slight_smile: