Class SpanLogsDecoder

  • All Implemented Interfaces:
    ReportableEntityDecoder<com.fasterxml.jackson.databind.JsonNode,​SpanLogs>

    public class SpanLogsDecoder
    extends Object
    implements ReportableEntityDecoder<com.fasterxml.jackson.databind.JsonNode,​SpanLogs>
    Span logs decoder that converts a JSON object in the following format: { "traceId": "...", "spanId": "...", "logs": [ { "timestamp": 1234567890000000, "fields": { "key": "value", "key2": "value2" } } ] }
    Author:
    vasily@wavefront.com
    • Constructor Detail

      • SpanLogsDecoder

        public SpanLogsDecoder()
    • Method Detail

      • decode

        public void decode​(com.fasterxml.jackson.databind.JsonNode msg,
                           List<SpanLogs> out,
                           String customerId,
                           IngesterContext ctx)
        Description copied from interface: ReportableEntityDecoder
        Decode graphite points and dump them into an output array. The supplied customer id will be set and no customer id extraction will be attempted.
        Specified by:
        decode in interface ReportableEntityDecoder<com.fasterxml.jackson.databind.JsonNode,​SpanLogs>
        Parameters:
        msg - Message to parse.
        out - List to output the parsed point.
        customerId - The customer id to use as the table for the result ReportPoint.
        ctx - The ingester context with extra params for decoding.