Supporting go-zero Framework and Displaying Application Logs in SigNoz

TLDR zane.chen inquired about support for go-zero framework and displaying application logs in SigNoz. Srikanth and nitya-signoz suggested steps, but the issue remains unsolved.

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 01:21:51 UTC

can go-zero framework be supported by signoz? my go application used go-zero framework not gin。

Photo of Srikanth
Srikanth
Mon, 27 Feb 2023 01:40:19 UTC

What kind of support are you looking for? distributed tracing? metrics? or all?

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:16:31 UTC

log、trace and metrics

Photo of Srikanth
Srikanth
Mon, 27 Feb 2023 02:23:58 UTC

I don’t think any of them are supported at the moment.

Photo of Srikanth
Srikanth
Mon, 27 Feb 2023 02:25:02 UTC

however, you can transport logs using one of the traditional mechanisms more here

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:25:28 UTC

we best need log currently

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:26:53 UTC

I just read this file to transport logs, but it cannot support go-zero framework

Photo of Srikanth
Srikanth
Mon, 27 Feb 2023 02:33:22 UTC

How is that a go-zero framework dependant?

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:48:25 UTC

it's ok if you have not supported go-zero framework currently

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:49:02 UTC

if support go-zero that is better

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:51:00 UTC

another question: the log module cannot support application inside logs? just like INFO、ERROR or DEBUG log?

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:51:10 UTC

I can only find some http request record in signoz, just like below

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:52:12 UTC

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:52:58 UTC

I think this is more like trace, but i want logs from application inside to analyze error or business logic, just like below:

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 02:53:58 UTC

Photo of Srikanth
Srikanth
Mon, 27 Feb 2023 03:05:43 UTC

probably because it’s chinese and non-ascii characters which I believe is not currently supported. <@4K170c> do we support this?

Photo of nitya-signoz
nitya-signoz
Mon, 27 Feb 2023 04:10:11 UTC

We haven’t tested with chinese yet. But I think his question is more related to how the logs are shown in the UI. zane.chen are you able to get the logs to signoz.

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 04:14:41 UTC

yes,I want to show my application logs in the signoz UI

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 04:15:13 UTC

but i cannot find them in UI

Photo of nitya-signoz
nitya-signoz
Mon, 27 Feb 2023 04:24:53 UTC

Can you share more about where you are running your application and are you able to scrape those logs ?

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 05:55:26 UTC

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 05:55:58 UTC

for example, i expect to display above logs in signoz logs UI, but it only show request event log

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 05:56:51 UTC

is it clear?

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 05:56:58 UTC

Photo of nitya-signoz
nitya-signoz
Mon, 27 Feb 2023 10:31:08 UTC

Is you application and signoz running on the same host.

Photo of zane.chen
zane.chen
Mon, 27 Feb 2023 11:08:10 UTC

yes

Photo of nitya-signoz
nitya-signoz
Mon, 27 Feb 2023 12:39:27 UTC

Then if your application is running in docker then the logs will be automatically scraped, can you filter by container ID and see if logs are getting collected.

Photo of zane.chen
zane.chen
Tue, 28 Feb 2023 01:46:52 UTC

no, i cannot find my expect log, as below

Photo of zane.chen
zane.chen
Tue, 28 Feb 2023 01:46:57 UTC

Photo of zane.chen
zane.chen
Tue, 28 Feb 2023 01:47:53 UTC

I expect see the below INFO type logs in signoz Logs UI

Photo of zane.chen
zane.chen
Tue, 28 Feb 2023 01:47:58 UTC

Photo of zane.chen
zane.chen
Tue, 28 Feb 2023 01:48:13 UTC

but i have not found it

Photo of zane.chen
zane.chen
Thu, 02 Mar 2023 02:52:27 UTC

hello?

Photo of zane.chen
zane.chen
Thu, 02 Mar 2023 02:54:05 UTC

can you help me?

Photo of nitya-signoz
nitya-signoz
Thu, 02 Mar 2023 15:38:25 UTC

Hey did you try to filter out logs using the container id filter ?

Photo of zane.chen
zane.chen
Fri, 03 Mar 2023 11:21:54 UTC

yes, but have not found my chinese logs