mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
0e2fdfc682
* Update Process() * Checkpoint * Add subtractor; fix test * Fix all simple integrator tests * Build the rest (checkpoint) * Pass all but Prometheus tests * Precommit pass * Add aggregation.Kind argument to ExportKindFor * Remove Subtractor support * Remove dead test code * Restore the Subtractor code * Fix the tests * Comments * Add tests for MetricKind * Add ChangeSign test * Test ExportKind * New file * Rename ChangeSign * Remove a TODO, add a TODO * Remove Stateful remnants * Typo * Typo * Test an invalid export kind * Comments * Lint * Apply suggestions from code review Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
36 lines
806 B
Go
36 lines
806 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[CumulativeExporter-1]
|
|
_ = x[DeltaExporter-2]
|
|
_ = x[PassThroughExporter-4]
|
|
}
|
|
|
|
const (
|
|
_ExportKind_name_0 = "CumulativeExporterDeltaExporter"
|
|
_ExportKind_name_1 = "PassThroughExporter"
|
|
)
|
|
|
|
var (
|
|
_ExportKind_index_0 = [...]uint8{0, 18, 31}
|
|
)
|
|
|
|
func (i ExportKind) String() string {
|
|
switch {
|
|
case 1 <= i && i <= 2:
|
|
i -= 1
|
|
return _ExportKind_name_0[_ExportKind_index_0[i]:_ExportKind_index_0[i+1]]
|
|
case i == 4:
|
|
return _ExportKind_name_1
|
|
default:
|
|
return "ExportKind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|