otelobs

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Code generated; DO NOT EDIT.

Index

Constants

View Source
const Version_2AT6MB8 = true

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType string
const (
	DataTypeUndefined DataType = ""
	DataTypeRecording DataType = "recording"
	DataTypeTrace     DataType = "trace"
	DataTypeLog       DataType = "log"
	DataTypeMetric    DataType = "metric"
)

type KeyResolver

type KeyResolver interface {
	Resolve(string)
	Reset()
}

type ProjectReporter

type ProjectReporter interface {
	RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
	Tx(func(tx ProjectTx))
	TxAt(time.Time, func(tx ProjectTx))
	WithSource(name string) SourceReporter
	WithDeferredSource() (SourceReporter, KeyResolver)
	ProjectTx
}

func NewNoopProjectReporter

func NewNoopProjectReporter() ProjectReporter

type ProjectTx

type ProjectTx interface{}

type Reporter

type Reporter interface {
	WithProject(id string) ProjectReporter
	WithDeferredProject() (ProjectReporter, KeyResolver)
}

func NewNoopReporter

func NewNoopReporter() Reporter

type Rollup

type Rollup string
const (
	RollupUndefined Rollup = ""
	RollupSource    Rollup = "source"
)

type SourceReporter

type SourceReporter interface {
	RegisterFunc(func(ts time.Time, tx SourceTx) bool)
	Tx(func(tx SourceTx))
	TxAt(time.Time, func(tx SourceTx))
	SourceTx
}

func NewNoopSourceReporter

func NewNoopSourceReporter() SourceReporter

type SourceTx

type SourceTx interface {
	ReportDataType(v DataType)
	ReportBytes(v uint64)
	ReportDuration(v uint64)
	ReportAllowedForTraining(v bool)
}

Jump to

Keyboard shortcuts

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