-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] use mdatagen for exporterhelper metrics (#10094)
Uses the new mdatagen capabilities to generate internal telemetry details for exporterhelper. --------- Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
296 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//go:generate mdatagen metadata.yaml | ||
|
||
// Package exporterhelper provides helper functions for exporters. | ||
package exporterhelper // import "go.opentelemetry.io/collector/exporter/exporterhelper" |
3 changes: 1 addition & 2 deletions
3
exporter/exporterhelper/package_test.go → .../exporterhelper/generated_package_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
exporter/exporterhelper/internal/metadata/generated_status.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
exporter/exporterhelper/internal/metadata/generated_telemetry.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
exporter/exporterhelper/internal/metadata/generated_telemetry_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
type: exporterhelper | ||
|
||
status: | ||
class: pkg | ||
stability: | ||
beta: [traces, metrics, logs] | ||
distributions: [core, contrib] | ||
|
||
telemetry: | ||
metrics: | ||
exporter_sent_spans: | ||
enabled: true | ||
description: Number of spans successfully sent to destination. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_send_failed_spans: | ||
enabled: true | ||
description: Number of spans in failed attempts to send to destination. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_enqueue_failed_spans: | ||
enabled: true | ||
description: Number of spans failed to be added to the sending queue. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_sent_metric_points: | ||
enabled: true | ||
description: Number of metric points successfully sent to destination. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_send_failed_metric_points: | ||
enabled: true | ||
description: Number of metric points in failed attempts to send to destination. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_enqueue_failed_metric_points: | ||
enabled: true | ||
description: Number of metric points failed to be added to the sending queue. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_sent_log_records: | ||
enabled: true | ||
description: Number of log record successfully sent to destination. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_send_failed_log_records: | ||
enabled: true | ||
description: Number of log records in failed attempts to send to destination. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
exporter_enqueue_failed_log_records: | ||
enabled: true | ||
description: Number of log records failed to be added to the sending queue. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true |
Oops, something went wrong.