mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-24 03:47:19 +02:00
f9984f2d4e
* Restructure ExportKindSelector helpers; eliminate PassThroughExportKind; add StatelessExportKindSelector() * WithExportKindSelector(); Additional testing * Changelog update * Test the new selectors * From review feedback Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
26 lines
691 B
Go
26 lines
691 B
Go
// Code generated by "stringer -type=ExportKind"; DO NOT EDIT.
|
|
|
|
package metric
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[CumulativeExportKind-1]
|
|
_ = x[DeltaExportKind-2]
|
|
}
|
|
|
|
const _ExportKind_name = "CumulativeExportKindDeltaExportKind"
|
|
|
|
var _ExportKind_index = [...]uint8{0, 20, 35}
|
|
|
|
func (i ExportKind) String() string {
|
|
i -= 1
|
|
if i < 0 || i >= ExportKind(len(_ExportKind_index)-1) {
|
|
return "ExportKind(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
|
}
|
|
return _ExportKind_name[_ExportKind_index[i]:_ExportKind_index[i+1]]
|
|
}
|