Dynatrace / OneAgent-SDK-for-C

Enables custom tracing of native applications in Dynatrace
https://www.dynatrace.com/support/help/extend-dynatrace/oneagent-sdk/what-is-oneagent-sdk/
Apache License 2.0
20 stars 3 forks source link

Cannot obtain span_id and trace_id #17

Closed skrystos closed 1 year ago

skrystos commented 1 year ago

Describe the bug I'm trying to obtain span_id and trace_id after starting incomming web request tracer using same code as in example. Unfortunately span_id and trace_id are nils. I don't have zeros like in description. Anything more has to be done to make it work? Traces are normally visible in Dynatrace

To Reproduce Start incomming_web_request tracer try to obtain span and trace_id

skrystos commented 1 year ago

Issue was on my side (params were returned from function (span_id and trace_id) and were wrongly accessed from memory. My bad