Skip to main content

report span status in otel trace export

In the current trace export implementation, the span status attribute is “OK” if when the specific span failed and the checkly.status span attribute says “FAILED”).

Even if the overall trace status is different, it would be great to report the span-status based on the specific check operation. https://opentelemetry.io/docs/concepts/signals/traces/#span-status

1 comment

Log in to comment and vote

Comments1

  • María de Antón

    •

    Jan 22, 2025

    Thank you so much for your feedback, @esara!

    To connect checks to the corresponding spans out there, the span we generate, and the one you can export, is the root.span, you can tell because it has no parent.id.

    • check.status describes exactly the result of the check, not taking into account the trace/span statuses

    • the root.span covers the entire operation, from beginning to end

    Given these, these statuses are distinct and unlinked. A Check can fail, but its trace is successful; due to the check expecting a different payload, but all working well on your app, or a component not being there anymore.

    The same thing happens the other way around: the Check can succeed but then have span errors in the trace that are not affecting the Check result in any way whatsoever.

    It’s important to know if there are errors (or not) in the child spans and that the root.span provides an accurate overview of the entire operation.


    Does this make sense?

    Of course, I am leaving this open for more feedback :) and thank you, again!