1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include "opentelemetry/sdk/common/global_log_handler.h"
#include "opentelemetry/sdk/metrics/push_metric_exporter.h"
#include "custom_push_metric_exporter.h"
opentelemetry::sdk::common::ExportResult CustomPushMetricExporter::Export(
const opentelemetry::sdk::metrics::ResourceMetrics & /* data */) noexcept
{
OTEL_INTERNAL_LOG_ERROR("CustomPushMetricExporter::Export(): YOUR CODE HERE");
return opentelemetry::sdk::common::ExportResult::kSuccess;
}
opentelemetry::sdk::metrics::AggregationTemporality
CustomPushMetricExporter::GetAggregationTemporality(
opentelemetry::sdk::metrics::InstrumentType /* instrument_type */) const noexcept
{
OTEL_INTERNAL_LOG_ERROR("CustomPushMetricExporter::GetAggregationTemporality(): YOUR CODE HERE");
return opentelemetry::sdk::metrics::AggregationTemporality::kCumulative;
}
bool CustomPushMetricExporter::ForceFlush(std::chrono::microseconds /* timeout */) noexcept
{
OTEL_INTERNAL_LOG_ERROR("CustomPushMetricExporter::ForceFlush(): YOUR CODE HERE");
return true;
}
bool CustomPushMetricExporter::Shutdown(std::chrono::microseconds /* timeout */) noexcept
{
OTEL_INTERNAL_LOG_ERROR("CustomPushMetricExporter::Shutdown(): YOUR CODE HERE");
return true;
}
|