normalize

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAgentContext added in v0.5.0

func ApplyAgentContext(observation inputpkg.Observation, context AgentContext) inputpkg.Observation

ApplyAgentContext adds inherited identity to a metadata-only observation.

func Build

func Build(observations []inputpkg.Observation, source string, generatedAt time.Time) model.Graph

func BuildWithOptions

func BuildWithOptions(observations []inputpkg.Observation, source string, generatedAt time.Time, options Options) model.Graph

func MetadataOnlyObservation added in v0.5.0

func MetadataOnlyObservation(observation inputpkg.Observation, sensitiveHMACKey []byte) inputpkg.Observation

MetadataOnlyObservation produces the bounded, content-free representation retained while the live receiver waits for parent spans from another OTLP export batch. Prompt content is reduced to presence plus an optional HMAC.

func SortVersions

func SortVersions(values []string) []string

SortVersions is exported for tests and adapters that merge graphs.

Types

type AgentContext added in v0.5.0

type AgentContext struct {
	// contains filtered or unexported fields
}

func AgentContextFromAttributes added in v0.5.0

func AgentContextFromAttributes(attributes map[string]string) AgentContext

AgentContextFromAttributes returns only an explicitly identified agent. Service-name fallback is deliberately excluded because it must not override an agent identity that can arrive later on a parent span.

func (AgentContext) Empty added in v0.5.0

func (context AgentContext) Empty() bool

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

type Options

type Options struct {
	SensitiveHMACKey []byte
}

Jump to

Keyboard shortcuts

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