barectf v3.1.0
[barectf.git] / docs / modules / ROOT / pages / whats-new.adoc
CommitLineData
4c8d4e9e 1= What's new in barectf{nbsp}{page-component-display-version}?
016a4d97 2
4c8d4e9e
PP
3Thanks to a https://review.lttng.org/c/barectf/+/7496[contribution from
4Jon Lamb], the xref:how-barectf-works:ctf-primer.adoc#pkt[CTF packets]
5which a barectf-generated tracer writes can contain an
6automatically-incremented **sequence number** in their context field.
7This is useful for a trace reader/analyzer to detect packets lost at
8transport time, for example. https://babeltrace.org/[Babeltrace{nbsp}2]
9supports such a packet context field out of the box.
10
11To enable this new packet feature, set the
12xref:yaml:dst-obj.adoc#seq-num-ft-prop[`sequence-number-field-type`
13property] of the packet features object, for example:
14
15.Data stream type object with an enabled packet sequence number field type feature.
16====
17[source,yaml]
18----
19$features:
20 packet:
21 sequence-number-field-type: true
22event-record-types:
23 # ...
24----
25====
26
27This feature is disabled (false) by default to avoid breaking changes.
28
29The xref:platform:api.adoc#close[packet closing function] automatically
30increments the current packet sequence number of the barectf context.
31Within platform code, you can get the current value with
32xref:platform:api.adoc#barectf-pkt-seq-num-func[`barectf_packet_sequence_number()`].
This page took 0.024161 seconds and 4 git commands to generate.