annotation

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileAnnotationKeyThrottled = "pyroscope.ingest.throttled"
	ProfileAnnotationKeySampled   = "pyroscope.ingest.sampled"
)

Variables

This section is empty.

Functions

func CreateProfileAnnotation

func CreateProfileAnnotation(source *sampling.Source) ([]byte, error)

func CreateTenantAnnotation

func CreateTenantAnnotation(c *ingestlimits.Config) ([]byte, error)

func CreateUsageGroupAnnotation

func CreateUsageGroupAnnotation(c *ingestlimits.Config, usageGroup string) ([]byte, error)

Types

type ProfileAnnotation

type ProfileAnnotation struct {
	Body interface{} `json:"body"`
}

type SampledAnnotation

type SampledAnnotation struct {
	Source *sampling.Source `json:"source"`
}

type ThrottledAnnotation

type ThrottledAnnotation struct {
	PeriodType        string `json:"periodType"`
	PeriodLimitMb     int    `json:"periodLimitMb"`
	LimitResetTime    int64  `json:"limitResetTime"`
	SamplingPeriodSec int    `json:"samplingPeriodSec"`
	SamplingRequests  int    `json:"samplingRequests"`
	UsageGroup        string `json:"usageGroup"`
}

Jump to

Keyboard shortcuts

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