* Add new ctor to Status, Rename CanonicalCode to StatusCanonicalCode. Both changes make code match the spec.
* revert Status public ctor. There already exists a more efficient way to create Status without ctor.
* minor
* PropertyName in Status to be simply CanonicalCode ionstead of StatusCanonicalCode, as the name of class itself is Status already and hence no need to repeat in property name
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Add PushMetricController
* unit test
* Add MeterBuilder and MeterFactory
* adjust tests
* correct prometheus example
* Minors
* small
* Prometheus test
* Fix Prom Middleware test
* few small fixes
* Address comments
* avoid meter to metersdk cast
* one test
* comment
* test fx
* timing adjustment
* minor
* Add Summary exporting to Prometheus
* fix Eventname
* avoid unnecessary copy of metric list
* fix trailing spaces etc after merge
* add test
* Tests for Summary export
* summary double
* fix output
* address PR comment
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Updating remaining project to prod.ruleset
* updating benchmarks and samples to use loose ruleset
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Add PushMetricController
* unit test
* Add MeterBuilder and MeterFactory
* adjust tests
* correct prometheus example
* Minors
* small
* Prometheus test
* Fix Prom Middleware test
* few small fixes
* Address comments
* avoid meter to metersdk cast
* one test
* comment
* test fx
* timing adjustment
* minor
* fix Eventname
* avoid unnecessary copy of metric list
* fix trailing spaces etc after merge
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
* Changing implementation from NotNull to Equals based on the value
* Update test/OpenTelemetry.Tests/Impl/Trace/TracerTest.cs
Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
* Apply suggestions from code review
Co-Authored-By: Mike Goldsmith <goldsmith.mike@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Mike Goldsmith <goldsmith.mike@gmail.com>
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Removing more generics for #392
* Fixing the formatting issue
* Removed Unsafe everywhere
* Fixing method order and file name in the header
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* consolidate all files under DistributeContext to Context in API and SDK
* rename DistributedContext classes to CorrelationContext et al
* update missed test renaming
* re-add DistributedContext and refactor carrier to use it
* add IEquatable to DistributedContext
* AspNet request collector (#543)
* Added a collector for incoming ASP.NET requests.
* Unit tests.
* Code review.
* Attempting to get windows build working.
* Attempting to fix build.
* Attempting to get the build working.
* Attempting to get the build working.
* Attempting to fix the build.
* Attempting to get Linux build working.
* Attempting to get linux build working.
* Attempting to get linux build working.
* Attempting to get build working.
* Attempting to get all tests running on windows.
* Attempting to get tests running on windows.
* Attempting to get the myget build working.
* Indention fix in myget yml.
* Code review.
* Code review.
* Code review.
* Code review.
* Code review.
* Fix build (#548)
* fix build
* rename queue to pool
* do not pack tests
* try to switch to VSBuild
* rename CorrelationContextScopeTest to DistributedContextScopeTest
* remove UpdateThreadArguments class from LastValueAggregatorTest (#552)
* Added support for .NET Framework HttpClient & HttpWebRequest dependency collection. (#553)
* Added support for .NET Framework HttpClient & HttpWebRequest dependency collection.
* Code review feedback.
* Updated HttpHandlerDiagnosticListener with latest changes from dotnet/runtime. Added try/finally for span.End calls. Fixed missing span.End in Sql exception event.
* Fixed broken SqlClientTests.
* A few tweaks to README for recent collector changes.
* Tested Azure SDK exception path and updated the TODO comment.
* Wrapping up enumerables for #407 and some cleanup (#558)
* Wrapping up enumerables for #407 and some cleanup
* Fixing whitespaces
* One more
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* fixes#559 (#563)
* Fixed the solution not building from dotnet build CLI. (#554)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Adding method to EvictingQueue, updating SpanSdk to update if key exists (#557)
* Adding method to EvictingQueue, updating SpanSdk to update if key exists
* Adding Replacing test to EvictingQueue; Updating SpanTest; Renaming from Update to Replace
* Adding wrapper to AddOrUpdateAttribute, adding validation to index in Replace method
* Adding NoReplacing Test when element doesn't exist
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Attempting to fix the myget build pipeline so the packages come out valid on the other end. (#565)
I don't have a way to start a build from fork. So let's test right in master...
* updating README.md samples (#556)
* updating README.md samples
* adding missing variables to example
* updating samples in readme
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
* Implemented short-live bound instruments. (#547)
* Initial draft for implementing record cleanup. Implemented for longCounters only. One basic test as well.
* small fixes
* Test for double counter
* Double test counter
* Use instrument level lock
* Added comment.
* Tests fix
* minor
* Added new intermediate status NoPendingUpdate for instrument record. This greatly reduced the need to take locks
* comment
* Fixed CurrentBatches dictionary being modified while a flush is running. (#571)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Fixed up Jaeger project so that correct Thrift.dll is included in the nupkg & ApacheThrift is listed as a dependency. (#566)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* ASP.NET dependency collector fixes and cleanup. (#570)
* Updated with latest bug fixes. Refactored to fit into OT solution.
* Ported bug fixes and unit tests.
* Code review.
* Unit test improvement.
* Code review.
* Fixed crashing TestServer on close.
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* add LS access token header to http request (#587)
* Clone Activity tags to Span Attributes (#572)
Resolves#430
* Initial work for validation
* Changed activity tags creation
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
* consolidate all files under DistributeContext to Context in API and SDK
* rename DistributedContext classes to CorrelationContext et al
* update missed test renaming
* re-add DistributedContext and refactor carrier to use it
* Fix build (#548)
* fix build
* rename queue to pool
* do not pack tests
* try to switch to VSBuild
* replace CorrelationContext with DistributedContext in BinarySerializer
* revert whitespace fixes to simplify review
* Update src/OpenTelemetry.Api/Context/CorrelationContext.cs
Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
* Update src/OpenTelemetry.Api/Context/DistributedContextBuilder.cs
Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-authored-by: Alexey Zimarev <alex@zimarev.com>
Co-authored-by: Eddy Nakamura <eddynaka@gmail.com>
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Bruno Santos <brunomiguelas@gmail.com>
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
* Updated with latest bug fixes. Refactored to fit into OT solution.
* Ported bug fixes and unit tests.
* Code review.
* Unit test improvement.
* Code review.
* Fixed crashing TestServer on close.
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Initial draft for implementing record cleanup. Implemented for longCounters only. One basic test as well.
* small fixes
* Test for double counter
* Double test counter
* Use instrument level lock
* Added comment.
* Tests fix
* minor
* Added new intermediate status NoPendingUpdate for instrument record. This greatly reduced the need to take locks
* comment
* updating README.md samples
* adding missing variables to example
* updating samples in readme
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
* Adding method to EvictingQueue, updating SpanSdk to update if key exists
* Adding Replacing test to EvictingQueue; Updating SpanTest; Renaming from Update to Replace
* Adding wrapper to AddOrUpdateAttribute, adding validation to index in Replace method
* Adding NoReplacing Test when element doesn't exist
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Added support for .NET Framework HttpClient & HttpWebRequest dependency collection.
* Code review feedback.
* Updated HttpHandlerDiagnosticListener with latest changes from dotnet/runtime. Added try/finally for span.End calls. Fixed missing span.End in Sql exception event.
* Fixed broken SqlClientTests.
* A few tweaks to README for recent collector changes.
* Tested Azure SDK exception path and updated the TODO comment.
* Added a collector for incoming ASP.NET requests.
* Unit tests.
* Code review.
* Attempting to get windows build working.
* Attempting to fix build.
* Attempting to get the build working.
* Attempting to get the build working.
* Attempting to fix the build.
* Attempting to get Linux build working.
* Attempting to get linux build working.
* Attempting to get linux build working.
* Attempting to get build working.
* Attempting to get all tests running on windows.
* Attempting to get tests running on windows.
* Attempting to get the myget build working.
* Indention fix in myget yml.
* Code review.
* Code review.
* Code review.
* Code review.
* Code review.
* Picking up where alexvaluyskiy left off with the SqlClientCollector. Worked on PR feedback. Added unit tests.
* Updated README.
* Fixed inconsistent comments.
* Code review.
* Code review #2.
* More code review.
* Code review feedback.
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Adds MinMaxSumCount aggregator. Refactored aggregators to have common interface to emit export record.
* Remove unwanted namespace import
* remove implementation folder which is empty now
* Address PR comments. Add unit test and TODOs
* Add observe instrument with callback faciltiy
* Address comments.
* basic oberver test
* Added double observer
* Test fpr observer
* PR review comments addressed
* Adds MinMaxSumCount aggregator. Refactored aggregators to have common interface to emit export record.
* Remove unwanted namespace import
* remove implementation folder which is empty now
* Address PR comments. Add unit test and TODOs
* Address comments.