otelobs

package
v1.42.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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