otel_traces_error.gen.go 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package models
  5. import (
  6. "time"
  7. )
  8. const TableNameTracesError = "otel_traces_error"
  9. // TracesError mapped from table <otel_traces_error>
  10. type TracesError struct {
  11. Timestamp time.Time `gorm:"column:Timestamp;type:DateTime64(3);not null;comment:时间" json:"timestamp"` // 时间
  12. TraceID string `gorm:"column:TraceId;type:String;not null;comment:TraceId" json:"trace_id"` // TraceId
  13. SpanID string `gorm:"column:SpanId;type:String;not null;comment:SpanId" json:"span_id"` // SpanId
  14. ParentSpanID string `gorm:"column:ParentSpanId;type:String;not null" json:"parent_span_id"`
  15. SpanName string `gorm:"column:SpanName;type:LowCardinality(String);not null" json:"span_name"`
  16. SpanKind string `gorm:"column:SpanKind;type:LowCardinality(String);not null" json:"span_kind"`
  17. SpanAttribute map[string]string `gorm:"column:SpanAttributes;type:Map(LowCardinality(String), String);not null" json:"span_attributes"`
  18. ServiceName string `gorm:"column:ServiceName;type:LowCardinality(String);not null" json:"service_name"`
  19. Duration uint64 `gorm:"column:Duration;type:UInt64;not null" json:"duration"`
  20. StatusCode string `gorm:"column:StatusCode;type:LowCardinality(String);not null" json:"status_code"`
  21. StatusMessage string `gorm:"column:StatusMessage;type:String;not null" json:"status_message"`
  22. AppAlias string `gorm:"column:AppAlias;type:LowCardinality(String);not null" json:"app_alias"`
  23. }
  24. // TableName TracesError's table name
  25. func (*TracesError) TableName() string {
  26. return TableNameTracesError
  27. }