Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIndexNamePrefixFromApiKey ¶
func GetIndexNamePrefixFromApiKey(apikey string)
generate Documents index
func InsertBulk ¶
func InsertBulk(es *elasticsearch.Client, spans []CustomSpan) error
Types ¶
type CustomSpan ¶
type CustomSpan struct { ActivityId string `json:"activityId"` ParentId *string `json:"parentId"` TraceId string `json:"traceId"` SpanId string `json:"spanId"` SourceName string `json:"sourceName"` Status string `json:"status"` Duration time.Duration `json:"duration"` Kind int `json:"kind"` Timestamp time.Time `json:"timestamp"` Tags map[string]interface{} `json:"tags"` }
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an implementation
func New ¶
func New(hosts []string, apiKey string, maxBatchSize int, verbose bool, interval int) (*Exporter, error)
New creates an Exporter with the passed options.
func (*Exporter) ExportSpans ¶
ExportSpans writes spans in custom format
Click to show internal directories.
Click to hide internal directories.