#support

Locating `webhookStartAt` in Dashboard's Traace Data

TLDR Div was unable to locate webhookStartAt in the stringTagMap. Srikanth questioned its data type. Div established the data was in numberTagMap, resolving the issue.

Powered by Struct AI
7
3mo
Solved
Join the chat
Jun 01, 2023 (4 months ago)
Div
Photo of md5-69a12cc92bad5b259938b070788a11aa
Div
09:47 AM
Hi, I am sending some trace events to our dashboard called as webhookStartAt and webhookProcessedAt to draw a dashboard to see whats the time difference between these.

when doing this query first to see where is this webhookStartAt I cant see that in the stringTagmap, where as it returns some data when channel is not null, which is also passed in that trace data.
SELECT
      stringTagMap
              FROM
              signoz_traces.distributed_signoz_index_v2
              WHERE
              stringTagMap['channel'] IS NOT NULL
              AND timestamp >= NOW() - INTERVAL 1 HOUR
              LIMIT 1;
Jun 02, 2023 (3 months ago)
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
12:30 AM
> when doing this query first to see where is this webhookStartAt I cant see that in the stringTagmap
What is the query for this?
Div
Photo of md5-69a12cc92bad5b259938b070788a11aa
Div
02:43 AM
as per my understanding of how the schema in clickhouse is.

all the traces we are pushing to signoz are adding data in the table but for extra data like our custom values, ex. channel, webhookStartAt, webhookProcessedAt are in the stringTagMap or numberTagMap, is this correct ?

becuase querying stringTagMap[“channel”] =“facebook” does give data but the value for webhookStartAt is missing
08:29
Div
08:29 AM
Srikanth?
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
08:37 AM
What is the type of webhookStartAt ?
Div
Photo of md5-69a12cc92bad5b259938b070788a11aa
Div
09:09 AM
Srikanth

          span.setAttributes({
            channel: channel,
            webhookSentAt: msgTimestamp,
            webhookReceivedAt: curTz.getTime(),
            webhookProcessingFinishedAt: new Date().getTime(),
          });

this is what we are sending to signoz, so it must be number
09:11
Div
09:11 AM
got it, its in numberTagMap