Commit Graph

50 Commits

Author SHA1 Message Date
Alan West 89a740e20a
MetricReader TemporalityPreference (#3153) 2022-04-12 13:00:04 -07:00
Alan West 879d3c91a0
Always generate a new metric stream for each view an instrument matches (#3148) 2022-04-12 12:05:34 -07:00
Piotr Kiełkowicz c2ab8d4d8a
Replace TestExporter by InMemoryExporter in MetricAPITest (#3150) 2022-04-08 06:56:06 -07:00
Alan West 23609730dd
Fix bug with multiple views mapping to a single metric stream (#3006)
* Add test demonstrating bug with multiple views selecting one instrument

* Prevent duplicate metric point updates

* Fix formatting

* Update changelog

* No ranges

* Add comment

* Unused using

* Expand instrument registration to consider tags from view

* Fix logic and copy tag keys array

* Fix null check

* Fix formatting

* Include histogram bounds in metric stream identity

* Rename InstrumentIdentity -> MetricStreamIdentity

* Rename instrumentIdentity

* Another test. Two views. Same tags.

* Remove readonly modifier

* Fix hash computation

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-04-06 15:30:24 -07:00
Travis Illig 7ed97be908
Fix analyzers (#3053) 2022-04-01 07:46:32 -07:00
Mikel Blanchard 213fc03553
Metrics: Improve perf by moving timestamps off of MetricPoint (#3082) 2022-03-31 11:55:14 -07:00
Cijo Thomas c78769cbea
Improve log message for unsupported Instrument (#3124) 2022-03-31 10:11:25 -07:00
Mikel Blanchard f4406b1bbb
Metric Views: MetricStreamConfiguration API improvements (Version 2) (#3117) 2022-03-30 18:11:26 -07:00
Alan West ffffe5cc5a
Allow duplicate instrument registration (#2916) 2022-03-04 17:16:14 -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
Reiley Yang 1b5765bf43
Support question mark in wildcard (#2875) 2022-02-10 12:15:11 -08:00
Cijo Thomas d421cf0306
Minor improvement to observable counter test (#2832) 2022-01-29 17:56:58 -08:00
Cijo Thomas b6d45ccb46
Minor improvement to duplicate instrument test (#2833) 2022-01-29 17:20:11 -08:00
Cijo Thomas fbf4f5df61
Add unit test to validate Metric name description (#2828) 2022-01-28 12:57:30 -08:00
Cijo Thomas b3b682a0e4
Add test to cover spatial aggregation bug (#2823) 2022-01-28 11:47:41 -08:00
Utkarsh Umesan Pillai d4cf69301d
Add unit test to check that metric dimensions are order insensitive (#2788) 2022-01-18 16:27:10 -08:00
Mikel Blanchard cf3b119edd
Metrics: MetricPointValueStorage explicit layout struct part2 (#2718) 2022-01-11 17:59:27 -08:00
Michael Maxwell 1ff1155852
Metrics Multithreaded Tests - Histogram (#2367) 2022-01-10 11:33:57 -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
Mikel Blanchard 71f5fb00a8
Metrics: Use ReadOnlyTagCollection to encapsulate key/values on MetricPoint (#2642) 2021-11-20 13:59:22 -08:00
Cijo Thomas 5dcf29f770
Allow ability to override max Metric streams and MetricPoints per stream (#2635) 2021-11-19 10:50:16 -08:00
Utkarsh Umesan Pillai ca291422ff
Add support for multiple readers (#2596) 2021-11-19 07:49:47 -08:00
Alan West 61cb92a18e
Allow duplicate metric name when meter is different (#2634) 2021-11-17 17:16:51 -08:00
Cijo Thomas ac98506ed4
Delta exporters will Export only those points which received new update (#2629) 2021-11-17 11:04:14 -08:00
Reiley Yang f09f62b026
Test improvements (#2612) 2021-11-15 18:28:58 -08:00
Cijo Thomas 9fed161c3a
Handle instrument disposal (#2585) 2021-11-10 09:43:13 -08:00
Reiley Yang 0ed4ed64f0
consolidate/cleanup SA1000 (#2577) 2021-11-09 14:10:01 -08:00
Michael Maxwell 7d6a22fe35
Unique test meter names (#2549) 2021-11-06 18:32:30 -07:00
Michael Maxwell c085504462
Replace use of TestExporter with InMemoryExporter (#2562) 2021-11-05 09:35:49 -07:00
Joao Grassi 1d16b0abc7
Add validation to instrument and view name (#2470) 2021-11-02 09:59:12 -07:00
yunl 4bc68a74da
Changes around MeterProviderSdk, resolving pending comments. (#2474) 2021-10-11 15:55:07 -07:00
yunl c79ad989fd
Added wildcard support for meter sources. (#2459) 2021-10-09 10:23:16 -07:00
Cijo Thomas dd6b11bafa
Handle exception from observable instruments (#2457) 2021-10-06 13:06:35 -07:00
Cijo Thomas 5c7feb0931
Rename AddSource to AddMeter to better reflect intent (#2454) 2021-10-06 09:56:15 -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 7bd3de95a5
Unit test for metric stream duplication (#2408) 2021-09-23 12:26:18 -07:00
Michael Maxwell 256fc2d2fe
Use `Stopwatch.StartNew()` (#2403) 2021-09-22 14:35:15 -07:00
Cijo Thomas a538016593
Disallow multiple metric streams of same name. (#2392) 2021-09-20 21:52:11 -07:00
Cijo Thomas 36e8915a21
AggregatorStore to use concurentdictionary (#2339) 2021-09-17 11:22:23 -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 f88f3fe3ad
Support async counter for long (#2279) 2021-08-24 09:45:50 -07:00
Cijo Thomas bd69bd6d29
Refactor Aggregator and Export data structure (#2214) 2021-08-02 09:15:18 -07:00
Cijo Thomas 175154e195
Add a basic metric test for multi-thread update (#2205)
* Add a basic metric test for multi-thread update

* nulklable
2021-07-28 17:35:33 -07:00
Cijo Thomas 7c611c8537
Metrics to Main (#2174) 2021-07-22 07:35:38 -07:00