func (info Scalar) SumFloat64(measure *stats.Float64Measure) string {
	data := &Float64Data{Info: &info}
	measure.Subscribe(data.sum)
	return info.Name
}
SumFloat64 creates a new metric based on the Scalar information that sums all
the values recorded on the float64 measure.
Metrics of this type will use Float64Data.
package metric
import (
	"context"
	"sort"
	"time"
	"github.com/fhs/acme-lsp/internal/golang_org_x_tools/telemetry"
	"github.com/fhs/acme-lsp/internal/golang_org_x_tools/telemetry/export"
	"github.com/fhs/acme-lsp/internal/golang_org_x_tools/telemetry/stats"
	"github.com/fhs/acme-lsp/internal/golang_org_x_tools/telemetry/tag"
)
type Scalar struct {
	Name string
	Description string
	Keys []interface{}
}
type HistogramInt64 struct {
	Name string
	Description string
	Keys []interface{}
	Buckets []int64
}
type HistogramFloat64 struct {
	Name string
	Description string
	Keys []interface{}
	Buckets []float64
}
func (info Scalar) CountInt64(measure *stats.Int64Measure) string {
	data := &Int64Data{Info: &info}
	measure.Subscribe(data.countInt64)
	return info.Name
}
func (info Scalar) SumInt64(measure *stats.Int64Measure) string {
	data := &Int64Data{Info: &info}
	measure.Subscribe(data.sum)
	_ = data
	return info.Name
}
func (info Scalar) LatestInt64(measure *stats.Int64Measure) string {
	data := &Int64Data{Info: &info, IsGauge: true}
	measure.Subscribe(data.latest)
	return info.Name
}
func (info Scalar) CountFloat64(measure *stats.Float64Measure) string {
	data := &Int64Data{Info: &info}
	measure.Subscribe(data.countFloat64)
	return info.Name
}