I have a go webapp that i'd like to configure to s...
# support
d
I have a go webapp that i'd like to configure to send its logs directly to SigNoz. I want to do this without writing to an on disk file, as there are metrics I will be wanting to send in the future. What am I going to need? I'm hearing a lot about getting the open telemetry code installed into mine, but I want to make sure I'm not barking up the wrong tree before I invest a lot of time into it.
1
h
You can either augment your app/source with OTel libraries: https://signoz.io/docs/instrumentation/opentelemetry-golang/ or if you're on K8S use an operator that auto injects those libraries into your runtime: https://opentelemetry.io/docs/platforms/kubernetes/operator/automatic/#go I'm coming from NodeJS and the auto-instrumentation monkey patches commonly used logging, http, db libraries to automatically send OTel traces, logs. You'll have to research how mature the OTel-Go ecosystem is.
d
Thanks, I appreciate the direction!
h
for example, if you use slog take a look at https://uptrace.dev/guides/opentelemetry-slog
In JS I just keep using Winston for logging but I load up an OTel-Winston transport that adds a network appender under the covers for me.
d
Great info. I appreciate it