File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dd-trace-core/src/main/java/datadog/trace/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11package datadog .trace .core ;
22
3+ import static datadog .trace .api .telemetry .LogCollector .SEND_TELEMETRY ;
34import static datadog .trace .util .AgentThreadFactory .AgentThread .TRACE_MONITOR ;
45import static datadog .trace .util .AgentThreadFactory .THREAD_JOIN_TIMOUT_MS ;
56import static datadog .trace .util .AgentThreadFactory .newAgentThread ;
2526import org .slf4j .LoggerFactory ;
2627
2728public abstract class PendingTraceBuffer implements AutoCloseable {
28- private static final Logger LOGGER = LoggerFactory .getLogger (PendingTraceBuffer .class );
2929 private static final int BUFFER_SIZE = 1 << 12 ; // 4096
3030
3131 public boolean longRunningSpansEnabled () {
@@ -147,6 +147,7 @@ public void accept(Element pendingTrace) {
147147
148148 private static final class DumpDrain
149149 implements MessagePassingQueue .Consumer <Element >, MessagePassingQueue .Supplier <Element > {
150+ private static final Logger LOGGER = LoggerFactory .getLogger (DumpDrain .class );
150151 private static final DumpDrain DUMP_DRAIN = new DumpDrain ();
151152 private static final int MAX_DUMPED_TRACES = 50 ;
152153
@@ -172,6 +173,7 @@ public Element get() {
172173 // MessagePassingQueue docs if we return a null. Return a stand-in
173174 // Element instead.
174175 LOGGER .warn (
176+ SEND_TELEMETRY ,
175177 "Index {} is out of bounds for data size {} in DumpDrain.get so returning filler CommandElement to prevent pending trace queue from breaking." ,
176178 index ,
177179 data .size ());
You can’t perform that action at this time.
0 commit comments