Skip to content

feat(otel): otel across erpc - #199

Merged
markovejnovic merged 1 commit into
mainfrom
feat/rpc-trace-context
Nov 27, 2026
Merged

markovejnovic merged 1 commit into
mainfrom
feat/rpc-trace-context

Conversation

@markovejnovic

@markovejnovic markovejnovic commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

slop, but non-critical codepath

Every :erpc.call runs on another node in a fresh process, whose
OpenTelemetry context is empty, so what a remote Hyper function traces
starts a trace of its own. A caller's span (usher's Usher.Hyper.exec,
say) then shows the call's duration with nothing of Hyper's work under
it.

Hyper.Rpc.call/5 injects the caller's context as W3C trace-context
headers and erpc-calls Hyper.Rpc.run/4 on the target, which extracts it,
applies the function and detaches. All nine of Hyper's own erpc hops go
through it, and callers outside Hyper call run/4 with their own carrier.

exec had no spans at all. Hyper.exec now traces the hop to the VM's
node, and Hyper.Node.FireVMM.Agent.exec the relay round trip, recording
its outcome (ok, agent_unavailable, timeout, ...) and never its output,
which can hold anything.
@markovejnovic markovejnovic changed the title feat(otel): keep the caller's trace across erpc, and trace exec feat(otel): otel across erpc Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/hyper/node/fire_vmm/agent.ex 81.81% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@markovejnovic
markovejnovic merged commit d1840b0 into main Nov 27, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant