Class TraceWriteStrategyImpl
- java.lang.Object
-
- org.datadog.jenkins.plugins.datadog.traces.write.TraceWriteStrategyImpl
-
- All Implemented Interfaces:
TraceWriteStrategy
public class TraceWriteStrategyImpl extends Object implements TraceWriteStrategy
-
-
Field Summary
-
Fields inherited from interface org.datadog.jenkins.plugins.datadog.traces.write.TraceWriteStrategy
ENABLE_TRACES_BATCHING_ENV_VAR
-
-
Constructor Summary
Constructors Constructor Description TraceWriteStrategyImpl(Track track, ThrowingConsumer<Collection<Payload>> spansSender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(Collection<Payload> serializationResult)
Payload
serialize(BuildData buildData, Run<?,?> run)
Payload
serialize(PipelineStepData stepData, Run<?,?> run)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datadog.jenkins.plugins.datadog.traces.write.TraceWriteStrategy
close
-
-
-
-
Constructor Detail
-
TraceWriteStrategyImpl
public TraceWriteStrategyImpl(Track track, ThrowingConsumer<Collection<Payload>> spansSender)
-
-
Method Detail
-
serialize
@Nullable public Payload serialize(BuildData buildData, Run<?,?> run)
- Specified by:
serialize
in interfaceTraceWriteStrategy
-
serialize
@Nullable public Payload serialize(PipelineStepData stepData, Run<?,?> run) throws IOException, InterruptedException
- Specified by:
serialize
in interfaceTraceWriteStrategy
- Throws:
IOException
InterruptedException
-
send
public void send(Collection<Payload> serializationResult)
- Specified by:
send
in interfaceTraceWriteStrategy
-
-