-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
sdk/log: Add minimum level enabled processor #5078
Closed
MrAlias opened this issue
Mar 15, 2024
· 2 comments
· Fixed by open-telemetry/opentelemetry-go-contrib#5817
Closed
sdk/log: Add minimum level enabled processor #5078
MrAlias opened this issue
Mar 15, 2024
· 2 comments
· Fixed by open-telemetry/opentelemetry-go-contrib#5817
Milestone
Comments
pellared
added
pkg:SDK
Related to an SDK package
area:logs
Part of OpenTelemetry logs
labels
Mar 15, 2024
pellared
changed the title
Add minimum level enabled processor
sdk/log: Add minimum level enabled processor
Mar 15, 2024
I think we should first add the processor to the specification before introducing it to the SDK. Alternatively we could add it to contrib. For now I decided to use it as an example. |
User feedback requesting this feature: https://cloud-native.slack.com/archives/C01NPAXACKT/p1719249110767979 |
MrAlias
added a commit
to open-telemetry/opentelemetry-go-contrib
that referenced
this issue
Jul 1, 2024
Resolve open-telemetry/opentelemetry-go#5078 Add the experimental `minsev` module. This module provides a log processor that thresholds all records recorded to being above a minimum severity. ### Benchmarks ``` goos: linux goarch: amd64 pkg: go.opentelemetry.io/contrib/processors/minsev cpu: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz │ new.txt │ │ sec/op │ LogProcessor/Base-8 20.53n ± 2% LogProcessor/Enabled-8 41.27n ± 5% LogProcessor/Disabled-8 22.34n ± 8% geomean 26.65n │ new.txt │ │ B/op │ LogProcessor/Base-8 0.000 ± 0% LogProcessor/Enabled-8 0.000 ± 0% LogProcessor/Disabled-8 0.000 ± 0% geomean ¹ ¹ summaries must be >0 to compute geomean │ new.txt │ │ allocs/op │ LogProcessor/Base-8 0.000 ± 0% LogProcessor/Enabled-8 0.000 ± 0% LogProcessor/Disabled-8 0.000 ± 0% geomean ¹ ¹ summaries must be >0 to compute geomean ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a processor users can wrap other processors in that will only log records at or above a provided minimum severity level.
https://github.com/open-telemetry/opentelemetry-go/blob/65e032dd16b20e376eae5a7a5956fa811783389b/sdk/log/min_sev.go
The text was updated successfully, but these errors were encountered: