@@ -54,7 +54,13 @@ var DefaultResourceURLNotifierConfig = ResourceURLNotifierConfig{
5454}
5555
5656type poster interface {
57- Process (ctx context.Context , queuedAt time.Time , event * livekit.WebhookEvent , params * ResourceURLNotifierParams )
57+ Process (
58+ ctx context.Context ,
59+ queuedAt time.Time ,
60+ event * livekit.WebhookEvent ,
61+ params * ResourceURLNotifierParams ,
62+ qLen int ,
63+ )
5864}
5965
6066type resourceQueueInfo struct {
@@ -254,11 +260,17 @@ func (r *ResourceURLNotifier) Stop(force bool) {
254260}
255261
256262// poster interface
257- func (r * ResourceURLNotifier ) Process (ctx context.Context , queuedAt time.Time , event * livekit.WebhookEvent , params * ResourceURLNotifierParams ) {
263+ func (r * ResourceURLNotifier ) Process (
264+ ctx context.Context ,
265+ queuedAt time.Time ,
266+ event * livekit.WebhookEvent ,
267+ params * ResourceURLNotifierParams ,
268+ qLen int ,
269+ ) {
258270 fields := logFields (event , params .URL )
259271
260272 queueDuration := time .Since (queuedAt )
261- fields = append (fields , "queueDuration" , queueDuration )
273+ fields = append (fields , "queueDuration" , queueDuration , "qLen" , qLen )
262274
263275 if queueDuration > params .Config .MaxAge {
264276 fields = append (fields , "reason" , "age" )
0 commit comments