hooks

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastReport

func BroadcastReport(event ReportEvent)

func RegisterIngestPermissionHook added in v1.8.13

func RegisterIngestPermissionHook(fn func(orgId int) IngestPermission)

func RegisterReportHook

func RegisterReportHook(fn func(ReportEvent))

Types

type AiTraceInfo

type AiTraceInfo struct {
	TraceName string
	TotalCost float64
}

type IngestPermission added in v1.8.13

type IngestPermission struct {
	Exceptions bool
	Data       bool
	Replay     bool
}

func IngestPermissionFor added in v1.8.13

func IngestPermissionFor(orgId int) IngestPermission

type ReportEvent

type ReportEvent struct {
	OrganizationId  int
	ProjectId       uuid.UUID
	EndpointCount   int
	ErrorCount      int
	TaskCount       int
	RecordingCount  int
	TelemetryBytes  int
	RecordingBytes  int
	ExceptionHashes []string
	AiTraces        []AiTraceInfo
}

Jump to

Keyboard shortcuts

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