#support

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.

Powered by Struct AI
Feb 27, 2023 (7 months ago)
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
01:21 AM
can go-zero framework be supported by signoz? my go application used go-zero framework not gin。
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
01:40 AM
What kind of support are you looking for? distributed tracing? metrics? or all?
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
02:16 AM
log、trace and metrics
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
02:23 AM
I don’t think any of them are supported at the moment.
02:25
Srikanth
02:25 AM
however, you can transport logs using one of the traditional mechanisms more here https://signoz.io/docs/userguide/logs/#collecting-logs-in-signoz-using-opentelemetry
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
02:25 AM
we best need log currently
02:26
zane.chen
02:26 AM
I just read this file to transport logs, but it cannot support go-zero framework
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
02:33 AM
How is that a go-zero framework dependant?
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
02:48 AM
it's ok if you have not supported go-zero framework currently
02:49
zane.chen
02:49 AM
if support go-zero that is better
02:51
zane.chen
02:51 AM
another question: the log module cannot support application inside logs? just like INFO、ERROR or DEBUG log?
02:51
zane.chen
02:51 AM
I can only find some http request record in signoz, just like below
02:52
zane.chen
02:52 AM
Image 1 for
02:52
zane.chen
02:52 AM
I think this is more like trace, but i want logs from application inside to analyze error or business logic, just like below:
02:53
zane.chen
02:53 AM
Image 1 for
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
03:05 AM
probably because it’s chinese and non-ascii characters which I believe is not currently supported. Nityananda do we support this?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
04:10 AM
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.
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
04:14 AM
yes,I want to show my application logs in the signoz UI
04:15
zane.chen
04:15 AM
but i cannot find them in UI
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
04:24 AM
Can you share more about where you are running your application and are you able to scrape those logs ?
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
05:55 AM
Image 1 for
05:55
zane.chen
05:55 AM
for example, i expect to display above logs in signoz logs UI, but it only show request event log
05:56
zane.chen
05:56 AM
is it clear?
05:56
zane.chen
05:56 AM
Image 1 for
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
10:31 AM
Is you application and signoz running on the same host.
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
11:08 AM
yes
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
12:39 PM
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.
Feb 28, 2023 (7 months ago)
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
01:46 AM
no, i cannot find my expect log, as below
01:46
zane.chen
01:46 AM
Image 1 for
01:47
zane.chen
01:47 AM
I expect see the below INFO type logs in signoz Logs UI
01:47
zane.chen
01:47 AM
Image 1 for
01:48
zane.chen
01:48 AM
but i have not found it
Mar 02, 2023 (7 months ago)
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
02:52 AM
hello?
02:54
zane.chen
02:54 AM
can you help me?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
03:38 PM
Hey did you try to filter out logs using the container id filter ?
Mar 03, 2023 (7 months ago)
zane.chen
Photo of md5-70a65c96b293c1aafa37eaaefeaefa64
zane.chen
11:21 AM
yes, but have not found my chinese logs