logger/model.go

34 lines
807 B
Go
Raw Normal View History

2023-11-23 07:39:52 +00:00
package logger
type SignozConfiguration struct {
2023-11-27 08:45:12 +00:00
Logs SignozLogsConfig
ServiceName string // Name server
Traces SignozTraceConfig
}
type SignozLogsConfig struct {
EndPoint string // Example: http://signoz:2255
}
type SignozTraceConfig struct {
GRPCEndPoint string
Insecure bool
2023-11-23 07:39:52 +00:00
}
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"`
}