Documentation ¶
Overview ¶
Adapted from https://github.com/open-telemetry/opentelemetry-go/blob/e9aaa04b8f88b0f8158bd27f72e57d33878f5bdd/trace/trace.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
IDGenerator allows custom generators for TraceID and SpanID.
type MetricsAdapter ¶
type MetricsAdapter interface { ID() string Script() string CollectIntervalSec() int64 Adapt(rh *ResourceHelper, r *types.Record) ([]*metricpb.ResourceMetrics, error) }
func HTTPMetrics ¶
func HTTPMetrics(clusterName, pixieClusterID string, collectIntervalSec int64) MetricsAdapter
func JVM ¶
func JVM(clusterName, pixieClusterID string, collectIntervalSec int64) MetricsAdapter
type ResourceHelper ¶ added in v1.3.0
type ResourceHelper struct {
// contains filtered or unexported fields
}
func NewResourceHelper ¶ added in v1.3.0
func NewResourceHelper(excludePods, excludeNamespaces string) (*ResourceHelper, error)
type SpanID ¶
type SpanID [8]byte
SpanID is a unique identity of a adapter in a trace.
func SpanIDFromHex ¶
SpanIDFromHex returns a SpanID from a hex string if it is compliant with the w3c trace-context specification. See more at https://www.w3.org/TR/trace-context/#parent-id
type SpansAdapter ¶
type SpansAdapter interface { ID() string Script() string CollectIntervalSec() int64 Adapt(rh *ResourceHelper, r *types.Record) ([]*tracepb.ResourceSpans, error) }
func HTTPSpans ¶
func HTTPSpans(clusterName, pixieClusterID string, collectIntervalSec, spanLimit int64) SpansAdapter
func MySQL ¶
func MySQL(clusterName, pixieClusterID string, collectIntervalSec, spanLimit int64) SpansAdapter
func PgSQL ¶
func PgSQL(clusterName, pixieClusterID string, collectIntervalSec, spanLimit int64) SpansAdapter
type TraceID ¶
type TraceID [16]byte
TraceID is a unique identity of a trace. nolint:golint
func TraceIDFromHex ¶
TraceIDFromHex returns a TraceID from a hex string if it is compliant with the W3C trace-context specification. See more at https://www.w3.org/TR/trace-context/#trace-id nolint:golint