fanoutconsumer

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fanoutconsumer contains implementations of Traces/Metrics/Logs consumers that fan out the data to multiple other consumers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogs

func NewLogs(lcs []consumer.Logs) consumer.Logs

NewLogs wraps multiple log consumers in a single one. It fanouts the incoming data to all the consumers, and does smart routing:

  • Clones only to the consumer that needs to mutate the data.
  • If all consumers needs to mutate the data one will get the original data.

func NewMetrics

func NewMetrics(mcs []consumer.Metrics) consumer.Metrics

NewMetrics wraps multiple metrics consumers in a single one. It fanouts the incoming data to all the consumers, and does smart routing:

  • Clones only to the consumer that needs to mutate the data.
  • If all consumers needs to mutate the data one will get the original data.

func NewTraces

func NewTraces(tcs []consumer.Traces) consumer.Traces

NewTraces wraps multiple trace consumers in a single one. It fanouts the incoming data to all the consumers, and does smart routing:

  • Clones only to the consumer that needs to mutate the data.
  • If all consumers needs to mutate the data one will get the original data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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