This repository has been archived by the owner on Sep 21, 2023. It is now read-only.
Allow google.protobuf.Timestamp in shipper Event fields and metadata #62
Closed
Labels
The shipper
Event
payload are currently defined as google.protobuf.Struct which require encoding timestamps as strings:elastic-agent-shipper/api/shipper.proto
Lines 48 to 54 in 504c1e1
Following from the note in the event definition, we should extend the
google.protobuf.Struct
type to allow using google.protobuf.Timestamp as one of theValue
cases. The agent always writes to datastreams which require a timestamp, forcing timestamps to be encoded causes us to inefficiently parse them from string for every message received.It should be enough to clone the existing google.protobuf.Struct definition and add the new message case in the
Value
oneof type, for example:The text was updated successfully, but these errors were encountered: