fanoutconsumer

package module
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 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 fans out 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 mutable data.

func NewMetrics

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

NewMetrics wraps multiple metrics consumers in a single one. It fans out 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 mutable data.

func NewProfiles

NewProfiles wraps multiple profile consumers in a single one. It fans out 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 mutable data.

func NewTraces

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

NewTraces wraps multiple trace consumers in a single one. It fans out 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 mutable data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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