propagation

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package propagation holds the required function signatures for Injection and Extraction. It also contains decoder and encoder of SkyWalking propagation protocol.

Index

Constants

View Source
const (
	Header string = "sw6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor func() (string, error)

Extractor is a tool specification which define how to extract trace parent context from propagation context

type Injector

type Injector func(header string) error

Injector is a tool specification which define how to inject trace context into propagation context

type SpanContext

type SpanContext struct {
	TraceID                 []int64
	ParentSegmentID         []int64
	ParentSpanID            int32
	ParentServiceInstanceID int32
	EntryServiceInstanceID  int32
	NetworkAddressID        int32
	EntryEndpointID         int32
	ParentEndpointID        int32
	Sample                  int8
	NetworkAddress          string
	EntryEndpoint           string
	ParentEndpoint          string
}

SpanContext defines propagation specification of SkyWalking

func (*SpanContext) DecodeSW6

func (tc *SpanContext) DecodeSW6(header string) error

DecodeSW6 converts string header to SpanContext

func (*SpanContext) EncodeSW6

func (tc *SpanContext) EncodeSW6() string

EncodeSW6 converts SpanContext to string header

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳