ocaml-opentelemetry icon indicating copy to clipboard operation
ocaml-opentelemetry copied to clipboard

Traceid and spanid should be optional in a log record

Open saroupille opened this issue 1 year ago • 2 comments

According to https://opentelemetry.io/docs/specs/otel/logs/data-model/ traceid and spanid should be optional in a log record.

saroupille avatar Oct 03 '24 12:10 saroupille

dully noted. could we use dummy trace_id/span_id to avoid the option?

c-cube avatar Oct 03 '24 21:10 c-cube

Your suggestion is to always export a trace_id/span_id, but a dummy one if none is provided by the user?

Why do you prefer to have that than an option?

francoisthire avatar Mar 12 '25 15:03 francoisthire