models

package
v0.0.0-...-49de588 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K6Prefix     = 0756 // Being 075 the ASCII code for 'K' :)
	K6Code_Cloud = 12   // To ingest and process the related spans in k6 Cloud.
	K6Code_Local = 33   // To not ingest and process the related spans, b/c they are part of a non-cloud run.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Propagator

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

func NewPropagator

func NewPropagator(propagators []PropagatorName) Propagator

func (Propagator) GenerateHeaders

func (p Propagator) GenerateHeaders(traceID string) http.Header

type PropagatorName

type PropagatorName string
const (
	PropagatorW3C    PropagatorName = "w3c"
	HeaderNameW3C    PropagatorName = "traceparent"
	PropagatorB3     PropagatorName = "b3"
	HeaderNameB3     PropagatorName = "b3"
	PropagatorJaeger PropagatorName = "jaeger"
	HeaderNameJaeger PropagatorName = "uber-trace-id"
)

type Test

type Test struct {
	ID   string
	Name string
}

type TestRun

type TestRun struct {
	ID      string
	TraceID string
}

type TraceID

type TraceID struct {
	Prefix            int16
	Code              int8
	UnixTimestampNano uint64
}

func DecodeTraceID

func DecodeTraceID(buf []byte) *TraceID

func (*TraceID) Encode

func (t *TraceID) Encode() (string, []byte, error)

func (*TraceID) IsValid

func (t *TraceID) IsValid() bool

func (*TraceID) IsValidCloud

func (t *TraceID) IsValidCloud() bool

type TracetestRun

type TracetestRun struct {
	Test    Test
	TestRun TestRun
}

func NewRun

func NewRun(cliResponse string) *TracetestRun

Jump to

Keyboard shortcuts

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