* Adding default and envVar resource. Initial commit
* Adding Create method for resource creation with default resource and relevant unit tests.
* Adding isNullOrEmpty check to env var value to remove redundant condition.
* TracerProviderBuilder now calls Resource.Create to get the default resource with EnvVar attributes as well
* The default reource now includes the attributes from env var as well. Refactoring unit tests for the same.
* Adding ResourceDetector interface and public methods to add attributes from default and env var resources
* Missed out new resource files. Adding
* adding some more tests
* Adding missing import
* Updating public api list
* Refactoring method name for new methods
* Making IResourceDetector and corresponding impl internal until spec is official about detectors
* Refactoring return
* Was using wrong Sdk in test. Fixed.
* Adding error handling to OtelEnvResourceDetector
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Update to ZipkinExporterOptions
* Mistake on pre-compiler message for 4.5.2, versions OTHER than .NET 4.5.2, not below
* Length of line for markdownlint
* Add troubleshooting doc to enable self diagnostics module
* Add explanation on EventLevel and parsing failure behavior.
* Change the configuration file name to OTEL_DIAGNOSTICS.json
* Add more explanation
* Rename EventLevel to LogLevel
* Add link to EventLevel enum
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Introduces the concept of IProviderContainer which allows injection of a TracerProvider into lower levels (Processor, Exporter, etc.).
* Removed IProviderContainer and fixed the provider types.
* Removed log provider example.
* Working on getting everything working with the new API.
* Attempting to get all the tests passing.
* Added concept of BaseProvider. Updated public API.
* Project fixup.
* Removed OnParentProviderSet.
* Updated changelog.
* Test fixup.
* Test fixup.
* Cleanup.
* Add ConfigRefresher
* Refactor parser related code into ConfigParser
* Add comments
* Remove ThreadLocal in ConfigParser and fix initialization order in ConfigRefresher constructor
* Use compiled regualr expressions
* Add comment for a race condition during configuration file refresh when the file changed
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Doc update - adding Enrich e.g. in AspNet Readme
* rmv special topic - enrich
* rmv old way of enrich in aspnet
* adding processor option to enrich in aspnet readme
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Separate AddInstrumentation and AddDSInstrumentation
* Mark AddDiagnosticSourceInstrumentation as internal
* changelog
* order
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
* Add start timestamp to OpenTelemetry metric aggregators
* Update doc and move protected members to the bottom
* Fix test header documentation
* Run dotnet-format on AggregatorTest
* Update documentation, use DateTimeOffset
* Remove cruft
* Use ticks instead of ms
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* [SelfDiagnosticsModule] Write event to log file in a circular way in EventListener.OnEventWritten
* fix typo
* accomodate feedbacks
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
* Added an extension method to add ConsoleExporter for logs; Updated the logs getting-started docs to add ConsoleExporter
* Updated CHANGELOG.md
* Addressing PR comments
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Added support for Logs; Removed disaplayAsJson option from ConsoleExporter; Added net451 as a traget framework for OpenTelemetry.Exporter.Console
* Print LogRecord exception on console
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Add GlobalPropagators API and have instrumentation default to it
* changelog
* fix name
* reset after
* min comment address
* move id format to same place as context propagator
* renam
* renai
* text initialize correctly
* modify microsoervice example to pick global propagator
* make Global propagator get only in api
* Add SetDefaultPropagato to SDK
* Updated Jaeger & Zipkin exporters to check for default activity.ParentSpanId.
* Tabs are less filling, but spaces taste great.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>