| 1 | // Copyright The OpenTelemetry Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | package internal // import "go.opentelemetry.io/collector/receiver/receiverhelper/internal" |
| 5 | |
| 6 | const ( |
| 7 | // SpanNameSep is duplicate between receiver and exporter. |
| 8 | SpanNameSep = "/" |
| 9 | |
| 10 | // ReceiverKey used to identify receivers in metrics and traces. |
| 11 | ReceiverKey = "receiver" |
| 12 | // TransportKey used to identify the transport used to received the data. |
| 13 | TransportKey = "transport" |
| 14 | // FormatKey used to identify the format of the data received. |
| 15 | FormatKey = "format" |
| 16 | |
| 17 | // AcceptedSpansKey used to identify spans accepted by the Collector. |
| 18 | AcceptedSpansKey = "accepted_spans" |
| 19 | // RefusedSpansKey used to identify spans refused (ie.: not ingested) by the Collector. |
| 20 | RefusedSpansKey = "refused_spans" |
| 21 | // FailedSpansKey used to identify spans failed to be processed by the Collector. |
| 22 | FailedSpansKey = "failed_spans" |
| 23 | |
| 24 | // AcceptedMetricPointsKey used to identify metric points accepted by the Collector. |
| 25 | AcceptedMetricPointsKey = "accepted_metric_points" |
| 26 | // RefusedMetricPointsKey used to identify metric points refused (ie.: not ingested) by the |
| 27 | // Collector. |
| 28 | RefusedMetricPointsKey = "refused_metric_points" |
| 29 | // FailedMetricPointKey used to identify metric points failed to be processed by the Collector. |
| 30 | FailedMetricPointsKey = "failed_metric_points" |
| 31 | |
| 32 | // AcceptedLogRecordsKey used to identify log records accepted by the Collector. |
| 33 | AcceptedLogRecordsKey = "accepted_log_records" |
| 34 | // RefusedLogRecordsKey used to identify log records refused (ie.: not ingested) by the |
| 35 | // Collector. |
| 36 | RefusedLogRecordsKey = "refused_log_records" |
| 37 | |
| 38 | // FailedLogRecordsKey used to identify log records failed to be processed by the Collector. |
| 39 | FailedLogRecordsKey = "failed_log_records" |
| 40 | |
| 41 | ReceiveTraceDataOperationSuffix = SpanNameSep + "TraceDataReceived" |
| 42 | ReceiverMetricsOperationSuffix = SpanNameSep + "MetricsReceived" |
| 43 | ReceiverLogsOperationSuffix = SpanNameSep + "LogsReceived" |
| 44 | ) |