-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Tracing is broken with v1.7.16 #10358
Comments
Agreed, this was unintended. The backport should have included checks for deprecated configs not just skipping if the envs aren't set. To re-enable, use the environment variables which I believe is more standard anyway. Hopefully environment variables work for you rather than needing to downgrade, but we should fix this in 1.7 branch. |
Thanks for the explanation and quick reply @dmcgowan! I tried it too; this time containerd does not give any error, but still does not send any tracing data :( Do you have any idea what I am missing? I followed the otel documentation and dropped some environment file link in the systemd file [Service]
EnvironmentFile=-/etc/containerd/containerd.env
.. And OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http:https://0.0.0.0:4317"
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL="grpc"
OTEL_EXPORTER_OTLP_INSECURE="true"
OTEL_TRACES_SAMPLER="traceidratio"
OTEL_TRACES_SAMPLER_ARG="1.0"
OTEL_SERVICE_NAME="containerd" |
Yes it looks like #8645 was backported exactly as is to 1.7 in #9992 and should have fallen back to using config (or perhaps use the config to set envs). As to why your envs are not working, it looks like containerd is not seeing them at all. I'll work on a patch to 1.7 to restore support for config from toml. |
@cpuguy83 thanks for the help on this! Actually containerd process seems to have right environment variables; and I can confirm that tracing plugin is loaded without any problems; but logs do not give any more information even in debug mode. So I'm not sure what is the problem here.
|
@ugur99 Here's the code where that log message originates from: Here we lookup both containerd/tracing/plugin/otlp.go Lines 150 to 152 in 1fdc9a0
Are you sure you are getting that log message every time? |
Hi @cpuguy83; sorry I could not understand what you meant. After setting the environment variables I can see that the tracing plugins are loaded without any problems, warnings in debug mode. But I still don't see any tracing data from this containerd instance; I believe all environment variables are set correctly according to the opentelemetry documentation. Could you share a sample configuration which works fine with me just to make sure the problem is with my setup?
|
My guess would be the 0.0.0.0 in your env var (assuming that's what you actually have). |
Description
When we upgrade containerd from 1.7.15 to 1.7.16 we noticed that our tracing config is broken; we saw some errors in the containerd log that implies no endpoint is configured; but same config works with the previous version.
Steps to reproduce the issue
Describe the results you received and expected
related part of container config
containerd
1.7.15
logscontainerd
1.7.16
logsI checked the changelog and saw that there was some work done to deprecate this config; could it be related to this commit?
What version of containerd are you using?
1.7.16
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response
The text was updated successfully, but these errors were encountered: