zipkinproxy

package module
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 27 Imported by: 0

README

dd-zipkin-proxy

A simple zipkin to datadog proxy for datadogs new apm feature. Works best with zipkins http thrift codec. The json codec might have some problems.

Example

On how to use the proxy, see the example directory for a simple example.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCorrectSpans

func ErrorCorrectSpans(inputCh <-chan proxy.Span, outputCh chan<- proxy.Trace)

func Main

func Main(spanConverter SpanConverter)

func MainWithRouting added in v1.8.0

func MainWithRouting(routing Routing, spanConverter SpanConverter)

Types

type Id added in v1.7.0

type Id = proxy.Id

type Routing added in v1.8.0

type Routing func(*httprouter.Router) http.Handler

type SpanConverter added in v1.6.0

type SpanConverter func(span proxy.Span) (proxy.Span, error)

type SpanSlice added in v1.8.1

type SpanSlice proxy.Trace

func (*SpanSlice) Append added in v1.8.1

func (spans *SpanSlice) Append(span proxy.Span)

func (SpanSlice) GetSpanRef added in v1.8.1

func (spans SpanSlice) GetSpanRef(spanId Id) *proxy.Span

func (SpanSlice) HasSpan added in v1.8.1

func (spans SpanSlice) HasSpan(id proxy.Id) bool

type SpansBuffer

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

func NewSpansBuffer

func NewSpansBuffer(capacity uint) *SpansBuffer

func (*SpansBuffer) ReadFrom

func (buffer *SpansBuffer) ReadFrom(tracesCh <-chan proxy.Trace)

func (*SpansBuffer) ToSlice

func (buffer *SpansBuffer) ToSlice() []proxy.Span

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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