Commit Graph

36 Commits

Author SHA1 Message Date
Utkarsh Umesan Pillai 3157b5ce12
Remove unnecessary using statements (#4023)
* Remove unnecessary using statements from docs, examples, benchmarks and stress tests
2022-12-20 11:20:15 -08:00
Cijo Thomas be78372696
Minor perf tweaks in Metrics (#3867) 2022-11-04 12:40:24 -04:00
Cijo Thomas 91607e7d77
More performance improvement when views are used (#3864) 2022-11-04 09:40:07 -04:00
Cijo Thomas 2c6dc2659b
Add net70 to benchmarks (#3824) 2022-10-26 18:55:46 -04:00
Michael Maxwell 9c3d1b11f8
Binary search for large bucket count histograms (#3252)
* Binary search for large bucket count histograms

* Update CHANGELOG.md

* netcoreapp3.1 was complaining

* ci rerun

* ci rerun

* Update MetricTestData.cs

* use 400 buckets

* Update ExplicitBucketHistogramConfiguration.cs

Binary search for large bucket count histograms

Update CHANGELOG.md

netcoreapp3.1 was complaining

ci rerun

ci rerun

Update MetricTestData.cs

use 400 buckets

* separate nan part

* Address PR comments

- Remove conversion to float from `FindHistogramBucketIndexBinary`
- Make `DefaultHistogramCountForBinarySearch` a `const` instead of a `static readonly`

* update to 140

* remove double.nan from invalid hist bounds

* Refactor and perf to histogram bucket index find

Thanks to @CodeBlanch !!

* fine tune bound limit to switch to binary search

* included benchmark results in comment

* new bench result

* histogram stress test update

* fix changelog

* spacing fix

* sealed bucket class

* ci

* double.negative infinity

* update order of operations

when testing with large MaxValue this would end up having same value bounds

* remove stress test change

* ci

* Add histogram binary mode tests

* ci

* pr review changes

* allocated column - hist benchmark

* CI

Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-09-02 11:02:00 -07:00
Michael Maxwell c261a67005
Control `MemoryDiagnoser` benchmark option via CLI instead of code (#3085) 2022-04-12 13:42:33 -07:00
Alan West 89a740e20a
MetricReader TemporalityPreference (#3153) 2022-04-12 13:00:04 -07:00
Travis Illig 7ed97be908
Fix analyzers (#3053) 2022-04-01 07:46:32 -07:00
Alan West a709cfd2a9
Clean up metric reader options (#3038) 2022-03-15 07:20:09 -07:00
Travis Illig 2a97920ff0
Fix IDE0090: 'new' expression can be simplified. (#3012)
* Set rule for new() usage.

* Fix IDE0090 "'new' expression can be simplified"
2022-03-10 08:57:53 -08:00
Utkarsh Umesan Pillai abea4b60f6
Minor refactoring (#2987)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-03-07 20:29:17 -08:00
Utkarsh Umesan Pillai ff20a89a37
Update Histogram benchmarks (#2944) 2022-03-01 21:31:25 -08:00
Utkarsh Umesan Pillai 69817953f1
Update Metrics Benchmarks (#2943) 2022-02-25 10:40:26 -08:00
Cijo Thomas 1dec9bd58d
Add comments and fix few todos in Metrics (#2939) 2022-02-24 11:55:26 -08:00
Alan West cbc5172d24
MetricReaderOptions for AddInMemoryExporter extension methods (#2931) 2022-02-23 09:56:00 -08:00
Michael Maxwell fe7b917365
Histogram Record Method Benchmark (#2754) 2022-02-03 16:06:06 -08:00
Utkarsh Umesan Pillai 33f3596b4b
Make MetricPoint access from MetricPointAccessor readonly (#2736) 2021-12-14 07:48:57 -08:00
Cijo Thomas a5ab670e0b
Rename GetCounterSum to GetSum (#2702) 2021-11-29 11:47:22 -08:00
Utkarsh Umesan Pillai 9e83587a55
Update Metric Point for Counter and Gauge (#2667) 2021-11-24 11:46:06 -08:00
Reiley Yang fb161af939
Refactor temporality to align with the spec (#2666) 2021-11-23 13:49:29 -08:00
Utkarsh Umesan Pillai b16348ffe4
Update MetricView benchmarks (#2647) 2021-11-19 17:17:18 -08:00
Reiley Yang a2a8061ccf
Avoid alias for InMemoryExporter (#2609) 2021-11-15 09:49:16 -08:00
yunl 4c22707a98
Update metrics benchmarks using net6.0 (#2591) 2021-11-10 16:06:28 -08:00
Cijo Thomas 8029751d92
Metrics hotpath benchmark updates (#2571) 2021-11-08 09:54:43 -08:00
Michael Maxwell 7d6a22fe35
Unique test meter names (#2549) 2021-11-06 18:32:30 -07:00
Cijo Thomas 5c7feb0931
Rename AddSource to AddMeter to better reflect intent (#2454) 2021-10-06 09:56:15 -07:00
Cijo Thomas 2cb0aa8dd8
Benchmark and stress test improvements (#2447) 2021-10-04 23:22:14 -07:00
Utkarsh Umesan Pillai 7b26a647a3
Update Metrics Benchmarks (#2418)
* Add benchmarks for TagList

* Update the benchmark results in the comments

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-09-28 11:19:38 -07:00
Mikel Blanchard 38ee521b24
Hosting: Support metrics registration via IServiceCollection & deferred configuration (#2412)
* Add metrics support to hosting lib.

* Bug fixes and some public api additions.

* Added missing zipkin publicapi files.

* Unit tests.

* CHANGELOG updates

* Fixes

* Code review.

* Update src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md

Co-authored-by: Reiley Yang <reyang@microsoft.com>

* Code review.

* Warning fixup.

Co-authored-by: Reiley Yang <reyang@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-09-27 10:30:10 -07:00
Cijo Thomas c4e467b3f9
Update to RC1 of DiagnosticSource (#2378) 2021-09-17 13:04:47 -07:00
Reiley Yang 886b39f0fa
Refactor MetricExporter AggregationTemporality (#2347) 2021-09-13 21:35:53 -07:00
Reiley Yang bec00a9a92
Refactor MetricReader AggregationTemporality (#2342) 2021-09-13 11:05:37 -07:00
Cijo Thomas 16b3188496
Metrics -> Main (#2332)
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Michael Maxwell <micmax@microsoft.com>
2021-09-10 15:34:54 -07:00
Cijo Thomas 7db5ec8dcb
Modify benchmarks to not use static tags (#2201) 2021-07-28 10:52:20 -07:00
Cijo Thomas 2476bdb219
Fix ObjectEqualityComparer used in aggregatorstore (#2177) 2021-07-22 13:23:16 -07:00
Cijo Thomas 7c611c8537
Metrics to Main (#2174) 2021-07-22 07:35:38 -07:00