* Optimize unnecessary allocation when using GetOrAdd() on Collection objects
* Refactor SortAndDedup method for LabelSets
* Add Tests for Double versions of Counter and Measures
* Refactor to use TryGetValue/TryGetOrAdd instead of Func<> due to concerns over performance.
* Fix CR/LF to LF
* Refactor to avoid allocation of Func<>
* Fix styling issue
* kick build to start
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Fix different FileShare behavior in MemoryMappedFile between .NET Framework and .NET Core for SelfDiagnostics
* Create Stress Test to test self diagnostics log file's file share status
(cherry picked from commit 9fe60757c4254b67c1d166fc5f42eb795d424bf9)
* Revert "Create Stress Test to test self diagnostics log file's file share status"
This reverts commit 1007ffef42.
* Dispose underlyingFileStreamForMemoryMappedFile after memoryMappedFile is disposed.
* Add unit test for validating that the log file can be opened as read-only by others while being used by SelfDiagnosticsModule
* Remove en-us in links. Clean up config file. Add change log.
* minor: improve wording
* Fix error SA1501: Statement should not be on a single line
* Fixes#1666.
# Changes
When collecting measures, do not emit "empty" metrics (i.e. Int64SummaryData where count=0).
* Fix CR/LF warnings
* Add HasData() to Aggregator class
* Add HasData to Aggregator class
* Refactor Method name to be clearer
* Refactor Method name to be clearer
* Update PublicAPI.*.txt files
* Fix flaky test due to thread-safety issues.
* Fix Lint issues
* Fix Unit Test
* Fix Unit Test
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Reversing this versus other in merge priority
* revised test for new behavior
* Changelog updated
* Changelog updated
* remove extra period
* Fixing more period issues/line breaks
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Use a ubuntu based image for integration tests
* all integrations
* fix se
* se docker updae
* one more try with SE
* use focal image only for build
* use focal for build only in
* Remove Resource tag population
* Changelog updated
* Removing test case involving Resource
* removing local dictionary of tags, unused
* Making @CodeBlanch 's test changes thank you!
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Fix bug in SelfDiagnostics
* Add unit tests.
* Remove outdated comment
* Use a dedicated lock object
* Add two more test cases which calls OpenTelemetrySdkEventSource.Log and expect the events to be captured/omitted by SelfDiagnosticsEventListener as configured
* Fix failure under Linux: Emit Error level events to avoid interference of Verbose events from other sources
* remove outdated comment
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Enable integration tests for .NET 5.0
* Change configuration for other packages (StackExchangeRedis and SqlClient)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Add OTLP exporter integration test
* Fix typo
* Move DelegatingTestExporter to shared location
* Fix build
* Fix build part 2
* Fix build part 3 - third time's the charm right?
* Fix build part 4 - third time's not the charm.
* Fix TargetFrameworks for OTLP exporter project and add explanation
* Set switch allowing for insecure GrpcChannel for netcoreapp3.1
* Learning to spell is a life-long process
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Fix LogRecordTest by using InvariantCulture.
The test would fail if the current locale used something other than a
dot as the decimal separator (e.g. comma).
* dotnet-format
* Added SimpleExporter and BatchExporter for Activity and LogRecord
* Updated the .publicApi text files
* Updated the README to use SimpleActivityExportProcessor instead of SimpleExportProcessor<Activity>
* Updated CHANGELOG.md
* Updated CHANGELOG.md
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Fixing errors in W3CTraceContextTests
* Fix test_tracestate_key_illegal_vendor_format and test_tracestate_key_length_limit
(cherry picked from commit 5a2bd56c8f83b8e9094534084988992184f4fe7e)
* update test run result
(cherry picked from commit 4e23f9aec69c59affb27327e0a624b32a82317cc)
* Fix test_traceparent_version_0x00 and test_traceparent_version_0xff
Note: the bug was introduced in https://github.com/open-telemetry/opentelemetry-dotnet/pull/923/files#diff-670edb2ea7fa1212aab16a9f732dad8b1e2f15801a3eac1bd0824385355d7d97L262
* Validate key with Trace Context v1 https://www.w3.org/TR/trace-context-1/ which has W3C Recommendation status.
* Refactor validator for lower case alpha and digit
* Fix bug in vendor parsing and vendor valid character check.
* Fix typo and add link where magic numbers are defined.
* Adding comments
* Update comment
* Reuse OWS (Optional Whitespace characters). Utilize return value of HashSet.Add. Forbid upper case in traceparent string.
* Use Span and Slice instead of string.Split
* Remove unused OptionalWhiteSpaceCharacters variable
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* 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>
* Changing zipkin exporter class and ctor to public
* updated changelog
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* RecordException in SqlClient instrumentation
* Add RecordException to public API.
* RecordException tests for SqlEventSource
* Tests for exceptions in SqlEventSource.
Support different fully-qualified exception types for AdoNet and MDS
sources.
* More unit-tests
* CHANGELOG updates
* Cleanup tests to use semantic conventions
* Make RecordException netcore only
* RecordException removed from netfx public api
Also updated readme and changelog
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>