Documentation ¶
Index ¶
- Constants
- Variables
- func TruncateString(str string, length int) string
- type LabelValue
- type LabelValueMetadata
- type MetricType
- type MetricValue
- type MetricValueMetadata
- type MetricsBuilder
- type MetricsDataPoint
- func (mdp *MetricsDataPoint) CopyTo(dataPoint pmetric.NumberDataPoint)
- func (mdp *MetricsDataPoint) GroupingKey() MetricsDataPointKey
- func (mdp *MetricsDataPoint) HideLockStatsRowrangestartkeyPII()
- func (mdp *MetricsDataPoint) ToItem() (*filter.Item, error)
- func (mdp *MetricsDataPoint) TruncateQueryText(length int)
- type MetricsDataPointKey
- type MetricsMetadata
- type MetricsMetadataType
- type ValueMetadata
- type ValueType
Constants ¶
View Source
const (
MetricsStability = component.StabilityLevelBeta
)
Variables ¶
View Source
var ( Type = component.MustNewType("googlecloudspanner") ScopeName = "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/googlecloudspannerreceiver" )
Functions ¶
func TruncateString ¶ added in v0.79.0
Types ¶
type LabelValue ¶
type LabelValue interface { Metadata() LabelValueMetadata Value() any SetValueTo(attributes pcommon.Map) }
type LabelValueMetadata ¶
type LabelValueMetadata interface { ValueMetadata ValueType() ValueType NewLabelValue(value any) LabelValue }
func NewLabelValueMetadata ¶ added in v0.40.0
func NewLabelValueMetadata(name string, columnName string, valueType ValueType) (LabelValueMetadata, error)
type MetricType ¶ added in v0.61.0
type MetricType interface { MetricType() pmetric.MetricType AggregationTemporality() pmetric.AggregationTemporality IsMonotonic() bool }
func NewMetricType ¶ added in v0.61.0
func NewMetricType(dataType pmetric.MetricType, aggregationTemporality pmetric.AggregationTemporality, isMonotonic bool, ) MetricType
type MetricValue ¶
type MetricValue interface { Metadata() MetricValueMetadata Value() any SetValueTo(ndp pmetric.NumberDataPoint) }
type MetricValueMetadata ¶
type MetricValueMetadata interface { ValueMetadata ValueType() ValueType DataType() MetricType Unit() string NewMetricValue(value any) MetricValue }
func NewMetricValueMetadata ¶ added in v0.40.0
func NewMetricValueMetadata(name string, columnName string, dataType MetricType, unit string, valueType ValueType, ) (MetricValueMetadata, error)
type MetricsBuilder ¶ added in v0.38.0
type MetricsBuilder interface { Build(dataPoints []*MetricsDataPoint) (pmetric.Metrics, error) Shutdown() error }
func NewMetricsFromDataPointBuilder ¶ added in v0.39.0
func NewMetricsFromDataPointBuilder(filterResolver filter.ItemFilterResolver) MetricsBuilder
type MetricsDataPoint ¶ added in v0.38.0
type MetricsDataPoint struct {
// contains filtered or unexported fields
}
func (*MetricsDataPoint) CopyTo ¶ added in v0.38.0
func (mdp *MetricsDataPoint) CopyTo(dataPoint pmetric.NumberDataPoint)
func (*MetricsDataPoint) GroupingKey ¶ added in v0.38.0
func (mdp *MetricsDataPoint) GroupingKey() MetricsDataPointKey
func (*MetricsDataPoint) HideLockStatsRowrangestartkeyPII ¶ added in v0.65.0
func (mdp *MetricsDataPoint) HideLockStatsRowrangestartkeyPII()
func (*MetricsDataPoint) ToItem ¶ added in v0.39.0
func (mdp *MetricsDataPoint) ToItem() (*filter.Item, error)
func (*MetricsDataPoint) TruncateQueryText ¶ added in v0.79.0
func (mdp *MetricsDataPoint) TruncateQueryText(length int)
type MetricsDataPointKey ¶ added in v0.38.0
type MetricsDataPointKey struct { MetricName string MetricUnit string MetricType MetricType }
type MetricsMetadata ¶
type MetricsMetadata struct { Name string Query string MetricNamePrefix string TimestampColumnName string HighCardinality bool // In addition to common metric labels QueryLabelValuesMetadata []LabelValueMetadata QueryMetricValuesMetadata []MetricValueMetadata }
func (*MetricsMetadata) MetadataType ¶
func (metadata *MetricsMetadata) MetadataType() MetricsMetadataType
func (*MetricsMetadata) RowToMetricsDataPoints ¶ added in v0.38.0
func (metadata *MetricsMetadata) RowToMetricsDataPoints(databaseID *datasource.DatabaseID, row *spanner.Row) ([]*MetricsDataPoint, error)
type MetricsMetadataType ¶
type MetricsMetadataType int32
const ( MetricsMetadataTypeCurrentStats MetricsMetadataType = iota MetricsMetadataTypeIntervalStats )
type ValueMetadata ¶
type ValueType ¶ added in v0.40.0
type ValueType string
const ( UnknownValueType ValueType = "unknown" StringValueType ValueType = "string" IntValueType ValueType = "int" FloatValueType ValueType = "float" NullFloatValueType ValueType = "null_float" BoolValueType ValueType = "bool" StringSliceValueType ValueType = "string_slice" ByteSliceValueType ValueType = "byte_slice" LockRequestSliceValueType ValueType = "lock_request_slice" )
Click to show internal directories.
Click to hide internal directories.