Skip to content

Commit 1a354ce

Browse files
committed
pass storage
1 parent 8b7fa68 commit 1a354ce

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

disk-buffering/src/main/java/io/opentelemetry/contrib/disk/buffering/LogRecordToDiskExporter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class LogRecordToDiskExporter implements LogRecordExporter {
3030
* @return A new LogRecordToDiskExporter instance.
3131
* @throws IOException if the delegate ToDiskExporter could not be created.
3232
*/
33+
@SuppressWarnings("deprecation")
3334
public static LogRecordToDiskExporter create(
3435
LogRecordExporter delegate, StorageConfiguration config) throws IOException {
3536
ToDiskExporter<LogRecordData> toDisk =

disk-buffering/src/main/java/io/opentelemetry/contrib/disk/buffering/MetricToDiskExporter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class MetricToDiskExporter implements MetricExporter {
3535
* @return A new MetricToDiskExporter instance.
3636
* @throws IOException if the delegate ToDiskExporter could not be created.
3737
*/
38+
@SuppressWarnings("deprecation")
3839
public static MetricToDiskExporter create(MetricExporter delegate, StorageConfiguration config)
3940
throws IOException {
4041
ToDiskExporter<MetricData> toDisk =

disk-buffering/src/test/java/io/opentelemetry/contrib/disk/buffering/IntegrationTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,16 @@ public class IntegrationTest {
6767
@TempDir File rootDir;
6868
private static final long INITIAL_TIME_IN_MILLIS = 1000;
6969
private static final long NOW_NANOS = MILLISECONDS.toNanos(INITIAL_TIME_IN_MILLIS);
70+
private StorageConfiguration storageConfig;
7071
private Storage storage;
7172

7273
@BeforeEach
7374
void setUp() throws IOException {
7475
clock = mock();
76+
storageConfig = StorageConfiguration.getDefault(rootDir);
7577
storage = Storage.builder()
7678
.setFolderName(SignalTypes.spans.name())
77-
.setStorageConfiguration(StorageConfiguration.getDefault(rootDir))
79+
.setStorageConfiguration(storageConfig)
7880
.setStorageClock(clock)
7981
.build();
8082

disk-buffering/src/test/java/io/opentelemetry/contrib/disk/buffering/internal/exporter/ToDiskExporterBuilderTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
class ToDiskExporterBuilderTest {
1616

17+
@SuppressWarnings("deprecation") // todo
1718
@Test
1819
void whenMinFileReadIsNotGraterThanMaxFileWrite_throwException() {
1920
StorageConfiguration invalidConfig =

0 commit comments

Comments
 (0)