This is a proposal how to improve only PostgreSQL OpenTracing span names only. PR is related to https://github.com/userver-framework/userver/issues/678.
It sets names of spans according to their meaning and adds the first word of SQL query (or text before "as" if the first word is "with") to the name of span:
Regarding to Redis - it was decided to keep the span names for Redis unchanged, as otherwise, we would need to pass all arguments from Command to Reply and then convert them to strings, which would mean significant overhead for unclear reasons (name of command is the name of span already).
This is a proposal how to improve only PostgreSQL OpenTracing span names only. PR is related to https://github.com/userver-framework/userver/issues/678. It sets names of spans according to their meaning and adds the first word of SQL query (or text before "as" if the first word is "with") to the name of span:
Regarding to Redis - it was decided to keep the span names for Redis unchanged, as otherwise, we would need to pass all arguments from Command to Reply and then convert them to strings, which would mean significant overhead for unclear reasons (name of command is the name of span already).