1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Commit Graph

16 Commits

Author SHA1 Message Date
Sam Xie f1ba32e95e Add benchmark for logger (#5101) 2024-03-26 17:47:30 +01:00
Tyler Yahn 6033938c87 Refactor testing of batching config (#5106)
The BatchingProcessor is not expected to ultimately contain
configuration fields for queue size or export parameters (see #5093).
This will break TestNewBatchingProcessorConfiguration which tests the
configuration by evaluating the BatchingProcessor directly.

Instead, test the batchingConfig and rename the test to
TestNewBatchingConfig to match what is being tested.
2024-03-26 13:22:53 +01:00
Tyler Yahn 32e3a3d994 Implement the BatchingProcessor configuration (#5088)
* Implement the batching config

* Unify on setting type

* Add setting_test.go

* Test NewBatchingProcessor

* Comment setting

* Fix lint

* Check invalid after envar

---------

Co-authored-by: Sam Xie <sam@samxie.me>
2024-03-25 07:50:19 -07:00
Tyler Yahn a5172ab422 Fix spelling errors in batch.go (#5097) 2024-03-22 08:58:02 -07:00
Sam Xie b77a5c3968 sdk/log: ObservedTimestamp should be set (#5091)
* Set ObservedTimestamp

* Update sdk/log/logger.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Reuse value

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-03-22 07:39:01 -07:00
Tyler Yahn 12c5651ec7 Do not alloc multiple noop exporters (#5083) 2024-03-19 10:33:57 -07:00
Sam Xie 77d9192803 Implement logger (#5081)
* Implement logger

* Remove todo comment

* Add tests

* Fix

* Check processors in Enabled method
2024-03-18 16:07:43 -07:00
Tyler Yahn 4580e06de0 Implement the LoggerProvider (#5080) 2024-03-18 06:57:43 +01:00
Tyler Yahn 3542ee68a9 Implement the SimpleProcessor (#5079)
* Implement the SimpleProcessor

* Add BenchmarkSimpleProcessorOnEmit

* Remove stale comment

* Run benchmarks in parallel
2024-03-17 07:47:05 -07:00
Robert Pająk 6fb46a1211 Simplify log design docs (#5077) 2024-03-16 11:06:06 +01:00
Tyler Yahn 3a72c5ea94 Implement the providerConfig (#5074)
* Implement the providerConfig

* Add test for NewLoggerProvider configuration

* Add TestLimitValueFailsOpen

* Fix merge
2024-03-15 10:24:32 -07:00
Tyler Yahn da047e70ef Add the Enabled method to the Logger (#5071)
* Add the Enabled method to the Logger

* Add a changelog entry

* Rename enabled.go to min_sev.go

* Remove MinSeverityProcessor

* Document lack of interaction between OnEmit and Enabled

* Update sdk/log/processor.go

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-03-15 08:15:44 -07:00
Tyler Yahn ca35244789 sdk/log: Implement Record (#5073) 2024-03-14 15:40:48 +01:00
Robert Pająk 54b6ee4174 sdk/log: Scaffolding (#5068) 2024-03-13 17:47:07 +01:00
Robert Pająk 6bc8314a55 [chore] Update open issues in log design docs (#5052) 2024-03-13 09:15:31 +01:00
Robert Pająk 81512d9f31 sdk/log: Add design doc (#4954) 2024-03-13 08:25:05 +01:00