Commit Graph

113 Commits

Author SHA1 Message Date
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
Cijo Thomas 6664781c76
Add OTLP LogExporter example (#2481) 2021-10-12 15:50:42 -07:00
Cijo Thomas 5c7feb0931
Rename AddSource to AddMeter to better reflect intent (#2454) 2021-10-06 09:56:15 -07:00
Oleksiy Dubinin 1aa4da2098
Issue/2292 otlp http binary protobuf trace exporter (#2316) 2021-10-05 11:35:54 -07:00
Cijo Thomas 124c12afdf
Prometheus fixes (#2433) 2021-09-30 14:41:29 -07:00
Mikel Blanchard dc24fe1485
PrometheusExporter: Project cleanup and middleware fixes (#2414) 2021-09-28 12:53:22 -07:00
Michael Maxwell 032f22d61e
Log dropped telemetry item count on shutdown (#2331) 2021-09-21 12:48:30 -07:00
Mikel Blanchard 2df1a62984
Lost Baggage: Fix TelemetryHttpModule losing Baggage when switching from native to managed threads (#2314)
* WIP working on reproducing and fixing lost baggage.

* TelemetryHttpModule now restores Baggage.

* Updated public api.

* Unit tests.

* Use SuppressFlow for more accurate test.

* CHANGELOG update.

* Attempting to fix unstable test.

* Attempting to fix unstable test #2.
2021-09-15 11:04:50 -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
Michael Maxwell baa37f3a05
Remove 'en-us' from URLs (#2329) 2021-09-09 11:24:47 -07:00
Utkarsh Umesan Pillai 86c524c622
Make private fields readonly when possible (#2103) 2021-09-04 07:49:07 -07:00
Cijo Thomas 34a95c7fb2
Fix metric OTLP exporter examples (#2291) 2021-08-26 14:23:37 -07:00
Mikel Blanchard d9ad092dd3
Merge to main: New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API (#2270)
* New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API. (#2249)

* New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API part 2 (#2254)

* Use a single context.Items key for state management to make things more efficient.

* Added a comment for clarity.

* Code review.

* New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API part 3 (#2256)

* Update ASP.NET instrumentation to use the new TelemetryHttpModule.

* Fixed TelemetryHttpModule not starting its Activity objects. Added an example of request suppression.

* Tweaks an logging improvements.

* Sealed AspNetInstrumentationEventSource.

* Code review.

* New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API part 4 (#2258)

* Fixed up TelemetryHttpModule unit tests.

* Added tests for the new HasStarted helper and added checks for StartedButNotSampledObj when not sampled.

* Code review.

* New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API part 5 (#2261)

* Updated ASP.NET instrumentation tests for new TelemetryHttpModule.

* Added a test for the new RecordException option.

* Code review.

* New design for TelemetryHttpModule using ActivitySource + OpenTelemetry.API part 6 (#2264)

* CHANGELOG & README updates.

* Apply suggestions from code review

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

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

* Lint + sanity checks.

* Lint attempt 2.

* Restored CHANGELOG changes lost in merge.

Co-authored-by: Reiley Yang <reyang@microsoft.com>
2021-08-25 11:41:10 -07:00
Cijo Thomas f1e745d5e8
Add histogram support for Prometheus exporter (#2282) 2021-08-24 20:27:04 -07:00
Cijo Thomas 899777eead
Add Gauge export support in Prometheus (#2281) 2021-08-24 13:46:18 -07:00
Mikel Blanchard dc28d6b9a7 AspNet.TelemetryHttpModule public api + test fixes + renames (#2240) 2021-08-10 20:50:27 -07:00
Mikel Blanchard ec118d4fde Rename Microsoft.AspNet.TelemetryCorrelation -> OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule. Added project to the solution + updated references & namespaces. (#2238) 2021-08-10 20:50:27 -07:00
Utkarsh Umesan Pillai 54d46d80a0
Remove unncessary usings (#2213) 2021-07-29 17:27:28 -07:00
Utkarsh Umesan Pillai 58dc7eae5e
Rename MetricExportIntervalMilliSeconds to MetricExportIntervalMilliseconds (#2194)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-07-26 17:28:27 -07:00
Utkarsh Umesan Pillai d99db276cd
Rename MetricExportInterval to MtricExportIntervalMilliSeconds (#2193) 2021-07-26 15:56:17 -07:00
Cijo Thomas 7c611c8537
Metrics to Main (#2174) 2021-07-22 07:35:38 -07:00
Vladimir Kloz 56357fcd04
Fix the Zipkin exporter registration (#2135)
There was a missing line to set the service name similar to other places
2021-07-14 13:21:34 -07:00
Utkarsh Umesan Pillai 1b1da753d4
Remove unnecessary usings (#2101) 2021-06-23 18:19:11 -07:00
Tom Tan c69694c5ec
Change type of http.status_code in example to int to follow semmantic (#2096)
convension
2021-06-22 11:11:19 -07:00
Mikel Blanchard 6cdfcea67c
Logs: Scope improvements (#2026) 2021-05-06 10:12:43 -07:00
Cijo Thomas f65b650805
AspNetCore instrumentation options to be configurable from DI (#1997) 2021-04-19 22:31:28 -07:00
Mikel Blanchard 0208fd69f5
Dependency injection support (#1889) 2021-03-26 11:36:18 -07:00
Austin Tan caab6d63f4
Update Jaeger README and Example (#1922) 2021-03-18 14:59:45 -07:00
Utkarsh Umesan Pillai 904b7dd1d3
Add OtlpExporter as an option to ASP.NET example application (#1794)
* Add OtlpExporter as an option to ASP.NET example application

* Fixed indentation

* Added an extra line before EOF

* Removing set ApContext switch for unencrypted channel support

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-02-05 11:29:58 -08:00
Utkarsh Umesan Pillai 7687edc350
Updated the endpoint to include http: (#1793) 2021-02-04 17:55:32 -08:00
Cijo Thomas 19cf0c97bf
Remove grpc class options from OTLPExporter. Make Endpoint Uri for all frameworks (#1789)
* Remove grpc class options from OTLPExporter. Make Endpoint Uri

* readme changes

* more comment.
2021-02-04 16:25:49 -08:00
Kyle Tully fbfdb7030d
Added examples for remaining Jaeger Exporter options (#1669)
* Added examples for remaining Jaeger Exporter options

* updated process tags to use index initializer syntax

* removed process tags example

* removing process tags, checking format

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-02-03 10:31:29 -08:00
Cijo Thomas a4562881a0
OTLP exporter to use default Resource to get servicename (#1776)
* OTLP exporter to use default Resource to get servicename

* markdownlint

* fix unitest

* fix test for windows and linux
2021-02-02 15:15:30 -08:00
Cijo Thomas f77280a2b8
Changed default port for OTLP Exporter from 55680 to 4317 (#1775) 2021-02-02 12:07:59 -08:00
Austin Tan c14177996a
Rely on DefaultResource's Service.Name for Exporters (#1768)
* Jaeger and API changes and ProviderMethod

* Changelog

* Fix whitespace

* Not just checking first element of default resource but querying for servicename

* Including the servicename fallback in Zipkin options

* Resolving tests

* we previously removed the adapting of new servicenames from resources in jaeger, this undoes that

* Removing servicename from Jaeger ctor

* re-adding servicename to Ctor for Jaeger

* CodeBlanch 's implementation for preserving servicename

* Scrubbed ServiceName from ZipkinExporterOptions

* Messed up ternary operator order again

* reordering using for SA compliance

* more instances of zipkinoptions.servicename

* removed servicename from API

* Changelog in right places

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-02-02 11:04:54 -08:00
Cijo Thomas d724634d64
Modify console example to show activityprocessor (#1755)
* Modify console example to show activityprocessor

* revert change
2021-01-29 16:20:57 -08:00
Cijo Thomas fe24768521
fix spec repo links to main branch (#1746) 2021-01-29 12:07:34 -08:00
Cijo Thomas 29995ec245
Remove metrics from 1.0.0 release (#1743)
* Remove metrics from 1.0.0 release

* remove docs for metrics

* public api change
2021-01-29 10:05:50 -08:00
Utkarsh Umesan Pillai 17dd4a7d56
Added instructions to setup Jaegar locally using Docker (#1722)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-26 13:04:52 -08:00
Alan West 4e4f95bb53
OTLP exporter: use Grpc.Net.Client for netstandard2.1 (#1662)
* Use Grpc.Net.Client for netstandard2.1

* Fix AspNetCore example app

* Better comment for Http2UnencryptedSupport switch

* Update PublicAPI

* Update changelog

* Fix line endings

* Suppress instrumentation on export

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-04 11:45:21 -08:00
Utkarsh Umesan Pillai c0e27a83fd
Add example for InMemory Exporter (#1639)
* Added example for InMemory exporter

* Update examples/Console/Examples.Console.csproj

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

* Addressed the PR comments

* Fix comments

* Fix markdown

Co-authored-by: Reiley Yang <reyang@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-12-01 15:15:34 -08:00
Alan West 9e5995535f
Clean up documentation of OpenTracing shim (#1637) 2020-12-01 12:05:42 -08:00
Eddy Nakamura 2785ffbbaa
Metrics are obsolete (#1611)
* Metrics are obsolete

* updating changelog

* updating changelog
2020-11-24 09:45:36 -08:00
Mikel Blanchard 932c2587d2
Status Improvements (#1579)
* Send StatusCode as a string. Send error flag in Zipkin & Jaeger when StatusCode == Error.

* Missed one spot.

* Removed code setting otel.status_description to http status description.

* Unit test fixup.

* Update CHANGELOG.

* Updated http instrumentation CHANGELOG.

* Code review.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-17 23:39:28 -08:00
Alan West fd812eea04
Remove ServiceName from JaegerExporterOptions (#1572)
* Remove ServiceName from JaegerExporterOptions

* Update changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-17 14:55:11 -08:00
Alan West 0e3081731a
Remove ServiceName from OtlpExporterOptions (#1557)
* Remove ServiceName from OtlpExporterOptions

* Update PublicAPI

* Update changelog

* Add back default service name when resource does not have service.name

* Fix test

* Fix examples post merge
2020-11-17 14:08:51 -08:00