logpush + workers

I have a general question about logpush + workers. We are pushing standard access logs and worker logs to 2 separate buckets and hope to join them by rayID. I wanted to confirm for an incoming request that is processed by a worker and then sent as a sub request, should we expect to see 1 or 2 standard access log records for that request? (in addition to the worker log)
7 Replies
Chaika
Chaika2mo ago
Workers Subrequests in Http logpush have another event for each subrequest with the WorkerSubrequest field set to true and the ParentRayID field equal to the RayId of the original workers request
neenhouse (chris)
neenhouse (chris)OP2mo ago
Yes- do they also have 1 other event for the parent request?
Chaika
Chaika2mo ago
yup if it's a worker invocation with a single subrequest, you'd have two events in http logpush
neenhouse (chris)
neenhouse (chris)OP2mo ago
So, I'll end up with 3 events total, 2 access log events (parent, sub request) and one worker trace log event (which I opted my worker into).
Chaika
Chaika2mo ago
yup
neenhouse (chris)
neenhouse (chris)OP2mo ago
Thank you! One more question- do you expect the RayID from the worker trace log to match the RayID in the parent access log record?
Chaika
Chaika2mo ago
Under the Event? Yes, it does
Want results from more Discord servers?
Add your server