File tree 2 files changed +10
-4
lines changed
packages/opentelemetry-types/src/trace
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,11 @@ export interface SpanContext {
39
39
* Trace options to propagate.
40
40
*
41
41
* It is represented as 1 byte (bitmap). Bit to represent whether trace is
42
- * sampled or not.
43
- * SAMPLED_VALUE = 0x1 and NOT_SAMPLED_VALUE = 0x0;
42
+ * sampled or not. When set, the least significant bit documents that the
43
+ * caller may have recorded trace data. A caller who does not record trace
44
+ * data out-of-band leaves this flag unset.
45
+ *
46
+ * SAMPLED = 0x1 and UNSAMPLED = 0x0;
44
47
*/
45
48
traceOptions ?: TraceOptions ;
46
49
/**
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- export interface TraceOptions {
18
- // TODO
17
+ export enum TraceOptions {
18
+ /** Bit to represent whether trace is unsampled in trace options. */
19
+ UNSAMPLED = 0x0 ,
20
+ /** Bit to represent whether trace is sampled in trace options. */
21
+ SAMPLED = 0x1 ,
19
22
}
You can’t perform that action at this time.
0 commit comments