github.com/rudderlabs/rudder-go-kit@v0.30.0/stats/testhelper/tracemodel/model.go (about)

     1  package tracemodel
     2  
     3  import "time"
     4  
     5  type Span struct {
     6  	Name                   string                 `json:"Name"`
     7  	SpanContext            SpanContext            `json:"SpanContext"`
     8  	Parent                 Parent                 `json:"Parent"`
     9  	SpanKind               int                    `json:"SpanKind"`
    10  	StartTime              time.Time              `json:"StartTime"`
    11  	EndTime                time.Time              `json:"EndTime"`
    12  	Attributes             []Attributes           `json:"Attributes"`
    13  	Events                 any                    `json:"Events"`
    14  	Links                  any                    `json:"Links"`
    15  	Status                 Status                 `json:"Status"`
    16  	DroppedAttributes      int                    `json:"DroppedAttributes"`
    17  	DroppedEvents          int                    `json:"DroppedEvents"`
    18  	DroppedLinks           int                    `json:"DroppedLinks"`
    19  	ChildSpanCount         int                    `json:"ChildSpanCount"`
    20  	Resource               []Resource             `json:"Resource"`
    21  	InstrumentationLibrary InstrumentationLibrary `json:"InstrumentationLibrary"`
    22  }
    23  type SpanContext struct {
    24  	TraceID    string `json:"TraceID"`
    25  	SpanID     string `json:"SpanID"`
    26  	TraceFlags string `json:"TraceFlags"`
    27  	TraceState string `json:"TraceState"`
    28  	Remote     bool   `json:"Remote"`
    29  }
    30  type Parent struct {
    31  	TraceID    string `json:"TraceID"`
    32  	SpanID     string `json:"SpanID"`
    33  	TraceFlags string `json:"TraceFlags"`
    34  	TraceState string `json:"TraceState"`
    35  	Remote     bool   `json:"Remote"`
    36  }
    37  type Value struct {
    38  	Type  string `json:"Type"`
    39  	Value string `json:"Value"`
    40  }
    41  type Attributes struct {
    42  	Key   string `json:"Key"`
    43  	Value Value  `json:"Value"`
    44  }
    45  type Status struct {
    46  	Code        string `json:"Code"`
    47  	Description string `json:"Description"`
    48  }
    49  type Resource struct {
    50  	Key   string `json:"Key"`
    51  	Value Value  `json:"Value"`
    52  }
    53  type InstrumentationLibrary struct {
    54  	Name      string `json:"Name"`
    55  	Version   string `json:"Version"`
    56  	SchemaURL string `json:"SchemaURL"`
    57  }