Documentation
¶
Index ¶
- type Attrs
- type Bridge
- type BridgeConfig
- type ContextServiceInvoker
- type LogEmitter
- type LogRecord
- type MetricEmitter
- type MetricKind
- type MetricRecord
- type MetricRecorder
- type NoopSink
- type ServiceInvokerSink
- type SnapshotRecorder
- type SpanEvent
- type SpanRecorder
- type TelemetrySink
- type TraceAnnotator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func NewBridge ¶
func NewBridge(sink TelemetrySink, config BridgeConfig) *Bridge
type BridgeConfig ¶
type ContextServiceInvoker ¶
type LogEmitter ¶
type MetricEmitter ¶
type MetricEmitter interface {
EmitMetrics(context.Context, MetricRecorder) error
}
type MetricKind ¶
type MetricKind string
const ( MetricCounter MetricKind = "counter" MetricGauge MetricKind = "gauge" MetricHistogram MetricKind = "histogram" )
type MetricRecord ¶
type MetricRecorder ¶
type NoopSink ¶
type NoopSink struct{}
func (NoopSink) RecordMetrics ¶
func (NoopSink) RecordMetrics(context.Context, []MetricRecord) error
type ServiceInvokerSink ¶
type ServiceInvokerSink struct {
// contains filtered or unexported fields
}
func NewServiceInvokerSink ¶
func NewServiceInvokerSink(invoker ContextServiceInvoker) *ServiceInvokerSink
func (*ServiceInvokerSink) RecordLogs ¶
func (s *ServiceInvokerSink) RecordLogs(ctx context.Context, records []LogRecord) error
func (*ServiceInvokerSink) RecordMetrics ¶
func (s *ServiceInvokerSink) RecordMetrics(ctx context.Context, records []MetricRecord) error
func (*ServiceInvokerSink) RecordSpanEvents ¶
func (s *ServiceInvokerSink) RecordSpanEvents(ctx context.Context, records []SpanEvent) error
type SnapshotRecorder ¶
type SnapshotRecorder struct {
// contains filtered or unexported fields
}
func NewSnapshotRecorder ¶
func NewSnapshotRecorder() *SnapshotRecorder
func (*SnapshotRecorder) Counter ¶
func (r *SnapshotRecorder) Counter(name string, value float64, attrs Attrs)
func (*SnapshotRecorder) Gauge ¶
func (r *SnapshotRecorder) Gauge(name string, value float64, attrs Attrs)
func (*SnapshotRecorder) Histogram ¶
func (r *SnapshotRecorder) Histogram(name string, value float64, attrs Attrs)
func (*SnapshotRecorder) Metrics ¶
func (r *SnapshotRecorder) Metrics() []MetricRecord
type SpanRecorder ¶
type TelemetrySink ¶
type TraceAnnotator ¶
type TraceAnnotator interface {
AnnotateSpan(context.Context, SpanRecorder)
}
Click to show internal directories.
Click to hide internal directories.