Skip to content

add span duration option - #96

Merged
oli-obk merged 3 commits into
davidbarsky:mainfrom
seyyed-dev:span-duration
Jul 21, 2026
Merged

add span duration option#96
oli-obk merged 3 commits into
davidbarsky:mainfrom
seyyed-dev:span-duration

Conversation

@seyyed-dev

@seyyed-dev seyyed-dev commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Please first merge #95, then this one

Comment thread examples/duration.rs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly a copy of an existing test, right? Could either use revisions on it or just edit it outright so we just have the small diff showing what changes when you enable closing durations

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* 6387b74 update tests
* 372b1d4 copy tests

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or that 😅

Comment thread examples/duration.stdout
Comment on lines +8 to +10
1:main ├─123ms DEBUG duration connected
1:main ├─123ms DEBUG duration message received, length=2
1:main ┌┘duration::conn peer_addr="82.9.9.9", port=42381 duration=123ms

@seyyed-dev seyyed-dev Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observation: duration=123ms is the part that we want. ├─123ms is a side effect of calling with_timer. with_timer is required to show the duration, and without it, the duration is not shown.

@oli-obk
oli-obk merged commit 281bfad into davidbarsky:main Jul 21, 2026
4 checks passed
@seyyed-dev
seyyed-dev deleted the span-duration branch July 22, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants