internal

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSimpleW3CFormatParser = SimpleW3CFormatParser{}

Functions

This section is empty.

Types

type Member

type Member struct {
	Key   string
	Value string
}

type SimpleW3CFormatParser

type SimpleW3CFormatParser struct{}

SimpleW3CFormatParser is a simple w3c format parser which ignores many format constraint

func (SimpleW3CFormatParser) ParseTraceParent

func (w SimpleW3CFormatParser) ParseTraceParent(traceParent string) (TraceParent, error)

ParseTraceParent parse format like 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01-suffix

func (SimpleW3CFormatParser) ParseTraceState

func (w SimpleW3CFormatParser) ParseTraceState(traceState string) (TraceState, error)

ParseTraceState ignores key value format constraint. All k-v pair will be accepted By specification traceState should be parsed through

type TraceParent

type TraceParent struct {
	Version      int
	TraceID      string
	ParentSpanID string
	TraceFlags   int
}

type TraceState

type TraceState struct {
	Members []Member
}

func (*TraceState) GetAppID

func (t *TraceState) GetAppID() string

func (*TraceState) GetOrigin

func (t *TraceState) GetOrigin() string

Jump to

Keyboard shortcuts

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