Commit Graph

1478 Commits

Author SHA1 Message Date
Reiley Yang 31a2d673da
Improve PrometheusExporter example (#2649)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-20 09:10:03 -08:00
Reiley Yang 81cc49c3ba
Leverage PrometheusExporter in stress test (#2640) 2021-11-20 07:18:36 -08:00
Utkarsh Umesan Pillai b16348ffe4
Update MetricView benchmarks (#2647) 2021-11-19 17:17:18 -08:00
Cijo Thomas 3a516f3357
Add doc about metric limits (#2645) 2021-11-19 15:17:13 -08:00
Cijo Thomas 05cdc2c76d
Public workflow to use .NET 6.0 (#2644) 2021-11-19 12:02:12 -08:00
Cijo Thomas 29ad13ca95
1.2.0-beta2 release - update changelogs (#2643) 2021-11-19 11:47:33 -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
Svetlana Brennan 03313e7b02
Fix metric export interval to match spec (#2641) 2021-11-18 17:34:44 -08:00
Cijo Thomas 66d2621170
Rename histogram configuration bucketbounds to boundaries (#2638) 2021-11-17 20:26:03 -08:00
Cijo Thomas 1be29c85cc
Remove unused files (#2637) 2021-11-17 19:53:03 -08:00
Vishwesh Bankwar 98d32c163f
Http client instrumentation read me typo fix (#2632) 2021-11-17 18:47:13 -08:00
Alan West 61cb92a18e
Allow duplicate metric name when meter is different (#2634) 2021-11-17 17:16:51 -08:00
Reiley Yang 9b8f6f9c9a
Fix Prometheus serialization bug (#2636)
* fix prometheus serialization bug

* nit
2021-11-17 16:14:46 -08:00
Cijo Thomas a6ead4c1db
Rename SnapShot to Snapshot (#2631) 2021-11-17 11:36:59 -08:00
chertby a68fb70aa5
test: #2534 Replace use of TestExporter with InMemoryExporter (#2630) 2021-11-17 11:18:21 -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 5325185d02
Prometheus exporter minor cleanup (#2625)
* Minor cleanup

* quote
2021-11-16 21:12:09 -08:00
Reiley Yang 78fda233b2
Cleanup Prometheus exporter (#2623) 2021-11-16 15:44:38 -08:00
Oleksiy Dubinin 8b3501ac84
Otlp http exporter: allow endpoint override (#2492)
* #2483: added read-only option properties for traces and metrics and adjusted them according to spec. when reading it from environment variables + allow Endpoint override

* #2483: fixed text formatting to fulfill build checks

* #2483: removed trailing spaces + try auto properties for successful build

* #2492: can't avoid traces and metrics endpoints adjustment

* #2492: introduced endpoint default constant

* #2483: changed property descriptions

* #2492: Uri instead of string as default for endpoint

* Apply suggestions from code review

- improved descriptions and README for new added properties

Co-authored-by: Joao Grassi <joao@joaograssi.com>

* #2492: initialize internal endpoint variable in constructor instead of property

* #2492: extracted from options and stored export traces uri in export client + fixed unit test

* #2492:
- got rid of traces and metrics endpoints in exporter options as it should be considered along with per-signal env. vars. and out of scope of this issue
- traces and metrics relative paths append logic is located in corresponding AddOtlpExporter methods where call scope is known

* #2492: fixed misspelling

* #2492: fixed tests

* #2492: renaming and rephrasing as suggested in review

* #2492: use helper methods for reading env vars + proper variable naming and improved comments

* #2492: review suggestions + actualized test names

Co-authored-by: Joao Grassi <joao@joaograssi.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-16 15:27:27 -08:00
Reiley Yang 116a101732
Sanity improvements (#2614) 2021-11-16 12:26:06 -08:00
Mikel Blanchard ce31354dfb
JaegerExporter: binary thrift over http (#2574)
* WIP to support jaeger http to collector.

* Bug fixes and public api.

* Updated Thrift README + CHANGELOG. Fixed broken tests + benchmarks.

* Buffer size tweak.

* Updated README for new settings.

* Lint.

* Removed unused code.

* Debug.Assert code review.

* Code review.

* Nits.

* Cleaned up example code.

* Exclude net5.0 from api compat check.
2021-11-16 11:44:10 -08:00
Cijo Thomas 580140f847
changelog fix (#2617) 2021-11-16 10:59:58 -08:00
Mikel Blanchard ca20c80c96
Return "Last-Modified" header from scrape endpoints. (#2613) 2021-11-16 09:17:12 -08:00
Reiley Yang f09f62b026
Test improvements (#2612) 2021-11-15 18:28:58 -08:00
Mikel Blanchard e871c27316
PrometheusExporter: New concurrency handling for scrape middleware + http server (#2610)
* PoC for coordinating prometheus pull threads.

* Allocation free on .NET Core 3.1+ & locks are now tied to a specific exporter.

* Use CollectionManager in HttpServer. Remove delegate allocation.

* Bug fixes and benchmark updates.

* Configurable cache duration & bug fixes.

* Unit tests and bug fixes.

* More interesting unit test.

* Sealed PrometheusCollectionManager.

* Nits.

* CHANGELOG update.

* Doc tweaks.

* README update.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-15 12:02:03 -08:00
Mikel Blanchard 770a367b39
Don't allocate a stopwatch if it isn't going to be used. (#2608)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-15 10:17:17 -08:00
Reiley Yang a2a8061ccf
Avoid alias for InMemoryExporter (#2609) 2021-11-15 09:49:16 -08:00
Reiley Yang 5e369a6af1
update promtheus exporter benchmark (#2607) 2021-11-14 17:00:04 -08:00
Vishwesh Bankwar 252437d1ea
enable public api check (#2597)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-12 18:36:40 -08:00
Alan West 436fdebb89
Update OTLP proto to v0.11.0 (#2606) 2021-11-12 14:01:27 -08:00
Reiley Yang 3fbf1d98df
Improve Prometheus example (#2601) 2021-11-12 11:29:26 -08:00
Reiley Yang df756ee50d
Upgrade stylecop to 1.2.0-beta.354 (#2602) 2021-11-12 11:20:41 -08:00
Phillip Carter 427e50a38a
Update SpanContext summary doc (#2603)
Erroneously mentioned it was a class when it's a struct.
2021-11-12 09:31:03 -08:00
Reiley Yang 4929bfd1ac
enable C# 10 (#2599) 2021-11-11 20:27:22 -08:00
yunl 4c22707a98
Update metrics benchmarks using net6.0 (#2591) 2021-11-10 16:06:28 -08:00
Cijo Thomas 9fed161c3a
Handle instrument disposal (#2585) 2021-11-10 09:43:13 -08:00
Reiley Yang bb2b743fc8
Realloc when run out of serialization buffer (#2584) 2021-11-09 21:54:22 -08:00
Reiley Yang f0311751d5
Do not export metrics description if it is empty (#2583) 2021-11-09 19:22:45 -08:00
Cijo Thomas 9ad2cfbec9
Metric description and unit to be treated as empty string when not provided (#2580) 2021-11-09 17:41:46 -08:00
Reiley Yang 5d32724792
Bump DiagnosticSource version to 6.0.0 (#2582) 2021-11-09 17:26:43 -08:00
Vishwesh Bankwar 4f697ee6c0
update rc versions to stable (#2581) 2021-11-09 17:00:44 -08:00
Reiley Yang 27b63614e3
Add unit as metric name suffix in PrometheusExporter (#2578) 2021-11-09 16:38:16 -08:00
Reiley Yang 0ed4ed64f0
consolidate/cleanup SA1000 (#2577) 2021-11-09 14:10:01 -08:00
Reiley Yang 11654f19e2
Solve PrometheusExporter race condition (step 1) (#2553)
* prom prototype

* minor refactor

* improve mem

* skeleton of the PrometheusSerializer

* a working server

* clear up test

* specialize netframework

* clean up

* update test

* fix unit test

* minor improvement

* comment

* escape metric names

* handle inf/nan

* minor name change

* nit

* more assertion

* patch for old frameworks

* add comment explaining why we use empty string if the label value is null

* Updated PrometheusExporterMiddleware for new PrometheusSerializer API.

* Added some exception handling.

* Test fix.

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2021-11-09 13:30:28 -08:00
Michael Maxwell 05990ae783
Throw on invalid histogram bounds (#2573) 2021-11-08 21:47:56 -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
Michael Maxwell c085504462
Replace use of TestExporter with InMemoryExporter (#2562) 2021-11-05 09:35:49 -07:00
Vishwesh Bankwar 4f930d5074
Enable .net6.0 build and add net6.0 target (#2559) 2021-11-04 08:33:35 -07:00