Uh oh!
There was an error while loading. Please reload this page.
HBASE-26474 Implement connection-level attributes - #3952
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
| @Override | ||
| @SuppressWarnings("unchecked") | ||
| public B self() { |
There was a problem hiding this comment.
Why we need to have so complicated class hierarchy? A class has a generic type parameter which is just itself?
There was a problem hiding this comment.
I don't like it either. Java really sucks for inheritance with the builder pattern. I could try to rebuild it using mix-ins, but I think that will be equally complex.
There was a problem hiding this comment.
I've pushed a change that replaces build inheritance with a mix-in style of builder. I don't really like it any better, let me know what you think.
Uh oh!
There was an error while loading. Please reload this page.
6df2a9d to
7df1343Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3dc359f to
c39630dCompare
Apache9
left a comment
There was a problem hiding this comment.
Overall LGTM.
Just a minor question on the naming, not a veto. I'm not sure if there are other meanings for a connection string so you choose to use something like a hostname. Just go with your opinion.
| @Override | ||
| public String getConnectionString() { | ||
| return "localhost"; |
There was a problem hiding this comment.
Maybe just call it short-circuit? I do not think localhost is accurate enough, it may implies that we are connecting to a regsitry through network but on the same machine? For short-circuit we know that we are using the ShortCircuitConnectionRegistry.
There was a problem hiding this comment.
This is a good point; localhost does have a specific meaning. Let me consider it, perhaps I can propose a better name. "short-circuit" isn't too bad.
Apache-HBase
commented
Dec 23, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 23, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 23, 2021
🎊 +1 overall
This message was automatically generated. |
Add support for `db.system`, `db.connection_string`, `db.user`.
* address checkstyle complaints * remove member variable `user` from TestAsyncTableTracing
* replace inheritance in *SpanBuilders with a mix-in approach
c39630d to
acfac73CompareApache-HBase
commented
Jan 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 5, 2022
💔 -1 overall
This message was automatically generated. |
ndimiduk
commented
Jan 5, 2022
Thank you, @Apache9 ! |
Add support for `db.system`, `db.connection_string`, `db.user`. Signed-off-by: Duo Zhang <zhangduo@apache.org>
Add support for `db.system`, `db.connection_string`, `db.user`. Signed-off-by: Duo Zhang <zhangduo@apache.org>
Add support for
db.system,db.connection_string,db.user.As per https://github.com/open-telemetry/opentelemetry-specification/blob/3e380e249f60c3a5f68746f5e84d10195ba41a79/specification/trace/semantic_conventions/database.md