Files
7a463ac672 Add accepted/refused/failed profile sample metrics to the receivers (#14226)
This adds obs metrics to the profiles receivers.

---------

Co-authored-by: Roger Coll <[email protected]>
Co-authored-by: Pablo Baeyens <[email protected]>
2026-01-16 12:53:02 +00:00

53 lines
2.4 KiB
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package internal // import "go.opentelemetry.io/collector/receiver/receiverhelper/internal"
const (
// SpanNameSep is duplicate between receiver and exporter.
SpanNameSep = "/"
// ReceiverKey used to identify receivers in metrics and traces.
ReceiverKey = "receiver"
// TransportKey used to identify the transport used to received the data.
TransportKey = "transport"
// FormatKey used to identify the format of the data received.
FormatKey = "format"
// AcceptedSpansKey used to identify spans accepted by the Collector.
AcceptedSpansKey = "accepted_spans"
// RefusedSpansKey used to identify spans refused (ie.: not ingested) by the Collector.
RefusedSpansKey = "refused_spans"
// FailedSpansKey used to identify spans failed to be processed by the Collector.
FailedSpansKey = "failed_spans"
// AcceptedMetricPointsKey used to identify metric points accepted by the Collector.
AcceptedMetricPointsKey = "accepted_metric_points"
// RefusedMetricPointsKey used to identify metric points refused (ie.: not ingested) by the
// Collector.
RefusedMetricPointsKey = "refused_metric_points"
// FailedMetricPointKey used to identify metric points failed to be processed by the Collector.
FailedMetricPointsKey = "failed_metric_points"
// AcceptedLogRecordsKey used to identify log records accepted by the Collector.
AcceptedLogRecordsKey = "accepted_log_records"
// RefusedLogRecordsKey used to identify log records refused (ie.: not ingested) by the
// Collector.
RefusedLogRecordsKey = "refused_log_records"
// FailedLogRecordsKey used to identify log records failed to be processed by the Collector.
FailedLogRecordsKey = "failed_log_records"
// AcceptedProfileSamplesKey used to identify profile samples accepted by the Collector.
AcceptedProfileSamplesKey = "accepted_profile_samples"
// RefusedProfileSamplesKey used to identify profile samples refused (ie.: not ingested) by the Collector.
RefusedProfileSamplesKey = "refused_profile_samples"
// FailedProfileSamplesKey used to identify profile samples failed to be processed by the Collector.
FailedProfileSamplesKey = "failed_profile_samples"
ReceiveTraceDataOperationSuffix = SpanNameSep + "TraceDataReceived"
ReceiverMetricsOperationSuffix = SpanNameSep + "MetricsReceived"
ReceiverLogsOperationSuffix = SpanNameSep + "LogsReceived"
ReceiverProfilesOperationSuffix = SpanNameSep + "ProfilesReceived"
)