logger/model.go

24 lines
642 B
Go
Raw Normal View History

2023-11-23 07:39:52 +00:00
package logger
type SignozConfiguration struct {
HttpEndPoint string // Example: http://signoz:2255
ServiceName string // Name server
}
type SignozLogPayload struct {
SeverityLevel int `json:"severity_level"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
// PRIVATE
type logData struct {
SeverityNumber int `json:"severity_number"`
SeverityText string `json:"severity_text"`
Timestamp int64 `json:"timestamp"`
TraceID string `json:"trace_id"`
SpanID string `json:"span_id"`
Message string `json:"message"`
Source string `json:"source"`
}