// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 #include "opentelemetry/exporters/otlp/otlp_file_metric_exporter_options.h" #include #include OPENTELEMETRY_BEGIN_NAMESPACE namespace exporter { namespace otlp { OtlpFileMetricExporterOptions::OtlpFileMetricExporterOptions() : aggregation_temporality(PreferredAggregationTemporality::kCumulative) { console_debug = false; OtlpFileClientFileSystemOptions fs_options; fs_options.file_pattern = "metrics-%N.jsonl"; fs_options.alias_pattern = "metrics-latest.jsonl"; fs_options.flush_interval = std::chrono::seconds(30); fs_options.flush_count = 256; fs_options.file_size = 1024 * 1024 * 20; fs_options.rotate_size = 10; backend_options = fs_options; } OtlpFileMetricExporterOptions::~OtlpFileMetricExporterOptions() {} } // namespace otlp } // namespace exporter OPENTELEMETRY_END_NAMESPACE