> Source: https://www.ymotongpoo.com/works/otel-specs-ja/semconv/general/trace-compatibility/


# トレースの互換性コンポーネントに関するセマンティック規約

**ステータス**: [Development][DocumentStatus]

この文書は、互換性コンポーネント（例えばOpenTracing Shimレイヤー）で使われるトレースのセマンティック規約を定義します。

## OpenTracing

OpenTracing Shimによって作成される `Link` は、[OpenTracing](https://github.com/opentracing/specification/blob/master/specification.md)で定義されている、子スパンと親スパンの間の直接的な因果関係を表す、受け入れられている値のいずれかを持つ `opentracing.ref_type` を設定しなければなりません（MUST）。

<!-- semconv opentracing -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

**Attributes:**

| Key | Stability | [Requirement Level](/works/otel-specs-ja/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`opentracing.ref_type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/opentracing/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | 親子間の参照種別 [1] | `child_of`; `follows_from` |

**[1] `opentracing.ref_type`:** 子スパンと親スパンの間の因果関係。

---

`opentracing.ref_type` には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `child_of` | 親スパンが、何らかの形で子スパンに依存している | ![Development](https://img.shields.io/badge/-development-blue) |
| `follows_from` | 親スパンが、子スパンの結果に一切依存していない | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

[DocumentStatus]: https://opentelemetry.io/docs/specs/otel/document-status

