Skip to content

cni: the plugin binary links the OTel SDK and OTLP exporters (~13–15 of its 37 modules) in a process run on every pod start/stop #1166

Closed

Description

@bpalermo

From the 2026-10-03 codebase audit. cni/cmd/cni is 17.9 MiB / 37 modules and links no client-go or controller-runtime (its only k8s.io module is cri-api), but ~13–15 of those modules are the OTel SDK + OTLP trace exporters used for CNI tracing (proposal 014's CNI spans). The plugin is exec'd by the container runtime on every ADD/DEL/CHECK, so binary size and init cost are paid per pod event.

Options:

  1. Keep as is (tracing is useful during CNI incidents; the cost is a few ms of init and ~10 MiB on disk).
  2. Drop CNI tracing from the plugin and keep it in the agent's CNI gRPC server, which already spans every registration (the plugin's span would collapse into a single attribute on the agent's span).
  3. Replace the exporter with a UDS hand-off of the span context to the agent (no SDK in the plugin) — most work.

A deps_test guard pinning today's module set is being added separately so nothing heavier creeps in; this issue is the decision on the existing set. Measure before deciding: the plugin's wall time per ADD with and without the exporter init (e2e/ kind run with AETHER_CNI_TRACE=0 if such a knob exists; otherwise a build without the exporter).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions