model

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 7 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
	OriginalTimeNanos int64 // timestamp supplied by the client, before normalisation

	// todo split
	// Transient state
	TenantID string
	Language string
	// EncodedSize is the encoded size of Profile as received. Computing it
	// walks the whole profile, so it is measured once, before the profile is
	// first modified, and is not updated afterwards. Zero if not measured.
	EncodedSize int

	Annotations []*v1.ProfileAnnotation

	// always 1 todo delete
	TotalProfiles          int64
	TotalBytesUncompressed int64

	DiscardedProfilesRelabeling int64
	DiscardedBytesRelabeling    int64
}

todo better name

func (*ProfileSeries) Clone

func (req *ProfileSeries) Clone() *ProfileSeries

func (*ProfileSeries) GetLanguage

func (req *ProfileSeries) GetLanguage() string

func (*ProfileSeries) MarkSampledRequest

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

func (*ProfileSeries) MarkThrottledTenant

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

func (*ProfileSeries) MarkThrottledUsageGroup

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

type PushRequest

type PushRequest struct {
	Series []*ProfileSeries

	ReceivedCompressedProfileSize   int
	ReceivedDecompressedProfileSize int
	RawProfileType                  RawProfileType
	ParseDuration                   time.Duration
}

type RawProfileType

type RawProfileType string

Jump to

Keyboard shortcuts

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