starttimemetric

package
v0.138.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type is the value users can use to configure the start time metric adjuster.
	Type = "start_time_metric"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adjuster

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

func NewAdjuster

func NewAdjuster(set component.TelemetrySettings, startTimeMetricRegex *regexp.Regexp, gcInterval time.Duration) *Adjuster

NewAdjuster returns a new Adjuster which adjust metrics' start times based on the initial received points.

func (*Adjuster) AdjustMetrics

func (a *Adjuster) AdjustMetrics(_ context.Context, metrics pmetric.Metrics) (pmetric.Metrics, error)

AdjustMetrics adjusts the start time of metrics based on a different metric in the batch.

Jump to

Keyboard shortcuts

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