1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // 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 TableNameTraceLog = "otel_logs"
- // Trace mapped from table <otel_traces>
- //TODO: 未修改
- type TraceLog struct {
- Timestamp time.Time `gorm:"column:Timestamp;not null" json:"timestamp"`
- TraceID string `gorm:"column:TraceId;not null" json:"trace_id"`
- SpanID string `gorm:"column:SpanId;not null" json:"span_id"`
- ParentSpanID string `gorm:"column:ParentSpanId;not null" json:"parent_span_id"`
- TraceState string `gorm:"column:TraceState;not null" json:"trace_state"`
- SpanName string `gorm:"column:SpanName;not null" json:"span_name"`
- SpanKind string `gorm:"column:SpanKind;not null" json:"span_kind"`
- ServiceName string `gorm:"column:ServiceName;not null" json:"service_name"`
- ResourceAttribute map[string]string `gorm:"column:ResourceAttributes;not null" json:"resource_attributes"`
- SpanAttribute map[string]string `gorm:"column:SpanAttributes;not null" json:"span_attributes"`
- Duration int64 `gorm:"column:Duration;not null" json:"duration"`
- StatusCode string `gorm:"column:StatusCode;not null" json:"status_code"`
- StatusMessage string `gorm:"column:StatusMessage;not null" json:"status_message"`
- EventsTimestamp []time.Time `gorm:"column:Events.Timestamp;not null" json:"events_timestamp"`
- EventsName []string `gorm:"column:Events.Name;not null" json:"events_name"`
- EventsAttribute []map[string]string `gorm:"column:Events.Attributes;not null" json:"events_attributes"`
- LinksTraceID []string `gorm:"column:Links.TraceId;not null" json:"links_trace_id"`
- LinksSpanID []string `gorm:"column:Links.SpanId;not null" json:"links_span_id"`
- LinksTraceState []string `gorm:"column:Links.TraceState;not null" json:"links_trace_state"`
- LinksAttribute []map[string]string `gorm:"column:Links.Attributes;not null" json:"links_attributes"`
- HTTPCode int32 `gorm:"column:HttpCode;not null" json:"http_code"`
- HTTPMethod string `gorm:"column:HttpMethod;not null" json:"http_method"`
- HTTPURL string `gorm:"column:HttpURL;not null" json:"http_url"`
- ContainerID string `gorm:"column:ContainerId;not null" json:"container_id"`
- SrcIP string `gorm:"column:srcIP;not null" json:"src_ip"`
- SrcPort int32 `gorm:"column:srcPort;not null" json:"src_port"`
- TargetIP string `gorm:"column:targetIP;not null" json:"target_ip"`
- TargetPort int32 `gorm:"column:targetPort;not null" json:"target_port"`
- RPCMethod string `gorm:"column:rpcMethod;not null" json:"rpc_method"`
- DbStatement string `gorm:"column:dbStatement;not null" json:"db_statement"`
- DbConnectionString string `gorm:"column:dbConnectionString;not null" json:"db_connection_string"`
- AppAlias string `gorm:"column:AppAlias;not null" json:"app_alias"`
- }
- // TableName Trace's table name
- func (*TraceLog) TableName() string {
- return TableNameTraceLog
- }
|