Skip to content

Commit d28d9a7

Browse files
committed
[formats] change timestamp-point-of-reference::send to end
1 parent bdae74f commit d28d9a7

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/schemas/format-v1.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"description": "The relation of the timestamp to the operation that the message refers to.",
156156
"type": "string",
157157
"enum": [
158-
"send",
158+
"end",
159159
"start"
160160
]
161161
},

docs/source/formats.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ object with the following fields:
288288
conjunction with :code:`duration-field` to determine time spans in the
289289
TIMELINE view. The following values are supported:
290290

291-
:send: The timestamp indicates when the message was sent/logged.
291+
:end: The timestamp indicates when the message was sent/logged.
292292
This is the default.
293293
:start: The timestamp indicates when the operation started. The
294294
operation's time span will extend from the timestamp to the

src/log_format.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ log_opid_state::insert_op(ArenaAlloc::Alloc<char>& alloc,
235235
if (duration > 0us) {
236236
auto other_us = us;
237237
switch (poref) {
238-
case timestamp_point_of_reference_t::send:
238+
case timestamp_point_of_reference_t::end:
239239
other_us -= duration;
240240
break;
241241
case timestamp_point_of_reference_t::start:

src/log_format.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public:
334334
std::vector<const char*> lf_timestamp_format;
335335
unsigned int lf_timestamp_flags{0};
336336
timestamp_point_of_reference_t lf_timestamp_point_of_reference{
337-
timestamp_point_of_reference_t::send};
337+
timestamp_point_of_reference_t::end};
338338
std::map<std::string, action_def> lf_action_defs;
339339
std::vector<highlighter> lf_highlighters;
340340
bool lf_is_self_describing{false};

src/log_format_fwd.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
class log_format;
6262

6363
enum class timestamp_point_of_reference_t : uint8_t {
64-
send,
64+
end,
6565
start,
6666
};
6767

src/log_format_loader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ static constexpr json_path_handler_base::enum_value_t SUBSECOND_UNIT_ENUM[] = {
448448
};
449449

450450
static constexpr json_path_handler_base::enum_value_t TS_POR_ENUM[] = {
451-
{"send"_frag, timestamp_point_of_reference_t::send},
451+
{"end"_frag, timestamp_point_of_reference_t::end},
452452
{"start"_frag, timestamp_point_of_reference_t::start},
453453

454454
json_path_handler_base::ENUM_TERMINATOR,

src/logfile.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ logfile::set_logline_opid(uint32_t line_number, string_fragment opid)
25272527
auto& ll = this->lf_index[line_number];
25282528
auto log_us = ll.get_time<std::chrono::microseconds>();
25292529
auto opid_iter = write_opids->insert_op(
2530-
this->lf_allocator, opid, log_us, timestamp_point_of_reference_t::send);
2530+
this->lf_allocator, opid, log_us, timestamp_point_of_reference_t::end);
25312531
auto& otr = opid_iter->second;
25322532

25332533
otr.otr_level_stats.update_msg_count(ll.get_msg_level());

0 commit comments

Comments
 (0)