Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultServerUrl = "http://localhost:3000" ServerURL = "serverUrl" ServerPath = "serverPath" )
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 ¶
View Source
var ( ENV_SERVER_URL = "XK6_TRACETEST_SERVER_URL" ENV_SERVER_PATH = "XK6_TRACETEST_SERVER_PATH" )
Functions ¶
func NewSpanContext ¶
func NewSpanContext(traceID string) trace.SpanContext
Types ¶
type ApiOptions ¶ added in v0.1.3
func NewApiOptions ¶ added in v0.1.3
type HttpClientOptions ¶ added in v0.1.3
type HttpClientOptions struct { Propagator Propagator Tracetest TracetestOptions }
func NewHttpClientOptions ¶ added in v0.1.3
type Job ¶
type Job struct { TraceID string TestID string VariableName string JobType JobType Request Request Run *TracetestRun JobStatus JobStatus TracetestOptions TracetestOptions Error string }
func (Job) HandleRunResponse ¶
func (Job) IsSuccessful ¶
type OutputConfig ¶ added in v0.1.3
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 ( TraceContext PropagatorName = "tracecontext" Baggage PropagatorName = "baggage" PropagatorB3 PropagatorName = "b3" OT PropagatorName = "ot" Jaeger PropagatorName = "jaeger" XRay PropagatorName = "xray" )
type TracetestOptions ¶ added in v0.1.3
func NewTracetestOptions ¶ added in v0.1.3
func NewTracetestOptions(runTime *goja.Runtime, params *goja.Object) TracetestOptions
type TracetestRun ¶
func (*TracetestRun) IsSuccessful ¶
func (tr *TracetestRun) IsSuccessful() bool
func (*TracetestRun) Summary ¶
func (tr *TracetestRun) Summary(baseUrl string) string
Click to show internal directories.
Click to hide internal directories.