05 Apr 2022 03:25 PM
Hi,
I'm able to capture spans with Oneagent.
However, in my app I try to set a defined time for the spans:
Span span1 = spanbuilder1.setStartTimestamp(timestamp1.getTime(),TimeUnit.MILLISECONDS).startSpan();
span1.end(endtimestamp1.getTime(), TimeUnit.MILLISECONDS);
However, on the PP I see the recorded times.
Am i doing something wrong or is this feature not yet available ?
Daniel
Solved! Go to Solution.
06 Apr 2022 09:56 AM
Hi Daniel,
Actually custom timestamps are not supported, but support for this is on the roadmap.
Best
Harry
07 Apr 2022 09:35 AM
Hi Harry,
Really appreciate your answer, I've been busting my head over this!
May I ask - is this true for both Oneagent and the Trace Ingest API?
Daniel
Daniel
07 Apr 2022 09:59 AM
This limitation only applies to OneAgent/OpenTel integration at the moment.
For Trace Ingest, custom timestamps are supported (assuming the the used OpenTelemetry SDK supports it, which is usually the case).
07 Apr 2022 10:02 AM
Hi,
Alright, thank you !
Daniel