opentracing-contrib / java-jdbc

OpenTracing Instrumentation for JDBC
Apache License 2.0
82 stars 56 forks source link

hard coded JdbcTracingUtils #24

Open wcarmon opened 5 years ago

wcarmon commented 5 years ago

Most of the other opentracing contrib projects use a SpanDecorator so users can customize the span.

Is there any reason you have hard-coded JdbcTracingUtils.on*() instead of the SpanDecorator pattern?

Examples:

malafeev commented 5 years ago

To be honest it looked redundant for me. If it's useful please submit PR.

wcarmon commented 5 years ago

Happy new year :-)

It will take me a few days to propose a clean refactoring for SpanDecorators.

Thanks for releasing the changes I sent previously.

whiskeysierra commented 5 years ago

To be honest it looked redundant for me.

It allows customization which would make this library infinitely more useful. Related to https://en.wikipedia.org/wiki/Open%E2%80%93closed_principle

malafeev commented 5 years ago

PR is welcome

quaff commented 4 years ago

I'm wondering is this really important? could somebody show me valid use case.