Documentation ¶
Overview ¶
Package record provides functions for converting pdata to BindPlane records
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { Timestamp time.Time `json:"timestamp"` Body interface{} `json:"body"` Severity string `json:"severity"` Attributes map[string]interface{} `json:"attributes"` Resource map[string]interface{} `json:"resource"` }
Log is a log record sent to bindplane
type Metric ¶
type Metric struct { Name string `json:"name"` Timestamp time.Time `json:"timestamp"` StartTimestamp time.Time `json:"start_timestamp,omitempty"` Value interface{} `json:"value"` Unit string `json:"unit"` Type string `json:"type"` Attributes map[string]interface{} `json:"attributes"` Resource map[string]interface{} `json:"resource"` }
Metric is a metric record sent to bindplane
func ConvertMetrics ¶
ConvertMetrics gets metric records from pmetrics
func (*Metric) AttributeString ¶ added in v1.3.0
AttributeString returns an Attribute as a string or the defaultValue if either an attribute with that name does not exist or an attribute with that name does exist but is not a string.
type Trace ¶
type Trace struct { Name string `json:"name"` TraceID string `json:"trace_id"` SpanID string `json:"span_id"` ParentSpanID string `json:"parent_span_id"` Start time.Time `json:"start"` End time.Time `json:"end"` Attributes map[string]interface{} `json:"attributes"` Resource map[string]interface{} `json:"resource"` }
Trace is a trace record sent to bindplane
func ConvertTraces ¶
ConvertTraces gets trace records from ptraces
Click to show internal directories.
Click to hide internal directories.