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
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 requestYes- do they also have 1 other event for the parent request?
yup
if it's a worker invocation with a single subrequest, you'd have two events in http logpush
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).
yup
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?
Under the Event? Yes, it does