model

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RawProfileTypeJFR = RawProfileType("jfr")
View Source
const RawProfileTypeOTEL = RawProfileType("otel")
View Source
const RawProfileTypePPROF = RawProfileType("pprof")

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileSeries

type ProfileSeries struct {
	// Caller provided, modified during processing
	Labels     []*v1.LabelPair
	Profile    *pprof.Profile
	RawProfile []byte // may be nil if the Profile is composed not from pprof ( e.g. jfr)
	ID         string

	// todo split
	// Transient state
	TenantID string
	Language string

	Annotations []*v1.ProfileAnnotation

	// always 1 todo delete
	TotalProfiles          int64
	TotalBytesUncompressed int64

	DiscardedProfilesRelabeling int64
	DiscardedBytesRelabeling    int64
}

todo better name

func (*ProfileSeries) Clone added in v1.15.0

func (req *ProfileSeries) Clone() *ProfileSeries

func (*ProfileSeries) GetLanguage added in v1.2.1

func (req *ProfileSeries) GetLanguage() string

func (*ProfileSeries) MarkSampledRequest added in v1.15.0

func (req *ProfileSeries) MarkSampledRequest(source *sampling.Source) error

func (*ProfileSeries) MarkThrottledTenant added in v1.15.0

func (req *ProfileSeries) MarkThrottledTenant(l *ingestlimits.Config) error

func (*ProfileSeries) MarkThrottledUsageGroup added in v1.15.0

func (req *ProfileSeries) MarkThrottledUsageGroup(l *ingestlimits.Config, usageGroup string) error

type PushRequest

type PushRequest struct {
	Series []*ProfileSeries

	ReceivedCompressedProfileSize int
	RawProfileType                RawProfileType
}

type RawProfileType

type RawProfileType string

Jump to

Keyboard shortcuts

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