structs

package
v0.0.0-...-41ce75c Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

type Span struct {
	Name         string                 `validate:"required"`
	Cid          string                 `validate:"required"`
	Resource     string                 `validate:"required"`
	Version      string                 `validate:"required"`
	OrgId        string                 `validate:"required"`
	Line         int                    `validate:"required"`
	FuncName     string                 `validate:"required"`
	FileName     string                 `validate:"required"`
	Custom       map[string]interface{} `validate:"required"`
	InternalSpan zipkin.Span
}

func (*Span) Error

func (s *Span) Error(err error) *Span

func (*Span) Finish

func (s *Span) Finish()

func (*Span) Tag

func (s *Span) Tag(k string, v interface{}) *Span

type SpanConfig

type SpanConfig interface {
	Apply(ctx context.Context, s *Span)
}

func WithCustom

func WithCustom(k string, v interface{}) SpanConfig

func WithName

func WithName(v string) SpanConfig

func WithOrgId

func WithOrgId(v string) SpanConfig

Jump to

Keyboard shortcuts

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