In this article
A completed application operation and a delivered trace are separate lifecycle events.
Separate execution from trace delivery
An evaluation worker can return a valid answer and exit before its telemetry reaches Phoenix. The Phoenix setup guide warns that queued spans may remain unexported when a process terminates. Do not interpret an absent trace as proof that inference never ran. First distinguish the application outcome from span creation, span completion, queue processing and collector acceptance.
Inspect the actual processor configuration
SDK language and options determine how exporting is scheduled. The current Phoenix reference documents different default batching behavior for its Python and TypeScript wrappers. Read the installed integration’s configuration rather than assuming a shared product name implies identical lifecycle behavior. Custom processor configuration can also alter the default export path. Retain the effective endpoint, transport and processor setup in a diagnostic record so missing telemetry can be investigated without changing the evaluated application.
End the observed work before flushing
The tracing-helper guide describes span creation around application functions and operations. A flush cannot export an unfinished span as a completed observation merely because the worker is about to exit. Check span scope, exception handling and asynchronous work that may outlive the task function. Close the intended observation and then use the integration’s documented lifecycle operations, preserving the order between completing work and delivering its telemetry.
Treat shutdown as a bounded operation
The OpenTelemetry SDK specification defines force-flush and shutdown responsibilities. These operations have lifecycle and timeout behavior; they are not a promise of unlimited waiting or guaranteed delivery under every network failure. Inspect their results and collector-side evidence where available. A hard process kill may bypass graceful shutdown entirely, so the completeness assumptions of a normal exit should not be applied to interrupted workers without additional evidence.
Verify a minimal worker end to end
Run a benign diagnostic worker with a uniquely identifiable completed operation, then reconcile the expected span with collector-side records after normal termination. Repeat under the intended batching configuration. The guides to trace assertion presence and measurement coverage provide related controls. Report missing telemetry separately from incorrect application answers, allowing a reader to distinguish an execution failure from an observation that was created locally but never delivered to the evaluation store.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.