Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core-trace: use ExitCase to build attributes in Histogram#recordDuration #761

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Sep 7, 2024

There is also a major behavior change: recordDuration no longer adds cause attribute by default.

To preserve old behavior, users must use histogram.recordDuration(TimeUnit.SECONDS, Histogram.recordCause).

Motivation

cause attribute is opinionated and doesn't go along with most of the semantic conventions.
In most conventions, it would be error.type instead.

@iRevive iRevive added the tracing Improvements to tracing module label Sep 7, 2024
@iRevive iRevive merged commit 35b7b52 into typelevel:main Sep 11, 2024
10 checks passed
@iRevive iRevive deleted the core-trace/histogram-record branch September 11, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracing Improvements to tracing module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants