Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Jan 10, 2026

I think wrap has evolved as our method name for wrapping an instance and returning something of the same type (e.g. in JdbcTelemetry)

Related to

@trask trask marked this pull request as ready for review January 10, 2026 22:09
@trask trask requested a review from a team as a code owner January 10, 2026 22:09
}

public HttpClient instrument(HttpClient httpClient) throws Exception {
public HttpClient wrap(HttpClient httpClient) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering that perhaps we should use instrument instead of wrap since it is a boarder term. Here the input client isn't really wrapped, the instrumented client won't delegate to the original client, but rather creates a new client based on the original and adds the tracing interceptors.

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.

3 participants