spanpoint.go 453 B

123456789101112131415161718192021222324
  1. package model
  2. // const for SpanPoint
  3. const ()
  4. // SamplePoint SamplePoint
  5. type SamplePoint struct {
  6. TraceID uint64
  7. SpanID uint64
  8. Value int64
  9. }
  10. // SpanPoint contains time series
  11. type SpanPoint struct {
  12. Timestamp int64
  13. ServiceName string
  14. OperationName string
  15. PeerService string
  16. SpanKind string
  17. AvgDuration SamplePoint // random sample point
  18. MaxDuration SamplePoint
  19. MinDuration SamplePoint
  20. Errors []SamplePoint
  21. }