Mikel Blanchard
74212a2402
[sdk+hosting] Move AddOpenTelemetry & OpenTelemetryBuilder into Hosting package ( #4174 )
...
* Move AddOpenTelemetry & OpenTelemetryBuilder into Hosting package.
* Added Azure Functions warning.
* Test fixes.
* Test fixes.
* Patch CHANGELOGs.
* Hosting README updates.
* Comment tweak.
* Clean up.
* Test cleanup.
* MD lint.
* Test fixes.
2023-02-10 12:11:26 -08:00
Mikel Blanchard
94f67d8a8c
Revert "[sdk] Use reflection and dynamic types to start providers ( #4151 )" ( #4173 )
...
This reverts commit b549e12148 .
2023-02-09 10:14:12 -08:00
Mikel Blanchard
b549e12148
[sdk] Use reflection and dynamic types to start providers ( #4151 )
...
* Remove StartWithHost extension and using reflection to do the work in SDK.
* Warning cleanup.
* Fix up.
* Improved logging.
* Remove OpenTelemetry.Extensions.Hosting dependency from examples & docs.
* Test fixes.
* Fixes and test updates.
* Bug fix.
* Patch CHANGELOGs.
* Clean up.
* Support Azure Functions TelemetryHostedService dependency inspection logic.
* Code review.
* Code review.
* Code review.
---------
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2023-02-08 15:20:02 -08:00
Utkarsh Umesan Pillai
8013a3a539
Refactor unit tests ( #4039 )
2022-12-22 15:25:20 -08:00
Utkarsh Umesan Pillai
b138784df5
Remove unnecessary usings from instrumentation tests ( #4028 )
2022-12-20 19:45:14 -08:00
Timothy Mothra
64f1d74561
fix analysis issues: CA2007 (part2) ( #4018 )
...
* fix analysis issues: CA2007
* remove duplicate
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2022-12-15 16:31:49 -08:00
Mikel Blanchard
9836d3addb
[DependencyInjection] Introduce new package and refactor SDK ( #3923 )
2022-12-08 15:24:44 -08:00
Vishwesh Bankwar
459e2d7fad
[ASP.NET Core] Remove `http.host` and add `net.host.name` and `net.host.port` ( #3858 )
2022-11-17 12:18:34 -05:00
Vishwesh Bankwar
b5e50b2878
[ASP.NET Core] Clear logging for testing scenarios ( #3810 )
2022-11-11 13:50:12 -05:00
Yun-Ting Lin
dd8809900a
AspNetCore/Http Instrumentation to leverage native Activity Status. ( #3555 )
2022-08-10 15:51:17 -04:00
Vishwesh Bankwar
b8385a8ca0
Refactor asp.net core test apps ( #3558 )
2022-08-08 20:41:03 -07:00
Vishwesh Bankwar
668b07335b
Clean up netcoreapp3.1 and add net7.0 to tests ( #3543 )
2022-08-04 20:21:55 -07:00
Alan West
a789bc0259
Merge net7.0 to main ( #3539 )
2022-08-04 10:25:21 -07:00
Alan West
25df7e85b0
Revert "Merge branch 'net7.0' into main" ( #3531 )
...
This reverts commit e64015cadd , reversing
changes made to 5653454b0c .
2022-08-03 15:47:18 -07:00
Alan West
8dd0743174
Merge branch 'main' into net7.0
2022-08-03 11:46:27 -07:00
Cijo Thomas
cc5083e37b
Asp.Net Core trace instrumentation to populate http schema tag ( #3392 )
2022-06-20 12:29:23 -07:00
Cijo Thomas
fd24811e75
ASPNETCore instrumentation to populate httpflavor tag ( #3372 )
2022-06-17 11:20:28 -07:00
Vishwesh Bankwar
5d5f1f2964
Add net7.0 target for aspnetcore ( #3366 )
2022-06-17 10:27:18 -07:00
Cijo Thomas
05feb69d34
Replace MOQ with InMemoryExporter in ASP.NET Core ( #3328 )
2022-06-02 09:21:19 -07:00
Cijo Thomas
06d623bf5a
Remove net5.0 target from aspnet core instrumentation ( #3223 )
2022-04-22 09:23:39 -07:00
Travis Illig
7ed97be908
Fix analyzers ( #3053 )
2022-04-01 07:46:32 -07:00
Stefan
af6a5d2561
Improve GetUri ( #2947 )
2022-03-09 08:46:49 -08:00
Vishwesh Bankwar
4f930d5074
Enable .net6.0 build and add net6.0 target ( #2559 )
2021-11-04 08:33:35 -07:00
Vishwesh Bankwar
baaa37150e
Change http.path to http.target in aspnet and aspnetcore instrumentations ( #2266 )
...
* change http.path to http.target
* update changelog
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-08-23 10:44:45 -07:00
Cijo Thomas
ceaaa40262
Logformatter null check ( #2200 )
2021-07-29 10:31:08 -07:00
Mikel Blanchard
b956a5f7e9
Resource allocation improvement ( #1463 )
...
* 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.
2020-11-09 13:39:25 -08:00
Eddy Nakamura
052ecc44b2
Enable .net5.0 ( #1486 )
...
* Enable .net5.0
* fixing build issues
* updating sanity
* fixing windows pipelines
* adding aspnetcore5.0
* adding net5 workaround
* skipping Flackytest
* updating to latest stable version
* updating code coverage to latest preview
2020-11-09 12:34:03 -08:00
Eddy Nakamura
688ffd689a
Enable OnException for AspNetCore instrumentation ( #1408 )
...
* Enable OnException for AspNetCore instrumentation
* updating variable to enrich
* updating changelogs
* recording exceptions
* fixing spacing
* recording exception in activity if record is true
* reverting
* testing exception
* testing recordExceptionFlag
* fixing remarks text
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-27 19:20:47 -07:00
Cijo Thomas
acafd0e58e
Status fixes, minor comment changes ( #1404 )
2020-10-27 12:34:09 -07:00
Eddy Nakamura
378ba54b77
Updating Status based on the new spec ( #1313 )
...
* Updating Status based on the new spec
commenting OtlpTrace.Status.Type check
fixing test
undoing change to statuscanonicalcode
fixing tests
reiley's comments
SetStatus now saves enum instead of string
fixing changes after conversion
fixing redis tests
from http spec, if 1xx,2xx,3xx => unset, otherwise error.
from rpc spec, if ok => unset, otherwise error.
fixing sql tests
fixing redis tests
* fixing sqlclient framework tests
* adding benchmark to status
* changing from hashset to simple if, readding statuscode for grpc
2020-10-13 10:11:32 -07:00
Reiley Yang
71bb3635f5
ILogger integration - part 3 ( #1328 )
...
* extract common part
* make process/exporter generic
* update dependencies
* update all the tests and docs
* clean up
* changelog
* update readme
* prevent LogRecord to be inherited
* simplify example
* simplify the code
* revert accidental change
2020-10-07 09:55:54 -07:00
Eddy Nakamura
6348f387f2
Cleaning files ( #1323 )
...
* Cleaning files
* applying fxcop suggestions
* fixing taskscheduler warning
removing fxcop
2020-10-06 20:24:32 -07:00
Eddy Nakamura
c7429d25c9
Normalizing format ( #1289 )
...
updating gitattributes
updating
updating
updating
Revert "Normalizing format"
This reverts commit b571e430a73f65605481ef0a622a372bc8a787ae.
Updating everything to utf-8
applying lf
Revert "applying lf"
This reverts commit a54947f24ba69eecc931525f2a69647040fdc28d.
updating config
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-09-19 09:45:29 -07:00
christopher-taormina-zocdoc
d802472a36
Adding null check for incoming request port in aspnetcore ( #1263 )
...
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-09-18 15:47:33 -07:00
Eddy Nakamura
c025116c3e
Replacing Tags for TagObjects and AddTag for SetTag ( #1227 )
...
* Replacing Tags for TagObjects and AddTag for SetTag
updating tests
updating tests
* removing toString from stackExchange test method
* tentative to solve redis test failure
* updating tests
* updating test
* checking for only one element
* Trying GetTagValue extension in http-in unit test projects.
* Grpc now uses GetTagValue.
* Updated new unit tests to use SetTag.
* Updated Http instrumentation for GetTagValue.
* Update Sql instrumentation to use GetTagValue.
* Updated Redis instrumentation to use GetTagValue.
* Removed references from test projects that weren't needed.
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-09-06 10:13:08 -07:00
Cijo Thomas
fd7876416f
Renaming to AddOpenTelemetryTracing ( #1209 )
...
* AspNet Instrumentation docs
* Renaming to AddOpenTelemetryTracing
* Revert "AspNet Instrumentation docs"
This reverts commit 4cbb620533 .
* typo
* changelog entry
2020-08-31 17:32:29 -07:00
Cijo Thomas
6377d6bd87
Renamed extension methods from AddOpenTelemetry to AddOpenTelemetryTracerProvider ( #1138 )
...
* Renamed extension methods from AddOpenTelemetry to AddOpenTelemetryTracerProvider
* ununsed removal
* remove unnecessary test
* build fix
2020-08-21 21:28:10 -07:00
Eddy Nakamura
3e1d7f1a20
Replacing variable names ( #1134 )
...
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-21 19:01:47 -07:00
Cijo Thomas
47a6fe7621
Refactor TracerProvider to make configuration easy. ( #1027 )
...
* Refactor TracerProvider to make configuration easy.
* build break fix
* MyExporter change
* format
* sql build fix
* fix
* test fix
2020-08-09 00:48:00 -07:00
Cijo Thomas
80edb939e4
HttpStatusCode as int instead of string ( #998 )
...
* HttpStatusCode to use int
* foramt
* format
* Cops arrested me
2020-08-04 09:17:03 -07:00
Cijo Thomas
b19c7e09c7
Move Otel.Trace.Exporter namespace to just Otel.Trace ( #903 )
2020-07-23 15:48:45 -07:00
Eddy Nakamura
2dd8daa1e4
Splitting Instrumentation Projects ( #890 )
...
updating README
updating sql integration test
updating yml
updating dockerfile
updating readme
updating global.asax
updating version and readme
removing unused reference, adding properties folder to be similar to OT project
adding zipkin docker in comments
updating to standard2.1
removing unused usings
updating aspnet/aspnetcore methods naming
applying cijo's suggestions
updating projects to compile semantic file, updating comments
Splitting Instrumentation Projects
updating README
updating sql integration test
updating yml
updating dockerfile
updating readme
updating global.asax
updating version and readme
removing unused reference, adding properties folder to be similar to OT project
adding zipkin docker in comments
updating to standard2.1
removing unused usings
applying cijo's suggestions
2020-07-23 11:50:57 -07:00
Alan West
ea107d3b69
Rename contants in SemanticConventions class to conform to recommended C# naming conventions ( #892 )
2020-07-22 23:55:17 -07:00
Cijo Thomas
4b4f0e95af
More refactorings, renamings, namespace shortenings. ( #886 )
...
* Rename OpenTelemetrySdk to TracerProviderSdk. Rename OpenTelemetryBuilder to TracerProviderBuilder
* renaming
* Shorter namespace for TracerProvider
* simpler namespace.
* revert unwanted change brought by git merge
* doc changes
* remove dup
2020-07-22 16:46:45 -07:00
Peter Wiese
b319c0bed6
Replace references to SpanAttributeConstants with constants from SemanticConventions ( #828 )
...
* Replace references to SpanAttributeConstants with constants from SemanticConventions
* Missed a few references to the "component" attribute in some tests.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-15 17:27:21 -07:00
Eddy Nakamura
1c5872ee26
Adding more tests to AspNetCore ( #787 )
...
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-09 12:39:23 -07:00
Cijo Thomas
bd65fd2132
Remove TracerFactory from Extensions.Hosting project ( #790 )
...
* Removed hosting extensions using tracerfactory
* rename
* test
* comment
2020-07-09 09:40:51 -07:00
Eddy Nakamura
0973b3ea0a
Enable netcoreapp2.1 ( #780 )
...
updating yml
Revert "updating yml"
This reverts commit 391f3baadbca0de4b3e2d78b35db38eb7e7bddbc.
installing dotnet 2.1 and 3.1
updating yml to enable multiple dotnet versions
adding matrix condition
disable dotnet 2.1 for windows
removing unused package reference
Revert "removing unused package reference"
This reverts commit 0d898aa044f916743da613a83539f568bff3ad49.
updating yml
adding cov.yml to sln
Add resources to instrumentation (#779 )
* Add resources to instrumentation
* Unit test activitysourcedapter
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
disabling ubuntu-latest to codecoverage
removing extra steps
adding codecov.yml
moving file
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-08 11:42:51 -07:00
Cijo Thomas
afd9135026
Add support for multiple pipelines in OpenTelemetryBuilder with Activity ( #735 )
...
* Add support for multiple pipelines in OpenTelemetryBuilder with Activity
* change Setpipeline toAddpipeline
* Dispose activityprocessor
2020-06-17 17:41:19 -07:00
Cijo Thomas
2fe5100594
Adds HostingProject extension method to support new Activity based api. ( #723 )
...
* Adds HostingProject extension method to support new Activity based api.
* pr comment
* some test refactoring for better cleanup to ensure tests dnt interfere with each other
2020-06-12 10:10:26 -07:00