Documentation
¶
Overview ¶
Package otlpingest decodes OTLP/HTTP trace exports into stored spans.
Index ¶
Constants ¶
View Source
const MaxSpansPerRequest = 5000
MaxSpansPerRequest bounds one export, so a single request cannot be an unbounded write.
Variables ¶
View Source
var ErrNoValidSpans = errors.New("otlp: no span had a 16 byte trace id and an 8 byte span id")
ErrNoValidSpans is returned when an export held spans but none had valid ids, so the sender learns its ids are malformed instead of seeing success.
View Source
var ErrUnsupportedType = errors.New("otlp: content type must be application/x-protobuf or application/json")
ErrUnsupportedType is returned for a content type that is neither OTLP protobuf nor OTLP JSON.
Functions ¶
func DecodeTraces ¶
DecodeTraces parses one export request and returns its spans stamped with resourceID. The sender's own service.name is kept as an attribute but never decides which app the spans belong to.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.