spans = failOnOverkillTraceComponent.getSpans();
+ assertThat(spans.size()).isEqualTo(5);
+ assertThat(spans).containsEntry("CloudSpanner.ReadWriteTransaction", true);
+ assertThat(spans).containsEntry("CloudSpannerOperation.BatchCreateSessions", true);
+ assertThat(spans).containsEntry("SessionPool.WaitForSession", true);
+ assertThat(spans).containsEntry("CloudSpannerOperation.BatchCreateSessionsRequest", true);
+ assertThat(spans).containsEntry("CloudSpannerOperation.BeginTransaction", true);
+ }
+}
diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/TracerTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/TracerTest.java
new file mode 100644
index 0000000000..cad3dd19fd
--- /dev/null
+++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/TracerTest.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.spanner;
+
+import org.junit.experimental.categories.Category;
+
+/**
+ * Tests marked with this {@link Category} will be executed in a separate execution with the
+ * maven-surefire plugin. The tests will be excluded from execution with the maven-failsafe plugin.
+ *
+ * Separate execution prevents the injection of any custom tracing configuration from interfering
+ * with other tests, as most tracing configuration is stored in static final variables.
+ */
+public interface TracerTest {}