Documentation ¶
Overview ¶
Package otlp contains types and functions used to convert OTLP Arrow logs into their OTLP representation.
Index ¶
Constants ¶
View Source
const None = -1
Variables ¶
View Source
var (
ErrBodyNotSparseUnion = errors.New("body is not a sparse union")
)
Functions ¶
Types ¶
type LogRecordIDs ¶
type LogRecordIDs struct { ID int // Numerical ID of the current span Resource *otlp.ResourceIds Scope *otlp.ScopeIds SchemaUrl int TimeUnixNano int ObservedTimeUnixNano int TraceID int SpanID int SeverityNumber int SeverityText int Body int BodyType int BodyStr int BodyInt int BodyDouble int BodyBool int BodyBytes int BodySer int DropAttributesCount int Flags int }
func SchemaToIDs ¶
func SchemaToIDs(schema *arrow.Schema) (*LogRecordIDs, error)
type RelatedData ¶
type RelatedData struct { LogRecordID uint16 ResAttrMapStore *otlp.Attributes16Store ScopeAttrMapStore *otlp.Attributes16Store LogRecordAttrMapStore *otlp.Attributes16Store }
func NewRelatedData ¶
func NewRelatedData() *RelatedData
func RelatedDataFrom ¶
func RelatedDataFrom(records []*record_message.RecordMessage) (relatedData *RelatedData, logsRecord *record_message.RecordMessage, err error)
func (*RelatedData) LogRecordIDFromDelta ¶
func (r *RelatedData) LogRecordIDFromDelta(delta uint16) uint16
Click to show internal directories.
Click to hide internal directories.