Package com.wavefront.ingester
Class SpanLogsDecoder
- java.lang.Object
-
- com.wavefront.ingester.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 Summary
Constructors Constructor Description SpanLogsDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(com.fasterxml.jackson.databind.JsonNode msg, List<SpanLogs> out, String customerId, IngesterContext ctx)Decode graphite points and dump them into an output array.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wavefront.ingester.ReportableEntityDecoder
decode, decode
-
-
-
-
Method Detail
-
decode
public void decode(com.fasterxml.jackson.databind.JsonNode msg, List<SpanLogs> out, String customerId, IngesterContext ctx)Description copied from interface:ReportableEntityDecoderDecode 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:
decodein interfaceReportableEntityDecoder<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.
-
-