Skip to content

Conversation

SiyaoIsHiding
Copy link
Contributor

On top of #1949
We need to merge that one first before we merge this one.

Here is an example system using this branch. We should find a better place to put that project than under my name.

}

@Nullable
private Field getProxyAddressField() {
Copy link
Member

Choose a reason for hiding this comment

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

We should not need to do that on our own code base. AFAIK, we should just add getter in SniEndPoint.

public OtelRequestTracker(OpenTelemetry openTelemetry) {
this.tracer =
openTelemetry.getTracer("com.datastax.oss.driver.internal.core.tracker.OtelRequestTracker");
this.threadPool =
Copy link
Member

Choose a reason for hiding this comment

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

I would add thread pool as optional constructor parameter. There are multiple parameters that may vary between applications.

@NonNull Request request,
@NonNull DriverExecutionProfile executionProfile,
@NonNull String requestLogPrefix) {
Span parentSpan = tracer.spanBuilder("Cassandra Java Driver Session Request").startSpan();
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if we should not add .setParent(Context.current().with(Span.current())) to link potential parent context started by the application.

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.

2 participants