verify mongo py compatability

This commit is contained in:
rasmus 2022-11-09 16:40:16 +02:00
parent 33471fac2d
commit 86609d9347
2 changed files with 3 additions and 21 deletions

View File

@ -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()
// }

View File

@ -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(),
}
}