- Ensure log event is written and completion hook is called even when model call results in exception. Put new log event (
gen_ai.client.inference.operation.details) behind the flagOTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental. Ensure same sem conv attributes are on the log and span. Fix an issue where the instrumentation would crash when a pydantic.BaseModel class was passed as the response schema (#3905). - Add the
GEN_AI_OUTPUT_TYPEsem conv request attributes to events/spans generated in the stable instrumentation. This was added pre sem conv 1.36 so it should be in the stable instrumentation. Fix a bug in how system instructions were recorded in thegen_ai.system.messagelog event. It will now always be recorded as{"content" : "text of system instructions"}. See (#4011).