Documentation ¶
Overview ¶
Package reporter holds the Reporter interface which is used by the Zipkin Tracer to send finished spans.
Subpackages of package reporter contain officially supported standard reporter implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONSerializer ¶ added in v0.1.6
type JSONSerializer struct{}
JSONSerializer implements the default JSON encoding SpanSerializer.
func (JSONSerializer) ContentType ¶ added in v0.1.6
func (JSONSerializer) ContentType() string
ContentType returns the ContentType needed for this encoding.
type Reporter ¶
type Reporter interface { Send(model.SpanModel) // Send Span data to the reporter Close() error // Close the reporter }
Reporter interface can be used to provide the Zipkin Tracer with custom implementations to publish Zipkin Span data.
func NewNoopReporter ¶
func NewNoopReporter() Reporter
NewNoopReporter returns a no-op Reporter implementation.
Directories ¶
Path | Synopsis |
---|---|
Package amqp implements a RabbitMq reporter to send spans to a Rabbit server/cluster.
|
Package amqp implements a RabbitMq reporter to send spans to a Rabbit server/cluster. |
Package http implements a HTTP reporter to send spans to Zipkin V2 collectors.
|
Package http implements a HTTP reporter to send spans to Zipkin V2 collectors. |
Package kafka implements a Kafka reporter to send spans to a Kafka server/cluster.
|
Package kafka implements a Kafka reporter to send spans to a Kafka server/cluster. |
Package log implements a reporter to send spans in V2 JSON format to the Go standard Logger.
|
Package log implements a reporter to send spans in V2 JSON format to the Go standard Logger. |
Package recorder implements a reporter to record spans in v2 format.
|
Package recorder implements a reporter to record spans in v2 format. |
Click to show internal directories.
Click to hide internal directories.