Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + const ConfigurationSchemaIdentity + const ConfigurationVersion + const DimensionMedia + const DimensionQueue + const DimensionRender + const DimensionTransport + const MaxDimensionsPerSeries + const MaxDurationNS + const MaxObservationsPerSeries + const MaxPendingSpans + const MaxSeries + const MaxSnapshotBytes + const MaxSources + const SchemaIdentity + const SnapshotFormatVersion + const ValueAudio + const ValueAudioPlayout + const ValueConversation + const ValueData + const ValueDelta + const ValueLiveSnapshot + const ValueOutboundBytes + const ValueOutboundMessage + const ValueTrace + const ValueVideo + const ValueVideoCapture + const ValueWebRTC + const ValueWebSocket + var ErrProviderUnavailable = errors.New("performance evidence provider unavailable") + func CollectorDescriptor() plugin.Descriptor + func CollectorDescriptorIdentity() (plugin.Identity, error) + func ConfigurationContract() plugin.Contract + func DurationBucketUpperBoundsNS() []uint64 + func MarshalSnapshot(snapshot Snapshot) ([]byte, error) + func ServiceContract() plugin.Contract + type ClientPlatform string + const PlatformBrowser + const PlatformHeadless + const PlatformMacOS + type ClockDomain string + const ClockBrowserMonotonic + const ClockMachContinuous + const ClockProcessMonotonic + const ClockVirtualInteger + type ClockIdentity struct + CrossHostErrorBoundNS uint64 + CrossHostSynchronized bool + Domain ClockDomain + Provenance ClockProvenance + ResolutionNS uint64 + type ClockProvenance string + const ClockFromBrowserAPI + const ClockFromFixture + const ClockFromGoMonotonic + const ClockFromMachClock + const ClockFromSynchronized + type Configuration struct + Fingerprint string + FormatVersion uint64 + Limits Limits + Mode ObservabilityMode + Sampling Sampling + func DefaultConfiguration(mode ObservabilityMode) (Configuration, error) + func FreezeConfiguration(source Configuration) (Configuration, error) + func (configuration Configuration) Validate() error + type CounterAggregate struct + Observations uint64 + Value uint64 + type Coverage string + const CoverageMeasured + const CoverageSimulated + const CoverageUnsupported + type CoverageReason string + const CoverageReasonCapabilityUnavailable + const CoverageReasonClockUnsynchronized + const CoverageReasonNone + const CoverageReasonPermissionUnavailable + const CoverageReasonPlatformUnavailable + const CoverageReasonSensorUnavailable + type Dimension struct + Name DimensionName + Value DimensionValue + type DimensionName string + type DimensionValue string + type DropCounter struct + Count uint64 + Reason DropReason + type DropReason string + const DropDeterministicSampling + type DurationHistogram struct + BucketCounts []uint64 + Count uint64 + MaxNS uint64 + MinNS uint64 + SumNS uint64 + type EvidenceClass string + const EvidenceBrowserRuntime + const EvidenceDeterministicFixture + const EvidenceMacOSNative + type GaugeAggregate struct + Max int64 + Min int64 + Observations uint64 + Value int64 + type Limits struct + MaxArtifactBytes uint32 + MaxDimensionsPerSeries uint8 + MaxObservationsPerSeries uint32 + MaxPendingSpans uint16 + MaxSeries uint16 + MaxSources uint16 + func DefaultLimits() Limits + type Metric string + const MetricAudioCaptureDrop + const MetricAudioCompleted + const MetricAudioGap + const MetricAudioOverrun + const MetricAudioScheduled + const MetricAudioUnderflow + const MetricClientByteQueue + const MetricClientMessageQueue + const MetricDeltaRender + const MetricEndpointToFirstRenderedAudio + const MetricLiveSnapshotRender + const MetricLongTask + const MetricMainLoopStall + const MetricMemoryBaseline + const MetricMemoryCurrent + const MetricMemoryGrowth + const MetricMemoryHighWater + const MetricReconnectDetection + const MetricReconnectDuplicate + const MetricReconnectLostEvent + const MetricReconnectRecovery + const MetricReducerToViewCommit + const MetricServerOutputToRenderedAudio + const MetricTraceRender + const MetricVideoCaptureDrop + const MetricVideoCaptureToAdmissionAck + type MetricFamily string + const FamilyCounter + const FamilyDuration + const FamilyGauge + func FamilyOf(metric Metric) (MetricFamily, bool) + type MountScope struct + func NewMountScope() *MountScope + func (scope *MountScope) Lose(provider *Provider) error + func (scope *MountScope) Mount(binding RuntimeBinding, configuration Configuration) (*Provider, error) + type ObservabilityMode string + const ObservabilityDisabled + const ObservabilityRelease + const ObservabilitySampled + type Provider struct + func (provider *Provider) Identity() RuntimeIdentity + func (provider *Provider) Recorder(source uint16) (Recorder, error) + func (provider *Provider) Snapshot() (Snapshot, error) + type Recorder struct + func (recorder Recorder) AddCounter(metric Metric, delta uint64, dimensions ...Dimension) error + func (recorder Recorder) BeginDuration(metric Metric, startNS uint64, dimensions ...Dimension) (Span, error) + func (recorder Recorder) CompleteDuration(span Span, endNS uint64) error + func (recorder Recorder) RecordDuration(metric Metric, nanoseconds uint64, dimensions ...Dimension) error + func (recorder Recorder) SetCoverage(metric Metric, coverage Coverage, reason CoverageReason, ...) error + func (recorder Recorder) SetGauge(metric Metric, value int64, dimensions ...Dimension) error + type RejectedError struct + Reason RejectionReason + func (rejection RejectedError) Error() string + func (rejection RejectedError) Is(target error) bool + type RejectionCounter struct + Count uint64 + Reason RejectionReason + type RejectionReason string + const RejectArtifactBound + const RejectBackwardTime + const RejectCounterOverflow + const RejectCoverageConflict + const RejectDimensionBound + const RejectDuplicateSpan + const RejectIdentityMismatch + const RejectObservationBound + const RejectPendingSpanBound + const RejectProviderUnavailable + const RejectSeriesBound + const RejectSourceBound + const RejectTimingOverflow + const RejectUnknownEnum + const RejectUnmatchedSpan + const RejectWrongMetricFamily + func RejectionReasonOf(err error) (RejectionReason, bool) + type RuntimeBinding struct + Clock ClockIdentity + Collector plugin.Identity + ConfigurationDigest string + EvidenceClass EvidenceClass + FixtureDigest string + ImplementationDigest string + LockFingerprint string + ManifestFingerprint string + PlanFingerprint string + Platform ClientPlatform + ProfileFingerprint string + Sources []SourceIdentity + type RuntimeIdentity struct + Clock ClockIdentity + Collector plugin.Identity + ConfigurationDigest string + EvidenceClass EvidenceClass + FixtureDigest string + Generation uint64 + ImplementationDigest string + LockFingerprint string + ManifestFingerprint string + ObservabilityMode ObservabilityMode + PlanFingerprint string + Platform ClientPlatform + ProfileFingerprint string + Sources []SourceIdentity + func (identity RuntimeIdentity) Clone() RuntimeIdentity + type Sampling struct + Denominator uint32 + Numerator uint32 + Seed uint64 + type Series struct + Attempts uint64 + Counter *CounterAggregate + Coverage Coverage + CoverageReason CoverageReason + Dimensions []Dimension + Duration *DurationHistogram + Family MetricFamily + Gauge *GaugeAggregate + Metric Metric + SamplingDropped uint64 + Source uint16 + func (series Series) Clone() Series + type Service interface + Recorder func(source uint16) (Recorder, error) + type Snapshot struct + Configuration Configuration + Contract plugin.Contract + Drops []DropCounter + DurationBucketsNS []uint64 + Fingerprint string + FormatVersion uint64 + Identity RuntimeIdentity + Rejections []RejectionCounter + Schema string + Series []Series + func DecodeSnapshot(reader io.Reader) (Snapshot, error) + func (snapshot Snapshot) Clone() Snapshot + func (snapshot Snapshot) Validate() error + type SnapshotReader interface + Snapshot func() (Snapshot, error) + type SourceIdentity struct + ConfigurationDigest string + Descriptor plugin.Identity + EntryFingerprint string + ImplementationDigest string + type Span struct