Skip to content

Commit a448101

Browse files
committed
imports
1 parent 7420536 commit a448101

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

smoke-tests/src/main/java/io/opentelemetry/smoketest/SmokeTestRunner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.opentelemetry.sdk.logs.data.LogRecordData;
1212
import io.opentelemetry.sdk.metrics.data.MetricData;
1313
import io.opentelemetry.sdk.trace.data.SpanData;
14+
import java.io.File;
1415
import java.io.IOException;
1516
import java.util.List;
1617

@@ -44,7 +45,7 @@ public void afterTestClass() throws IOException {
4445
// Generates files in a `.telemetry` directory within the instrumentation module with all
4546
// captured emitted metadata to be used by the instrumentation-docs Doc generator.
4647
if (Boolean.getBoolean("collectMetadata")) {
47-
String path = new java.io.File("").getAbsolutePath();
48+
String path = new File("").getAbsolutePath();
4849

4950
MetaDataCollector.writeTelemetryToFiles(path, metricsByScope, tracesByScope);
5051
}

testing-common/src/main/java/io/opentelemetry/instrumentation/testing/AgentTestRunner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import io.opentelemetry.sdk.logs.data.LogRecordData;
1717
import io.opentelemetry.sdk.metrics.data.MetricData;
1818
import io.opentelemetry.sdk.trace.data.SpanData;
19+
import java.io.File;
1920
import java.io.IOException;
2021
import java.util.List;
2122
import org.slf4j.LoggerFactory;
@@ -65,7 +66,7 @@ public void afterTestClass() throws IOException {
6566
// Generates files in a `.telemetry` directory within the instrumentation module with all
6667
// captured emitted metadata to be used by the instrumentation-docs Doc generator.
6768
if (Boolean.getBoolean("collectMetadata")) {
68-
String path = new java.io.File("").getAbsolutePath();
69+
String path = new File("").getAbsolutePath();
6970

7071
MetaDataCollector.writeTelemetryToFiles(path, metricsByScope, tracesByScope);
7172
}

testing-common/src/main/java/io/opentelemetry/instrumentation/testing/LibraryTestRunner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import io.opentelemetry.sdk.trace.SpanProcessor;
4545
import io.opentelemetry.sdk.trace.data.SpanData;
4646
import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor;
47+
import java.io.File;
4748
import java.io.IOException;
4849
import java.time.Duration;
4950
import java.util.List;
@@ -131,7 +132,7 @@ public void afterTestClass() throws IOException {
131132
// Generates files in a `.telemetry` directory within the instrumentation module with all
132133
// captured emitted metadata to be used by the instrumentation-docs Doc generator.
133134
if (Boolean.getBoolean("collectMetadata")) {
134-
String path = new java.io.File("").getAbsolutePath();
135+
String path = new File("").getAbsolutePath();
135136

136137
MetaDataCollector.writeTelemetryToFiles(path, metricsByScope, tracesByScope);
137138
}

0 commit comments

Comments
 (0)