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 ofSpan
instances, 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)
boolean
equals(java.lang.Object o)
java.util.Optional<java.lang.String>
getTraceId()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class com.newrelic.telemetry.TelemetryBatch
getCommonAttributes, getTelemetry, 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:
createSubBatch
in classTelemetryBatch<Span>
-
getTraceId
public java.util.Optional<java.lang.String> getTraceId()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classTelemetryBatch<Span>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTelemetryBatch<Span>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTelemetryBatch<Span>
-
-