https://signoz.io logo
#general
Title
# general
s

seongbeen

05/26/2022, 2:19 PM
Hey Team, When fetching spans, in query service code, it uses timestamp to querying datas. Isn’t span.startTime a better option because timestamp only refers when database transaction happens? Maybe I’m misunderstanding something… for whatever reasons there could be a small gap between when trace data retrieved and and the time when it exported into clickhouse?
p

Pranay

05/26/2022, 2:46 PM
@Vishal Sharma do you have more insights on this
v

Vishal Sharma

05/26/2022, 2:48 PM
Hey @seongbeen,
timestamp
is inserted with
span.startTime
So
timestamp
column refers start time of span Check this line on our collector: https://github.com/SigNoz/opentelemetry-collector-contrib/blob/56e9e96015b99a60174c6fbbd63780c675ca4623/exporter/clickhouseexporter/writer.go#L146
s

seongbeen

05/26/2022, 2:53 PM
Thank you @Vishal Sharma! I thought is was just timestamp..
👍 1
4 Views