Sending Logs to Otel Collector from Gin App

TLDR Kshitij wants to send logs without outputting it in a file. nitya-signoz suggests using logging drivers and deploying otel collector as a sidecar in AWS ECS.

Photo of Kshitij
Kshitij
Mon, 27 Feb 2023 06:35:14 UTC

how can I send my logs to the otel collector from my gin app without outputting it in a file? (I tried to use otel.SetLogger function but it does not seem to work)

Photo of nitya-signoz
nitya-signoz
Mon, 27 Feb 2023 07:33:26 UTC

If you are using docker you can use logging drivers

Photo of nitya-signoz
nitya-signoz
Mon, 27 Feb 2023 07:35:03 UTC

Support for logs is paused as of now in otel go sdk

Photo of Kshitij
Kshitij
Mon, 27 Feb 2023 10:49:31 UTC

I am deploying my application to aws ecs...so I guess the only option for me is to deploy otel collector as a sidecar and let it read my application logs from the file( where my application writes it)?