Package com.newrelic.telemetry.spans
Class SpanBatch
- java.lang.Object
-
- com.newrelic.telemetry.TelemetryBatch<Span>
-
- com.newrelic.telemetry.spans.SpanBatch
-
public class SpanBatch extends TelemetryBatch<Span>
Represents a set ofSpaninstances, to be sent up to the New Relic Trace API.
-
-
Constructor Summary
Constructors Constructor Description SpanBatch(java.util.Collection<Span> telemetry, Attributes commonAttributes)SpanBatch(java.util.Collection<Span> telemetry, Attributes commonAttributes, java.lang.String traceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TelemetryBatch<Span>createSubBatch(java.util.Collection<Span> telemetry)booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>getTraceId()inthashCode()java.lang.StringtoString()-
Methods inherited from class com.newrelic.telemetry.TelemetryBatch
getCommonAttributes, getTelemetry, getUuid, hasCommonAttributes, isEmpty, size, split
-
-
-
-
Constructor Detail
-
SpanBatch
public SpanBatch(java.util.Collection<Span> telemetry, Attributes commonAttributes)
-
SpanBatch
public SpanBatch(java.util.Collection<Span> telemetry, Attributes commonAttributes, java.lang.String traceId)
-
-
Method Detail
-
createSubBatch
public TelemetryBatch<Span> createSubBatch(java.util.Collection<Span> telemetry)
- Specified by:
createSubBatchin classTelemetryBatch<Span>
-
getTraceId
public java.util.Optional<java.lang.String> getTraceId()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTelemetryBatch<Span>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTelemetryBatch<Span>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTelemetryBatch<Span>
-
-