tracing 兼容组件的语义约定
状态: 开发中
本文档定义了兼容组件(例如 OpenTracing Shim 层)使用的 trace 语义约定。
OpenTracing
OpenTracing Shim 创建的 Link 必须设置 opentracing.ref_type,并使用接受的值之一,描述子 Span 与父 Span 之间的直接因果关系,如 OpenTracing 所定义。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
opentracing.ref_type | 推荐 | 字符串 | 父子引用类型 [1] | child_of; follows_from |
[1] opentracing.ref_type: 子 Span 与父 Span 之间的因果关系。
opentracing.ref_type 具有以下已知值列表。如果其中一个适用,则必须使用相应的值;否则,可以使用自定义值。
| 值 | 描述 | Stability |
|---|---|---|
child_of | 父 Span 在某种程度上依赖于子 Span | |
follows_from | 父 Span 不以任何方式依赖于子 Span 的结果 |