Skip to content
Snippets Groups Projects
Unverified Commit 8a88717a authored by Joel Takvorian's avatar Joel Takvorian Committed by GitHub
Browse files

Fix issue with inconsistent GenericMap output (#297)

* Fix issue with inconsistent GenericMap output

The FLP GenericMap provided by the agent differs in types depending on
the exporter being used, especially with DirectFLP each records size is
smaller than when used with protobuf, due to protobuf using uint32
almost everywhere. This is not a problem in most cases as FLP generally
converts that in JSON, but it breaks the FLP IPFIX export which expects
strict types.

This commit brings more consistency between the FLP-direct mode and the
protobuf mode, by sharing the same GenericMap encoding function. Which
means the protobuf decode is now done in two steps: first
proto-to-flow.Record, then flow.Record-to-GenericMap.

* fix proto decode test
parent 45926b97
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment