Closed pdegenhardt closed 5 months ago
Thanks for the report @pdegenhardt - that's certainly a strange one! I've copied the structure of your code into a repro project but at least with ten runs, everything looks fine to me.
Is the problem regularly reproducible? Clock jitter would go some way to explaining it as a one-off, but otherwise I think trying to comment out code until you have a minimal reproduction is the most likely route to a successful diagnosis.
Server-side the timestamps are stored as-is, so it seems most likely that the issue is client-side, but nothing can be completely ruled out, unfortunately.
@nblumhardt Ok thanks! I was suspecting it might be down to the OTLP batch exporter. Will do some more experimenting.
There aren't any Seq settings or configuration knobs that cause the @t property to take on the timestamp that the event is received at the server, rather than the value that is transmitted? (The Seq server is quite some network distance from the server generating the spans)
Hi @pdegenhardt
There is a 'Use server timestamps' option on API keys.
@liammclennan Thanks so much! That was it.
Describe the bug I have a couple of child
System.Diagnostics.Activity
instances, which are executed in sequence: aninitialize
and anexecute
inside a command handler. In some instances theinitialize
activity is appearing in the trace AFTER theexecute
activity.To Reproduce I am using the following code in to create the parent and child activities.
If I look at the JSON for each span, I can see the following:
Expected behavior The
initialize
activity should appear BEFORE theexecute
activity.Screenshots
I have tried calling SetStartTime and SetEndTime on each of the child activities but this does not rectify the problem.
Environment (please complete the following information):
Additional context OpenTelemetry.Exporter.OpenTelemetryProtocol 1.9.0
Tracing initialization is as follows: