mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-27 22:52:02 +08:00
21 lines
294 B
Go
21 lines
294 B
Go
package telemetrystore
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type QueryEvent struct {
|
|
Query string
|
|
QueryArgs []any
|
|
StartTime time.Time
|
|
Err error
|
|
}
|
|
|
|
func NewQueryEvent(query string, args []any) *QueryEvent {
|
|
return &QueryEvent{
|
|
Query: query,
|
|
QueryArgs: args,
|
|
StartTime: time.Now(),
|
|
}
|
|
}
|