-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] use mdatagen for exporterhelper metrics #10094
Changes from all commits
bb3b942
e329287
0c1cbd6
08b4c8e
fd76223
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why move these few lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super clear from the description, but the commit for the change describes it: