otel_traces.gen.go 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 TableNameTrace = "otel_traces"
  9. // Trace mapped from table <otel_traces>
  10. type Trace struct {
  11. Timestamp time.Time `gorm:"column:Timestamp;type:DateTime64(9);not null" json:"timestamp"`
  12. TraceID string `gorm:"column:TraceId;type:String;not null" json:"trace_id"`
  13. SpanID string `gorm:"column:SpanId;type:String;not null" json:"span_id"`
  14. ParentSpanID string `gorm:"column:ParentSpanId;type:String;not null" json:"parent_span_id"`
  15. TraceState string `gorm:"column:TraceState;type:String;not null" json:"trace_state"`
  16. SpanName string `gorm:"column:SpanName;type:LowCardinality(String);not null" json:"span_name"`
  17. SpanKind string `gorm:"column:SpanKind;type:LowCardinality(String);not null" json:"span_kind"`
  18. ServiceName string `gorm:"column:ServiceName;type:LowCardinality(String);not null" json:"service_name"`
  19. ResourceAttribute map[string]string `gorm:"column:ResourceAttributes;type:Map(LowCardinality(String), String);not null" json:"resource_attributes"`
  20. SpanAttribute map[string]string `gorm:"column:SpanAttributes;type:Map(LowCardinality(String), String);not null" json:"span_attributes"`
  21. ScopeName string `gorm:"column:ScopeName;type:String;not null" json:"scope_name"`
  22. ScopeVersion string `gorm:"column:ScopeVersion;type:String;not null" json:"scope_version"`
  23. Duration uint64 `gorm:"column:Duration;type:UInt64;not null" json:"duration"`
  24. StatusCode string `gorm:"column:StatusCode;type:LowCardinality(String);not null" json:"status_code"`
  25. StatusMessage string `gorm:"column:StatusMessage;type:String;not null" json:"status_message"`
  26. EventsTimestamp []time.Time `gorm:"column:Events.Timestamp;type:Array(DateTime64(9));not null" json:"events._timestamp"`
  27. EventsName []string `gorm:"column:Events.Name;type:Array(LowCardinality(String));not null" json:"events._name"`
  28. EventsAttribute []map[string]string `gorm:"column:Events.Attributes;type:Array(Map(LowCardinality(String), String));not null" json:"events._attributes"`
  29. LinksTraceID []string `gorm:"column:Links.TraceId;type:Array(String);not null" json:"links._trace_id"`
  30. LinksSpanID []string `gorm:"column:Links.SpanId;type:Array(String);not null" json:"links._span_id"`
  31. LinksTraceState []string `gorm:"column:Links.TraceState;type:Array(String);not null" json:"links._trace_state"`
  32. LinksAttribute []map[string]string `gorm:"column:Links.Attributes;type:Array(Map(LowCardinality(String), String));not null" json:"links._attributes"`
  33. AppAlias string `gorm:"column:AppAlias;type:LowCardinality(String);not null" json:"app_alias"`
  34. }
  35. // TableName Trace's table name
  36. func (*Trace) TableName() string {
  37. return TableNameTrace
  38. }