// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package models import ( "time" ) const TableNameTrace = "otel_traces" // Trace mapped from table type Trace struct { Timestamp time.Time `gorm:"column:Timestamp;type:DateTime64(9);not null" json:"timestamp"` TraceID string `gorm:"column:TraceId;type:String;not null" json:"trace_id"` SpanID string `gorm:"column:SpanId;type:String;not null" json:"span_id"` ParentSpanID string `gorm:"column:ParentSpanId;type:String;not null" json:"parent_span_id"` TraceState string `gorm:"column:TraceState;type:String;not null" json:"trace_state"` SpanName string `gorm:"column:SpanName;type:LowCardinality(String);not null" json:"span_name"` SpanKind string `gorm:"column:SpanKind;type:LowCardinality(String);not null" json:"span_kind"` ServiceName string `gorm:"column:ServiceName;type:LowCardinality(String);not null" json:"service_name"` ResourceAttribute map[string]string `gorm:"column:ResourceAttributes;type:Map(LowCardinality(String), String);not null" json:"resource_attributes"` SpanAttribute map[string]string `gorm:"column:SpanAttributes;type:Map(LowCardinality(String), String);not null" json:"span_attributes"` ScopeName string `gorm:"column:ScopeName;type:String;not null" json:"scope_name"` ScopeVersion string `gorm:"column:ScopeVersion;type:String;not null" json:"scope_version"` Duration uint64 `gorm:"column:Duration;type:UInt64;not null" json:"duration"` StatusCode string `gorm:"column:StatusCode;type:LowCardinality(String);not null" json:"status_code"` StatusMessage string `gorm:"column:StatusMessage;type:String;not null" json:"status_message"` EventsTimestamp []time.Time `gorm:"column:Events.Timestamp;type:Array(DateTime64(9));not null" json:"events._timestamp"` EventsName []string `gorm:"column:Events.Name;type:Array(LowCardinality(String));not null" json:"events._name"` EventsAttribute []map[string]string `gorm:"column:Events.Attributes;type:Array(Map(LowCardinality(String), String));not null" json:"events._attributes"` LinksTraceID []string `gorm:"column:Links.TraceId;type:Array(String);not null" json:"links._trace_id"` LinksSpanID []string `gorm:"column:Links.SpanId;type:Array(String);not null" json:"links._span_id"` LinksTraceState []string `gorm:"column:Links.TraceState;type:Array(String);not null" json:"links._trace_state"` LinksAttribute []map[string]string `gorm:"column:Links.Attributes;type:Array(Map(LowCardinality(String), String));not null" json:"links._attributes"` AppAlias string `gorm:"column:AppAlias;type:LowCardinality(String);not null" json:"app_alias"` } // TableName Trace's table name func (*Trace) TableName() string { return TableNameTrace }