#Recommended patterns to handles logs from pipeline steps?
1 messages ยท Page 1 of 1 (latest)
if you're setting up OTEL (https://discord.com/channels/707636530424053791/1249642165278343230) , logs are being attached to the OTEL spans following the OTEL spec.
Yeah I agree ๐
But In my use case we also need logs to be saved in files in order to show for customers using gitlab artifacts
I think Buildkit stores its log somewhere (/cc @topaz cairn) ? I'm not sure though it will be super human readable.
I wonder if there's a way to capture the engine stdout into a file
i can think of one possible way is by storing and passing logs file for each steps and returning to the caller as directory and at the end may be orchetrator can save it, but thought that may be there's any out of box support ๐
you can configure the Dagger CLI to send data to any OTel-compatible provider with the standard OTEL_ env vars - maybe you could configure a collector that writes to local disk?