#general

Signoz and Opentel Tracing Issue in Golang Application

TLDR Himanshu is having issues with tracing graphql queries and mongoDB calls in their Golang application using Signoz and Opentel. vishal-signoz asked about the former's instrumenting process but the issue has not been resolved.

Powered by Struct AI
Aug 10, 2023 (4 months ago)
Himanshu
Photo of md5-7bc904d81e6725fb03a93c75f00934c9
Himanshu
07:37 AM
Hi Team, We are trying to use signoz and opentel for our go application bu t some how we are not getting trace for mongo queries and the other graphql calls, it only tracks /gql endpoint, Is there a way to span at global level for graphql rather than having span for every functions?
Palash Gupta
Photo of md5-051f535431ff484f44f165e9a0b696a5
Palash Gupta
02:39 PM
vishal-signoz
Aug 11, 2023 (4 months ago)
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
01:56 AM
Himanshu How are you instrumenting? Which library are you using?
DId you try using otel-mongo for mongo instrumentation?
Aug 16, 2023 (3 months ago)
Himanshu
Photo of md5-7bc904d81e6725fb03a93c75f00934c9
Himanshu
06:39 AM
Hi vishal-signoz I am using https://signoz.io/docs/instrumentation/golang/
for golang also using otel-mongo for mongo but what I want here is that
i.e :- /gql is my endpoint
now if there is a graphql request made to this /gql endpoint I want to have trace for the functions
eg:- here is one query
query MyQuery {
  Token(input: {address: "0xedf345564606fe9ee3a9796d5cc75e3b16e682", blockchain: ethereum}) {
    address
    baseURI
  }
}

now in this there is a call to a function called Token and there is some db call as well, I want to trace this function and db call both
Aug 17, 2023 (3 months ago)
Himanshu
Photo of md5-7bc904d81e6725fb03a93c75f00934c9
Himanshu
10:35 AM
Palash Gupta vishal-signoz
Aug 22, 2023 (3 months ago)
Himanshu
Photo of md5-7bc904d81e6725fb03a93c75f00934c9
Himanshu
08:18 AM
Hey guys can anyone help with this?