-
Couldn't load subscription status.
- Fork 1k
Consolidate network attribute extraction into DbClientAttributesGetter #15149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
3b79cd1 to
d2988b1
Compare
d2988b1 to
a6bef40
Compare
| public String getServerAddress(VertxSqlClientRequest request) { | ||
| return request.getHost(); | ||
| } | ||
|
|
||
| @Nullable | ||
| public String getConnectionString(VertxSqlClientRequest request) { | ||
| return null; | ||
| @Override | ||
| public Integer getServerPort(VertxSqlClientRequest request) { | ||
| return request.getPort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't there be corresponding new test assertions?
...main/java/io/opentelemetry/instrumentation/r2dbc/v1_0/internal/R2dbcInstrumenterBuilder.java
Outdated
Show resolved
Hide resolved
.../javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jdbc/JdbcSingletons.java
Outdated
Show resolved
Hide resolved
|
|
||
| @Deprecated | ||
| @Nullable | ||
| @Override | ||
| public String getServerAddress(CassandraRequest request) { | ||
| return null; | ||
| } | ||
|
|
||
| @Nullable | ||
| public String getConnectionString(CassandraRequest request) { | ||
| @Override | ||
| public Integer getServerPort(CassandraRequest request) { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why implement getServerAddress and getServerPort when getNetworkPeerInetSocketAddress is implemented below?
| public String getServerAddress(CassandraRequest request) { | ||
| return null; | ||
| } | ||
|
|
||
| @Nullable | ||
| public String getConnectionString(CassandraRequest request) { | ||
| @Override | ||
| public Integer getServerPort(CassandraRequest request) { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
|
|
||
| @Deprecated | ||
| @Nullable | ||
| @Override | ||
| public String getServerAddress(CassandraRequest request) { | ||
| return null; | ||
| } | ||
|
|
||
| @Nullable | ||
| public String getConnectionString(CassandraRequest request) { | ||
| @Override | ||
| public Integer getServerPort(CassandraRequest request) { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Currently built on top of #15139