newStream traces svc.NewStreaming() call.
(ctx context.Context, svc anthropic.MessageService)
| 586 | |
| 587 | // newStream traces svc.NewStreaming() call. |
| 588 | func (i *StreamingInterception) newStream(ctx context.Context, svc anthropic.MessageService) *ssestream.Stream[anthropic.MessageStreamEventUnion] { |
| 589 | _, span := i.tracer.Start(ctx, "Intercept.ProcessRequest.Upstream", trace.WithAttributes(tracing.InterceptionAttributesFromContext(ctx)...)) |
| 590 | defer span.End() |
| 591 | |
| 592 | return svc.NewStreaming(ctx, anthropic.MessageNewParams{}, i.withBody()) |
| 593 | } |
no test coverage detected