xuminwlt opened a new issue #6329:
URL: https://github.com/apache/apisix/issues/6329
### Issue description
I see the opentelemetry-plugin is merge to branch master, and I try to test
it.
use otel-collecotor 4317 port, when i make run with plugin config like this
```
plugins: # plugin list (sorted by priority)
- opentelemetry # priority: -1200
plugin_attr:
opentelemetry:
trace_id_source: x-request-id
resource:
service.name: APISIX
collector:
address: 127.0.0.1:4317
request_timeout: 3
batch_span_processor:
drop_on_queue_full: false
max_queue_size: 1024
batch_timeout: 2
inactive_timeout: 1
max_export_batch_size: 2
```
In error.log, I have got error in error.log.
```
2022/02/15 22:11:23 [error] 73677#10524709: *337752 [lua]
http_client.lua:41: do_request(): request failed: closed, context: ngx.timer,
client: 127.0.0.1, server: 0.0.0.0:9080
2022/02/15 22:11:23 [error] 73677#10524709: *337752 lua entry thread
aborted: runtime error:
...deps/share/lua/5.1/opentelemetry/trace/exporter/otlp.lua:24: assertion
failed!
stack traceback:
coroutine 0:
[C]: in function 'assert'
...deps/share/lua/5.1/opentelemetry/trace/exporter/otlp.lua:24: in
function 'export_spans'
...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:18: in
function 'process_batches'
...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:46: in
function <...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:29>,
context: ngx.timer, client: 127.0.0.1, server: 0.0.0.0:9080
```
this plugin fail send trace data to otel-collector.
### Environment
- apisix version (cmd: `apisix version`): 2.12.0
- OS (cmd: `uname -a`): centos
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd:
depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `luarocks
--version`):
--
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]