Documentation
¶
Overview ¶
Package meldotel exports Meldbase's bounded admin snapshots through the stable OpenTelemetry Metrics API. It never calls DB.Stats directly and does not create an SDK, exporter, goroutine, network connection, or global state.
Index ¶
Constants ¶
const SchemaVersion uint32 = 12
SchemaVersion identifies the fixed aggregate instrument contract. It is independent of the admin JSON schema and OpenTelemetry API version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) Stats ¶
func (adapter *Adapter) Stats() AdapterStats
type AdapterStats ¶
type InstrumentDescriptor ¶
type InstrumentDescriptor struct {
Name string
Description string
Unit string
Kind InstrumentKind
Number string
}
func Instruments ¶
func Instruments() []InstrumentDescriptor
Instruments returns a fresh, caller-owned copy of the fixed schema. It never contains application, collection, query, document, actor, or workspace data.
type InstrumentKind ¶
type InstrumentKind string
const ( InstrumentGauge InstrumentKind = "gauge" InstrumentCounter InstrumentKind = "counter" )
type Options ¶
type Options struct {
MeterProvider metric.MeterProvider
InstrumentationVersion string
}
type SampleSource ¶
SampleSource is implemented by *admin.Sampler. The adapter deliberately consumes its latest immutable sample instead of entering a database lock from an OpenTelemetry collection callback.