Logger.Backend.Humio.Metadata (logger_humio_backend v0.2.2) View Source

Functions for converting metadata to Humio fields.

Link to this section Summary

Functions

Takes the metadata keyword list, removes any unwanted entries, massages values to be serializable, and returns the result as a map that can be encoded for fields (unstructured) or attributes (structured).

Link to this section Functions

Link to this function

format_metadata(metadata)

View Source
Link to this function

metadata_to_map(metadata, keys)

View Source

Specs

metadata_to_map(keyword(), list() | :all | {:except, list()}) :: map()

Takes the metadata keyword list, removes any unwanted entries, massages values to be serializable, and returns the result as a map that can be encoded for fields (unstructured) or attributes (structured).

Link to this function

take_metadata(metadata, keys)

View Source