@@ -63,8 +63,9 @@ var bedrockSupportedBetaFlags = map[string]bool{
6363}
6464
6565type interceptionBase struct {
66- id uuid.UUID
67- reqPayload MessagesRequestPayload
66+ id uuid.UUID
67+ providerName string
68+ reqPayload MessagesRequestPayload
6869
6970 cfg aibconfig.Anthropic
7071 bedrockCfg * aibconfig.AWSBedrock
@@ -115,7 +116,7 @@ func (s *interceptionBase) baseTraceAttributes(r *http.Request, streaming bool)
115116 attribute .String (tracing .RequestPath , r .URL .Path ),
116117 attribute .String (tracing .InterceptionID , s .id .String ()),
117118 attribute .String (tracing .InitiatorID , aibcontext .ActorIDFromContext (r .Context ())),
118- attribute .String (tracing .Provider , aibconfig . ProviderAnthropic ),
119+ attribute .String (tracing .Provider , s . providerName ),
119120 attribute .String (tracing .Model , s .Model ()),
120121 attribute .Bool (tracing .Streaming , streaming ),
121122 attribute .Bool (tracing .IsBedrock , s .bedrockCfg != nil ),
@@ -232,7 +233,7 @@ func (i *interceptionBase) newMessagesService(ctx context.Context, opts ...optio
232233 }
233234
234235 // Add API dump middleware if configured
235- if mw := apidump .NewBridgeMiddleware (i .cfg .APIDumpDir , aibconfig . ProviderAnthropic , i .Model (), i .id , i .logger , quartz .NewReal ()); mw != nil {
236+ if mw := apidump .NewBridgeMiddleware (i .cfg .APIDumpDir , i . providerName , i .Model (), i .id , i .logger , quartz .NewReal ()); mw != nil {
236237 opts = append (opts , option .WithMiddleware (mw ))
237238 }
238239
0 commit comments