yangxikun commented on issue #6329:
URL: https://github.com/apache/apisix/issues/6329#issuecomment-1040444384


   The error log seems maybe there is a bug at: 
https://github.com/yangxikun/opentelemetry-lua/blob/6c4a5112de5f70bb94a87e39656121f9c7407d95/lib/opentelemetry/trace/batch_span_processor.lua#L37
   
   Could you try replace 
`/usr/local/apisix/deps/share/lua/5.1/opentelemetry/trace/batch_span_processor.lua#L37`
 to:
   ```lua
   if now() - self.first_queue_t >= self.batch_timeout and #self.queue > 0 then
   ```
   then restart apisix container and test if the error log still appear.
   
   BTW, the above bug shouldn't affect sending spans. Does your otel-collecotor 
4317 port use http protocol? otel-collector-config.yaml just like:
   ```yaml
   receivers:
     otlp:
       protocols:
         http:
           endpoint: 0.0.0.0:4317
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to