34 lines
807 B
Go
34 lines
807 B
Go
package logger
|
|
|
|
type SignozConfiguration struct {
|
|
Logs SignozLogsConfig
|
|
ServiceName string // Name server
|
|
Traces SignozTraceConfig
|
|
}
|
|
|
|
type SignozLogsConfig struct {
|
|
EndPoint string // Example: http://signoz:2255
|
|
}
|
|
|
|
type SignozTraceConfig struct {
|
|
GRPCEndPoint string
|
|
Insecure bool
|
|
}
|
|
|
|
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"`
|
|
}
|