Skip to content

Commit a2ba2c9

Browse files
authored
refactor: removes unused function for image generation tracer (envoyproxy#1617)
**Description** This removes the unused function in tracer implementation for image generation endpoint. **Related Issues/PRs (if applicable)** This is a follow up on envoyproxy#1280 Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 1b06346 commit a2ba2c9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

internal/tracing/openinference/openai/image_generation.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ func (r *ImageGenerationRecorder) RecordRequest(span trace.Span, req *openaisdk.
6565
func (r *ImageGenerationRecorder) RecordResponse(span trace.Span, resp *openaisdk.ImagesResponse) {
6666
// Set output attributes.
6767
var attrs []attribute.KeyValue
68-
attrs = buildImageGenerationResponseAttributes(resp, r.traceConfig)
69-
7068
bodyString := openinference.RedactedValue
7169
if !r.traceConfig.HideOutputs {
7270
marshaled, err := json.Marshal(resp)
@@ -106,12 +104,3 @@ func buildImageGenerationRequestAttributes(_ *openaisdk.ImageGenerateParams, bod
106104

107105
return attrs
108106
}
109-
110-
// buildImageGenerationResponseAttributes builds OpenInference attributes from the image generation response.
111-
func buildImageGenerationResponseAttributes(_ *openaisdk.ImagesResponse, _ *openinference.TraceConfig) []attribute.KeyValue {
112-
attrs := []attribute.KeyValue{}
113-
114-
// No image-specific response attributes
115-
116-
return attrs
117-
}

0 commit comments

Comments
 (0)