1234567891011121314151617181920212223242526272829303132 |
- // 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 TableNameTracesError = "otel_traces_error"
- // TracesError mapped from table <otel_traces_error>
- type TracesError struct {
- Timestamp time.Time `gorm:"column:Timestamp;type:DateTime64(3);not null;comment:时间" json:"timestamp"` // 时间
- TraceID string `gorm:"column:TraceId;type:String;not null;comment:TraceId" json:"trace_id"` // TraceId
- SpanID string `gorm:"column:SpanId;type:String;not null;comment:SpanId" json:"span_id"` // SpanId
- ParentSpanID string `gorm:"column:ParentSpanId;type:String;not null" json:"parent_span_id"`
- 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"`
- SpanAttribute map[string]string `gorm:"column:SpanAttributes;type:Map(LowCardinality(String), String);not null" json:"span_attributes"`
- ServiceName string `gorm:"column:ServiceName;type:LowCardinality(String);not null" json:"service_name"`
- 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"`
- AppAlias string `gorm:"column:AppAlias;type:LowCardinality(String);not null" json:"app_alias"`
- }
- // TableName TracesError's table name
- func (*TracesError) TableName() string {
- return TableNameTracesError
- }
|