Skip to content

The only tool you need to know what is happening and how to fix it.

367 B
Raw Blame
package profiling

import (
	"time"

	"github.com/google/uuid"
)

type IngestContext struct {
	ProjectId          uuid.UUID
	DefaultServiceName string
	ServerName         string
	AppVersion         string
	ReceivedAt         time.Time
	LabelAllowlist     map[string]struct{}
}

type Decoder interface {
	Decode(ctx IngestContext, payload []byte) ([]Decoded, error)
}