Using this to track some gaps as I go about monkey patching various APIs as part of the openinference donation stuff..
Gaps:
A generic way for the user to provide attributes that make it into the span.. We use a ContextVar to do this for the GenerateContent method, and could do the same for the other APIs..
Embeddings:
Interactions:
Using this to track some gaps as I go about monkey patching various APIs as part of the openinference donation stuff..
Gaps:
A generic way for the user to provide attributes that make it into the span.. We use a
ContextVarto do this for theGenerateContentmethod, and could do the same for the other APIs..Embeddings:
EmbedContentConfigin attributes the same way we doGenerateContentConfigin thegenerate_contentinstrumentation.usageMetadataand Leavessdk_http_response.bodyas None googleapis/python-genai#2658 --EmbedContentResponsehas a bug that doesn't let us get tokens fromusage_metadataInteractions:
gen_ai.request.previous_response.idsemantic-conventions-genai#372stepssemantic-conventions-genai#380)