kafka

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package kafka implements a Kafka reporter to send spans to a Kafka server/cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReporter

func NewReporter(address []string, options ...ReporterOption) (reporter.Reporter, error)

NewReporter returns a new Kafka-backed Reporter. address should be a slice of TCP endpoints of the form "host:port".

Types

type ReporterOption

type ReporterOption func(c *kafkaReporter)

ReporterOption sets a parameter for the kafkaReporter

func Logger

func Logger(logger *log.Logger) ReporterOption

Logger sets the logger used to report errors in the collection process.

func Producer

Producer sets the producer used to produce to Kafka.

func Topic

func Topic(t string) ReporterOption

Topic sets the kafka topic to attach the reporter producer on.

Jump to

Keyboard shortcuts

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