middleware

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 2 Imported by: 0

README

go-enlight-middleware

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NilSpan

type NilSpan struct{}

func (*NilSpan) AddStringAttribute added in v0.4.0

func (s *NilSpan) AddStringAttribute(name, value string)

func (*NilSpan) End

func (s *NilSpan) End()

type OpenCensusTracer

type OpenCensusTracer struct{}

func (*OpenCensusTracer) SpanFromContext added in v0.4.0

func (t *OpenCensusTracer) SpanFromContext(ctx context.Context) Span

func (*OpenCensusTracer) StartSpan

func (t *OpenCensusTracer) StartSpan(ctx context.Context, resourceName string) (context.Context, Span)

type Span

type Span interface {
	End()
	AddStringAttribute(name, value string)
}

type Tracer

type Tracer interface {
	StartSpan(ctx context.Context, resourceName string) (context.Context, Span)
	SpanFromContext(ctx context.Context) Span
}

Jump to

Keyboard shortcuts

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