-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request help: opentelemetry-plugin report no data to otel-collecotor #6329
Comments
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 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: receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4317 |
Thanks @yangxikun , i'll try these right now. |
Success, trace data is send to otel-collector. But, I have a question, the default config of the otel-collector port like this:
default config
So i change the port like this:
no other question, bang bang da. |
Great, I will make a PR to fix the error log. |
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, is somewhere a bug?
BTW, the java service send trace data success, so it is not the collector question.
In error.log, I have got error in error.log.
this plugin fail send trace data to otel-collector.
Environment
apisix version
): 2.12.0uname -a
): centosnginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):@yangxikun please have a look, brother.
The text was updated successfully, but these errors were encountered: