Commit Graph

85 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
Alan West 6c655698fe
Do not apply ExplicitBucketHistogramConfiguration to non-histograms (#3126) 2022-03-31 16:46:10 -07:00
Timothy Mothra ac2a4f4ebb
add Copy methods to MetricPoint and HistogramBuckets to facilitate deep-copying (#3113) 2022-03-31 12:40:02 -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 3e655695e5
Bad View result in ignoring the View but not the instrument itself (#3120) 2022-03-31 10:51:05 -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
Cijo Thomas f8a1f3caa4
Slight improvements to multi reader metric tests (#2936) 2022-02-23 16:43:52 -08:00
Alan West cbc5172d24
MetricReaderOptions for AddInMemoryExporter extension methods (#2931) 2022-02-23 09:56:00 -08:00
Cijo Thomas 8dc2d4afa3
Minor addition to MetricView tests (#2893) 2022-02-11 15:16:31 -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
Cijo Thomas 8138e5ebc5
Fail-fast when using AddView with guaranteed conflict (#2785) 2022-01-13 16:50:20 -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
Michael Maxwell 83fa9fde68
General code improvements (#2744) 2021-12-13 09:42:28 -08:00
Cijo Thomas a5ab670e0b
Rename GetCounterSum to GetSum (#2702) 2021-11-29 11:47:22 -08:00
Mikel Blanchard 284885b070
Metrics: Reduced the public api surface of the MetricPointsAccessor struct (#2695) 2021-11-28 14:17:06 -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 8d339bb740
Update MetricPoint HistogramMeasurements (#2664) 2021-11-23 13:00:39 -08:00
Utkarsh Umesan Pillai 69ef5f86bf
Update MetricPoint for Histograms (#2657) 2021-11-22 16:31:45 -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
Cijo Thomas 66d2621170
Rename histogram configuration bucketbounds to boundaries (#2638) 2021-11-17 20:26:03 -08:00
Alan West 61cb92a18e
Allow duplicate metric name when meter is different (#2634) 2021-11-17 17:16:51 -08:00
Cijo Thomas a6ead4c1db
Rename SnapShot to Snapshot (#2631) 2021-11-17 11:36:59 -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 05990ae783
Throw on invalid histogram bounds (#2573) 2021-11-08 21:47:56 -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
Reiley Yang 87601de2da
Update exporter efficiency test to cover both delta and cumulative (#2541) 2021-10-28 10:18:12 -07:00
Reiley Yang 0c93744d4b
Add a simple memory efficient test for metrics SDK (#2530) 2021-10-27 10:31:01 -07:00
Reiley Yang 84bdf38fe1
Simplify code (#2491) 2021-10-18 10:12:08 -07:00