Commit Graph

158 Commits

Author SHA1 Message Date
Reiley Yang 27658f058c
Improve PrometheusHttpListener options (#3521) 2022-08-02 15:39:41 -07:00
Reiley Yang 8d5d3d6ee8
Dust off Prometheus Exporters (#3507) 2022-08-01 10:33:00 -07:00
Yun-Ting Lin cd6043bbf7
[Prometheus] Split up projects based on hosting mechanism. (#3430) 2022-07-28 16:02:53 -07:00
Mikel Blanchard bfabe9bc26
[Logs] OpenTelemetry.Extensions.EventSource extensions project (#3454)
* Add OpenTelemetryEventSourceLogEmitter.

* Project rename.

* Started tests.

* Added behavior comment in example.

* Add  --prerelease in READMEs.

* Example tweaks.

* Test improvements.

* Added activity_id/related_activity_id test.

* Warning cleanup.
2022-07-22 15:40:39 -07:00
Mikel Blanchard ab10e119ba
[Logs] Serilog extensions project (#3438)
* Add Serilog extensions project.

* Improve provider disposal when using serilog.

* Warning fixes.

* Fix README.

* Code review.

* Move Serilog version to props.

* Rename LogEmitter.Log -> Emit.

* Added unit tests.

* Warning cleanup.

* Code review.

* Standard README jazz.

* Removed ApiCompat block.
2022-07-18 09:38:02 -07:00
Cijo Thomas 09ef47dbc1
Update Instrumentation.RunTime version (#3419) 2022-06-29 22:07:37 -07:00
Cijo Thomas f4dddbe7da
Add runtime metrics to example aspnet core app (#3408) 2022-06-28 06:08:46 -07:00
Christian Neumüller 34efdbf448
Add & use ConfigureResource API. (#3307) 2022-06-27 08:59:59 -07:00
Utkarsh Umesan Pillai 1f4d97e3e0
Remove AspNet and AspNet.TelemetryHttpModule instrumentation projects (#3397) 2022-06-23 21:15:17 -07:00
Reiley Yang 2e334df8ae
Dedupe IsPackable (#3398) 2022-06-22 19:05:47 -07:00
Utkarsh Umesan Pillai c90ab4a2f2
Remove StackExchangeRedis Instrumenation (#3346)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-06-07 09:35:43 -07:00
Cijo Thomas d1ec45ce15
Add HTTP/Protobuf exporter for OTLP Logs (#3225) 2022-04-22 10:55:50 -07:00
Cijo Thomas 1918e4b3cc
OTLP LogExporter to support ILogger Scopes (#3218) 2022-04-21 13:15:54 -07:00
Alan West 89a740e20a
MetricReader TemporalityPreference (#3153) 2022-04-12 13:00:04 -07:00
Cijo Thomas 4e2437cfcd
Modify metric example to use console exporter defaults (#3143) 2022-04-06 07:49:25 -07:00
Paulo Janotti 950c6162b4
Improvements to the OTLP trace example (#3141) 2022-04-05 22:29:11 -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
Cijo Thomas 191df6298a
Add Prometheus Exporter to ASPNET Example (#3037) 2022-03-12 12:54:33 -08:00
Vishwesh Bankwar 98a4c99350
Add aspnet metric example (#3033) 2022-03-12 06:37:03 -08:00
Cijo Thomas 00af7817fd
Add net6.0 target to grpc instrumentation tests (#3013) 2022-03-11 09:01:04 -08:00
Cijo Thomas 5f509bfea9
Add back aspnetcore instrumentation in example (#3021) 2022-03-11 06:52:22 -08:00
Travis Illig d55de344f1
Fix IDE0090: 'using' statement can be simplified. (#3017) 2022-03-10 21:32:41 -08:00
Xavier 52258f12e3
Asp6sample (#2989) 2022-03-10 12:33:12 -08:00
Cijo Thomas 97f21802a3
Modify example asp.net core app to config prometheus options (#2988) 2022-03-10 10:52:25 -08: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
Cijo Thomas bac9263fa6
Prometheus example fixes (#2983) 2022-03-07 15:58:14 -08:00
Cijo Thomas bace2ce5d1
Make console examples for metrics simpler (#2981) 2022-03-07 13:35:36 -08:00
Cijo Thomas b6dcfe8e09
Example app to enable httpclient metrics instrumentation (#2955) 2022-03-01 11:21:40 -08:00
Alan West 644ba5bc14
Remove metric related options from ConsoleExporterOptions (#2929) 2022-02-23 09:19:45 -08:00
Alan West f234829964
OTLP exporter options separate out MetricReader options (#2717)
* Separate out OtlpMetricReaderOptions from OtlpExporterOptions

* Collapse config delegates into one

* Rename AggregationTemporality to Temporatlity

* Update public API

* Change parameter names

* Move MetricReaderOptions to SDK

* Default OTLP metric exporter to use a periodic metric reader and cumulative temporality

* Update example to configure exporter options

* Update public API

* Everyone loves a good stackoverflow

* Update public API

* Fix bad merge

* Change namespace

* Fix the public API

* I ❤️ trying to get the public API correct without Visual Studio

* Remove check for unspecified temporality

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-02-18 12:02:14 -08:00
Alan West a2c1b6e69e
Invoke SDK initialization when using OpenTelemetry.Extensions.Hosting (#2901) 2022-02-16 06:48:45 -08:00
Cijo Thomas 2aa816314c
Modify aspnetcore example to allow otlp log exporter (#2801) 2022-01-20 07:44:03 -08:00
Utkarsh Umesan Pillai 87f66d3845
Remove unnecessary using statements (#2727) 2021-12-14 12:56:18 -08:00
Michael Maxwell 83fa9fde68
General code improvements (#2744) 2021-12-13 09:42:28 -08:00
ktmitton 76d944130f
Reworded documentation based on recommendation from another PR (#2689)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-30 14:34:01 -08:00
Robert Pająk f5b0ea3826
Add HTTP protocol test case to OTLP exporter integration tests (#2692) 2021-11-29 16:02:22 -08:00
ktmitton 580a2a5cc0
Removed explicit setting of default guest user (#2682)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-26 12:15:36 -08:00
ktmitton d7ea809ef6
Updated the target frameworks for the microservice example projects to net6.0 to support the c# 10 requirement during build through the docker pipeline (#2677) 2021-11-24 14:13:45 -08:00
Alan West f4915eaaa6
Add MetricReaderType to OtlpExporterOptions (#2674) 2021-11-24 09:46:41 -08:00
Reiley Yang 794450b178
Clean up test cases by using consistent variable name (#2672) 2021-11-23 21:26:29 -08:00
Reese Lee cb4bedaf33
Add PeriodicExporterOptions for console exporter (#2648) 2021-11-23 07:16:59 -08:00
Reiley Yang 31a2d673da
Improve PrometheusExporter example (#2649)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-20 09:10:03 -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
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
Reiley Yang f0311751d5
Do not export metrics description if it is empty (#2583) 2021-11-09 19:22:45 -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 7d6a22fe35
Unique test meter names (#2549) 2021-11-06 18:32:30 -07:00