From 0d67058f9d79422c51b9a7b610ff070ae3233e27 Mon Sep 17 00:00:00 2001 From: suranjay Date: Mon, 29 May 2023 16:12:41 +0530 Subject: [PATCH] Fix javadocs error Signed-off-by: suranjay --- .../tracing/exporter/FileSpanExporter.java | 7 ++++++- .../opensearch/tracing/exporter/package-info.java | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/package-info.java diff --git a/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/FileSpanExporter.java b/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/FileSpanExporter.java index 220b6601a6469..511f0ec222c77 100644 --- a/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/FileSpanExporter.java +++ b/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/FileSpanExporter.java @@ -22,13 +22,18 @@ * will be written to a file. Tracing log file would be available in the logs directory. */ public class FileSpanExporter implements SpanExporter { - public static final String TRACING_LOG_PREFIX = "tracing_log"; + static final String TRACING_LOG_PREFIX = "tracing_log"; private static final Logger TRACING_LOGGER = LogManager.getLogger(TRACING_LOG_PREFIX); private final Logger DEFAULT_LOGGER = LogManager.getLogger(FileSpanExporter.class); private final String FIELD_SEPARATOR = "\t"; private final AtomicBoolean isShutdown = new AtomicBoolean(); + /** + * No-args constructor + */ + public FileSpanExporter() {} + @Override public CompletableResultCode export(Collection spans) { if (isShutdown.get()) { diff --git a/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/package-info.java b/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/package-info.java new file mode 100644 index 0000000000000..b5815891f05f6 --- /dev/null +++ b/modules/tracer-otel/src/main/java/org/opensearch/tracing/exporter/package-info.java @@ -0,0 +1,12 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +/** + * Contains span exporters + */ +package org.opensearch.tracing.exporter;