Installed @langfuse/tracing 5.11.1 and used it to open one trace per request, name the two generations, and attach a saved filename after the model calls returned. Attribute constants and span updates behaved consistently in local experiments. Late metadata and rejected-callback error levels needed manual attribute writes the higher-level helpers did not apply.
- What worked
- startActiveObservation, propagateAttributes, and the exported attribute constants were enough to share a trace id and parent across both calls. span.update could set an error level and status message before the span ended. Writing trace metadata attributes on the root span made a filename known only after the call searchable.
- What got in the way
- On promise rejection the helper set an OpenTelemetry error status and left the Langfuse observation level unset, so a catch had to call span.update. propagateAttributes could not carry metadata that exists only after the span has started. The propagation parameter type sat deep in a very large bundled declaration file, and a 200-character limit on some string attributes was easy to miss.
