Skip to content

Conversation

@123liuziming
Copy link
Contributor

related to #10997

Change-Id: Id24535b21c004991b9bd6eec3c3f167903bc6ab0
@123liuziming 123liuziming requested a review from a team as a code owner November 27, 2025 07:49
laurit and others added 4 commits November 27, 2025 10:49
Change-Id: Ia0e45b15e17a3566a957b1feca5a5f9ee7e21916
Change-Id: I905c820c42c59733f7f54f98bd93bfc3b2b39d75
Change-Id: Icd45c926cf4377b33664f63774aa8517ab0fc372
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

public class DisableNoEntranceSpanAndMetricsTest extends AbstractLettuceClientTest {
Copy link
Contributor

@laurit laurit Nov 27, 2025

Choose a reason for hiding this comment

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

usually we leave test classes as package private
this class name is weird, consider renaming it


testing {
suites {
val test_compatibility by registering(JvmTestSuite::class) {
Copy link
Contributor

@laurit laurit Nov 27, 2025

Choose a reason for hiding this comment

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

all other suites are named in camelCase
this suite isn't automatically run you'll have to add it with

  check {
    dependsOn(testing.suites)
  }

currently this test fails

Comment on lines +31 to +45
Tracing.withTraceContextProvider(
new TraceContextProvider() {
@Override
public TraceContext getTraceContext() {
return null;
}

@Override
public Mono<TraceContext> getTraceContextLater() {
return TraceContextProvider.super.getTraceContextLater();
}
});
Tracing.getContext();
Tracing.clearContext();
Tracing.disabled();
Copy link
Contributor

Choose a reason for hiding this comment

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

looking at #10997 I'd assume that you don't need to call anything besides Tracing.getContext()?

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