Skip to content
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

Add instrumentation for vertx-sql-client #8311

Merged
merged 3 commits into from
Apr 20, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Apr 18, 2023

Resolves #8292

@laurit laurit requested a review from a team April 18, 2023 13:05
@github-actions github-actions bot requested a review from theletterf April 18, 2023 13:05
Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good to me! Tricky stuff and hard to get right. I haven't yet internalized if/how vertx sql might have thread reentrance and how that might impact nesting calls.

equalTo(NET_PEER_NAME, "localhost"),
equalTo(NET_PEER_PORT, port))));
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could happen in another PR if you want, but it might be nice to see a second query issued from inside the callback in order to verify the span parentage (depth 2 instead of depth 1).

import io.vertx.sqlclient.SqlConnectOptions;

// Helper class for accessing virtual field on package private QueryExecutor class.
public class QueryExecutorUtil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hacktastic! ❤️

}
} else if (argument instanceof PromiseInternal) {
promiseInternal = (PromiseInternal) argument;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to pattern matching in java one day...... 💤

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(thx for reviewing @breedx-splk)

@trask trask merged commit 04097b3 into open-telemetry:main Apr 20, 2023
@laurit laurit deleted the vertx-sql-client branch July 6, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for the vertx-pg-client and vertx-sql-client libraries.
4 participants