We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c1b47b commit adeb586Copy full SHA for adeb586
1 file changed
dd-trace-core/src/main/java/datadog/trace/common/writer/PayloadDispatcherImpl.java
@@ -68,7 +68,7 @@ public void addTrace(List<? extends CoreSpan<?>> trace) {
68
// there are alternative approaches to avoid blocking here, such as
69
// introducing an unbound queue and another thread to do the IO
70
// however, we can't block the application threads from here.
71
- if (null == mapper || !packer.format(trace, mapper)) {
+ if (null == mapper || null == packer || !packer.format(trace, mapper)) {
72
healthMetrics.onFailedPublish(
73
trace.isEmpty() ? 0 : trace.get(0).samplingPriority(), trace.size());
74
}
0 commit comments