본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Error

원문 보기 위키 갱신

이 문서는 오류 보고에 사용되는 공용 속성을 정의해요.

출처: 문서

본문

  • Error 속성
  • 폐기된(Deprecated) Error 속성

Error 속성

이 문서는 오류 보고에 사용되는 공용 속성을 정의해요.

속성:

| | Key | Stability | Value Type | Description | Example Values

| error.type | | string | Describes a class of error the operation ended with. [1] | timeout; java.net.UnknownHostException; server_certificate_invalid; 500

[1] error.type: The error.type SHOULD be predictable, and SHOULD have low cardinality.

When error.type is set to a type (e.g., an exception type), its canonical class name identifying the type within the artifact SHOULD be used.

If the recorded error type is a wrapper that is not meaningful for failure classification, instrumentation MAY use the type of the inner error instead. For example, in Go, errors created with fmt.Errorf using %w MAY be unwrapped when the wrapper type does not help classify the failure.

Instrumentations SHOULD document the list of errors they report.

The cardinality of error.type within one instrumentation library SHOULD be low. Telemetry consumers that aggregate data from multiple instrumentation libraries and applications should be prepared for error.type to have high cardinality at query time when no additional filters are applied.

If the operation has completed successfully, instrumentations SHOULD NOT set error.type.

If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes), it’s RECOMMENDED to:

  • Use a domain-specific attribute
  • Set error.type to capture all errors, regardless of whether they are defined within the domain-specific set or not.

error.type 는 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 해당된다면 해당 값을 반드시 사용해야 하고, 그렇지 않다면 사용자 정의 값을 사용해도 돼요. | | Value | Description | Stability

| _OTHER | A fallback error value to be used when the instrumentation doesn’t define a custom value. |

폐기된(Deprecated) Error 속성

이 문서는 오류 보고에 사용되는 폐기된 속성을 정의해요.

속성:

| | Key | Stability | Value Type | Description | Example Values

| error.message | Use domain-specific error message attribute. For example, use feature_flag.error.message for feature flag errors. | string | A message providing more detail about an error in human-readable form. [2] | Unexpected input type: string; The user has exceeded their storage quota

[2] error.message: error.message should provide additional context and detail about an error. It is NOT RECOMMENDED to duplicate the value of error.type in error.message. It is also NOT RECOMMENDED to duplicate the value of exception.message in error.message.

error.message is NOT RECOMMENDED for metrics or spans due to its unbounded cardinality and overlap with span status.