gavlyukovskiy/spring-boot-data-source-decorator

TracingQueryExecutionListener Order

Closed this issue · 2 comments

I think it would be useful that TracingQueryExecutionListener bean had an Order with a high precedence.

I am using spring-boot-data-source-decorator 1.5.1 with datasource-proxy. I need to use my custom MethodExecutionListener. Sometimes, depending on configuration order, my custom MethodExcecutionListener may be executed before the connection span has been created.

Thanks in advance.

I think it's a good idea.

I've added order Ordered.HIGHEST_PRECEDENCE + 10 to a listener. It will allow you to configure your custom listener's execution order. Please try version 1.5.2 that should be available in Maven Central shortly.