identity

package
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

identity types for metrics and sample streams.

Use the `Of*(T) -> I` functions to obtain a unique, comparable (==) and hashable (map key) identity value I for T.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

func OfMetric

func OfMetric(scope Scope, m pmetric.Metric) Metric

func OfResourceMetric

func OfResourceMetric(res pcommon.Resource, scope pcommon.InstrumentationScope, metric pmetric.Metric) Metric

func (Metric) Hash

func (i Metric) Hash() hash.Hash64

func (Metric) Scope

func (i Metric) Scope() Scope

func (Metric) String

func (m Metric) String() string

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func OfResource

func OfResource(r pcommon.Resource) Resource

func (Resource) Hash

func (r Resource) Hash() hash.Hash64

func (Resource) String

func (r Resource) String() string

type Scope

type Scope struct {
	// contains filtered or unexported fields
}

func OfScope

func OfScope(res Resource, scope pcommon.InstrumentationScope) Scope

func (Scope) Hash

func (s Scope) Hash() hash.Hash64

func (Scope) Resource

func (s Scope) Resource() Resource

func (Scope) String

func (s Scope) String() string

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func OfStream

func OfStream[DataPoint attrPoint](m Metric, dp DataPoint) Stream

func (Stream) Hash

func (i Stream) Hash() hash.Hash64

func (Stream) Metric

func (i Stream) Metric() Metric

func (Stream) String

func (s Stream) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL