verify mongo py compatability
This commit is contained in:
parent
33471fac2d
commit
86609d9347
@ -1,15 +0,0 @@
|
||||
package ctx_keys
|
||||
|
||||
// type Key uint32
|
||||
|
||||
// // The operations fsnotify can trigger; see the documentation on [Watcher] for a
|
||||
// // full description, and check them with [Event.Has].
|
||||
// const (
|
||||
// PrometheusPrefix Key = 1 << iota
|
||||
// )
|
||||
|
||||
// var keyMap = map[Key]reflect.Type{}
|
||||
|
||||
// func get(ctx context.Context, key Key) (val any, ok bool) {
|
||||
// ctx.Value()
|
||||
// }
|
@ -93,10 +93,7 @@ const (
|
||||
recordKeyNamespace = "namespace"
|
||||
recordKeyPod = "pod"
|
||||
|
||||
recordKeyStream = "stderr"
|
||||
|
||||
recordKeyContainerTime = "container_time"
|
||||
recordKeyShipTime = "ship_time"
|
||||
recordKeyStream = "stream"
|
||||
|
||||
recordKeyEvent = "event"
|
||||
recordKeyTimeUpstream = "created"
|
||||
@ -139,11 +136,11 @@ func (l *Record) ToBson() bson.M {
|
||||
},
|
||||
recordKeyStream: stream,
|
||||
recordKeyEvent: bson.M{
|
||||
recordKeyTimeUpstream: l.TimeUpstream,
|
||||
// recordKeyTimeUpstream: l.TimeUpstream, //TODO: ECS
|
||||
recordKeyTimeKubernetes: l.TimeKubernetes,
|
||||
},
|
||||
|
||||
recordKeyShipTime: time.Now(),
|
||||
recordKeyTimeMower: time.Now(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user