-
Notifications
You must be signed in to change notification settings - Fork 13
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
Integrate spin_telemetry to support OTel #112
Conversation
@Mossaka do you know how environment variables are passed through to the shim in SpinKube? In my local testing I've been doing something like |
ENV variables are passed to shims via containerd. Set the ENV variable before starting containerd or configure the systemd service with the env's |
Sorry I'm still not clear. Are you implying that in a K8s context the env variable needs to be set on the node? Is there a way to set it on the pod and have containerd pick it up? |
@calebschoepp, to elaborate on @jsturtevant's comment, it depends how systemctl stop containerd
systemctl edit containerd Then add this to the [Service]
Environment="RUST_LOG=info" Restart the service systemctl restart containerd |
I'm following that, but I'm specifically curious how containerd works in a K8s environment. In other words how/where would a SpinKube user set |
For a SpinKube user, i'd imagine we'd add the ability to do this through the runtime class manager |
52b530e
to
e54d498
Compare
Hey folks this is ready for review! |
Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there isn't anything that tests this, can you give provide a screenshot of the traces to demonstrate what they look like? I think it would be helpful for folks to see what the traces look like to better understand the value of OTel support in the shim.
Great point @devigned. Here's a photo of the traces you would get from a request to a simple Spin app that is setting something in a key value store. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Integrates
spin_telemetry
into the shim so that we get OTel support.The workaround to prevent the panic is to point at versions of spin and spin triggers that don't use the
tracing-log
feature.