livedebuggingconsumer

package
v1.7.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package livedebuggingconsumer implements an OpenTelemetry Collector consumer which can be used to send live debugging data to Alloy UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTextLogsMarshaler

func NewTextLogsMarshaler() plog.Marshaler

NewTextLogsMarshaler returns a plog.Marshaler to encode to OTLP text bytes.

func NewTextMetricsMarshaler

func NewTextMetricsMarshaler() pmetric.Marshaler

NewTextMetricsMarshaler returns a pmetric.Marshaler to encode to OTLP text bytes.

func NewTextTracesMarshaler

func NewTextTracesMarshaler() ptrace.Marshaler

NewTextTracesMarshaler returns a ptrace.Marshaler to encode to OTLP text bytes.

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

func New

func New(debugDataPublisher livedebugging.DebugDataPublisher, componentID string) *Consumer

func (*Consumer) Capabilities

func (c *Consumer) Capabilities() otelconsumer.Capabilities

Capabilities implements otelcol.Consumer.

func (*Consumer) ConsumeLogs

func (c *Consumer) ConsumeLogs(ctx context.Context, ld plog.Logs) error

ConsumeLogs implements otelcol.ConsumeLogs.

func (*Consumer) ConsumeMetrics

func (c *Consumer) ConsumeMetrics(ctx context.Context, md pmetric.Metrics) error

ConsumeMetrics implements otelcol.ConsumeMetrics.

func (*Consumer) ConsumeTraces

func (c *Consumer) ConsumeTraces(ctx context.Context, td ptrace.Traces) error

ConsumeTraces implements otelcol.ConsumeTraces.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL