https://opentelemetry.io/ja/docs/concepts/signals/traces/#span-status
以下のいずれかの値を設定できる。
**
* An enumeration of status codes.
*/
export declare enum SpanStatusCode {
/**
* The default status.
*/
UNSET = 0,
/**
* The operation has been validated by an Application developer or
* Operator to have completed successfully.
*/
OK = 1,
/**
* The operation contains an error.
*/
ERROR = 2
}
OTel Collectorのconfig内のルールで、このspanのステータスを見た上でバックエンドに流すトレースを選別することができる。