Package com.wavefront.ingester
Class SpanDecoder
- java.lang.Object
-
- com.wavefront.ingester.SpanDecoder
-
- All Implemented Interfaces:
ReportableEntityDecoder<String,Span>
public class SpanDecoder extends Object implements ReportableEntityDecoder<String,Span>
Span decoder that takes in data in the following format: [span name] [annotations] [timestamp] [duration|timestamp]- Author:
- vasily@wavefront.com
-
-
Constructor Summary
Constructors Constructor Description SpanDecoder(String hostName)SpanDecoder(Supplier<String> hostNameSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(String msg, List<Span> 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(String msg, List<Span> 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<String,Span>- 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.
-
-