@@ -29,10 +29,10 @@ func TestGenerateTelemetry_PipelineIntegration(t *testing.T) {
2929
3030 // Create span using the TracerProvider - this triggers the full pipeline
3131 ctx := context .Background ()
32- _ , span := f .tracer .Start (ctx , "googleai/gemini-2.0 -pro-flash " )
32+ _ , span := f .tracer .Start (ctx , "googleai/gemini-2.5 -pro" )
3333
3434 span .SetAttributes (
35- attribute .String ("genkit:name" , "googleai/gemini-2.0 -pro-flash " ),
35+ attribute .String ("genkit:name" , "googleai/gemini-2.5 -pro" ),
3636 attribute .String ("genkit:metadata:subtype" , "model" ),
3737 attribute .String ("genkit:path" , "/{chatFlow,t:flow}/{generate,t:action}" ),
3838 attribute .String ("genkit:input" , inputJSON ),
@@ -74,11 +74,11 @@ func TestGenerateTelemetry_MetricCapture(t *testing.T) {
7474 name : "successful generation captures all metrics" ,
7575 attrs : map [string ]string {
7676 "genkit:type" : "action" ,
77- "genkit:name" : "googleai/gemini-2.0 -pro-flash " ,
77+ "genkit:name" : "googleai/gemini-2.5 -pro" ,
7878 "genkit:metadata:subtype" : "model" ,
7979 "genkit:path" : "/{chatFlow,t:flow}/{generate,t:action}" ,
8080 },
81- inputJSON : `{"model":"googleai/gemini-2.5-flash ","messages":[{"content":[{"text":"Hello world"}],"role":"user"}]}` ,
81+ inputJSON : `{"model":"googleai/gemini-2.5-pro ","messages":[{"content":[{"text":"Hello world"}],"role":"user"}]}` ,
8282 outputJSON : `{"message":{"content":[{"text":"Hello! How can I help you today?"}],"role":"model"},"usage":{"inputTokens":12,"outputTokens":8,"inputCharacters":11,"outputCharacters":33,"inputImages":1,"outputImages":0},"latencyMs":342.5}` ,
8383 expectMetrics : true ,
8484 expectedStatus : "success" ,
@@ -98,11 +98,11 @@ func TestGenerateTelemetry_MetricCapture(t *testing.T) {
9898 name : "failed generation captures error metrics" ,
9999 attrs : map [string ]string {
100100 "genkit:type" : "action" ,
101- "genkit:name" : "googleai/gemini-2.0 -pro-flash " ,
101+ "genkit:name" : "googleai/gemini-2.5 -pro" ,
102102 "genkit:metadata:subtype" : "model" ,
103103 "genkit:path" : "/{errorFlow,t:flow}/{generate,t:action}" ,
104104 },
105- inputJSON : `{"model":"googleai/gemini-2.5-flash ","messages":[{"content":[{"text":"Invalid prompt"}],"role":"user"}]}` ,
105+ inputJSON : `{"model":"googleai/gemini-2.5-pro ","messages":[{"content":[{"text":"Invalid prompt"}],"role":"user"}]}` ,
106106 outputJSON : `{"usage":{"inputCharacters":14}}` ,
107107 expectMetrics : true ,
108108 expectedStatus : "failure" ,
@@ -116,11 +116,11 @@ func TestGenerateTelemetry_MetricCapture(t *testing.T) {
116116 name : "generation with video and audio captures multimedia metrics" ,
117117 attrs : map [string ]string {
118118 "genkit:type" : "action" ,
119- "genkit:name" : "googleai/gemini-2.0 -pro-flash" ,
119+ "genkit:name" : "googleai/gemini-2.5 -pro-flash" ,
120120 "genkit:metadata:subtype" : "model" ,
121121 "genkit:path" : "/{multimediaFlow,t:flow}/{generate,t:action}" ,
122122 },
123- inputJSON : `{"model":"googleai/gemini-2.5-flash ","messages":[{"content":[{"text":"Analyze this video and audio"}],"role":"user"}]}` ,
123+ inputJSON : `{"model":"googleai/gemini-2.5-pro ","messages":[{"content":[{"text":"Analyze this video and audio"}],"role":"user"}]}` ,
124124 outputJSON : `{"message":{"content":[{"text":"Analysis complete"}],"role":"model"},"usage":{"inputTokens":5,"outputTokens":3,"inputCharacters":26,"outputCharacters":17,"inputImages":0,"outputImages":1,"inputVideos":2,"outputVideos":0,"inputAudioFiles":1,"outputAudioFiles":0},"latencyMs":1250.3}` ,
125125 expectMetrics : true ,
126126 expectedStatus : "success" ,
0 commit comments