Commit Graph

36 Commits

Author SHA1 Message Date
Reiley Yang 6ba9245f34
Remove the deprecated/unused dotnet-xunit dependency (#4574) 2023-06-12 19:00:53 -07:00
Luiz Lelis fea6793a55
Clean up package version definitions using Directory.Packages.props (#4298)
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2023-05-09 09:35:05 -07:00
Timothy Mothra 804c448d2e
add nullable enable to Common.props and disable in projects. (#3964) 2022-12-05 15:33:57 -08:00
Mikel Blanchard 399fbcfaab
[Http Instrumentation] Unify exposed public API (#3793)
* Expose the same Http API for all targets.

* CHANGELOG stub.

* Merge updates.

* CHANGELOG updates.

* CHANGELOG cleanup.

* Working on tests.

* Test fix.

* Cleanup.

* HttpClient tests passing.

* Tests passing.

* Tests passing.

* README updates.

* Cleanup.

* Lint

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-11-02 11:48:23 -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
liangli 82e041c27c
fix: replace all newtonsoft.json usages (#3478) 2022-07-28 19:12:28 -07:00
Vishwesh Bankwar 0f0a96d31f
add net7.0 for httpclient tests (#3389)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-06-22 12:10:42 -07:00
Alan West d84f0edf77
Use DiagnosticSource 7.0 and drop netcoreapp3.1 target (#3351)
* Remove AspNetCore 3.1 test app

* Remove netcoreapp3.1 target from projects

* Bump to DiagnosticSource 7.0.0-preview.4.22229.4

* Enable CI on net7.0 branch

* Remove trailing space
2022-06-07 20:46:15 -07:00
Cijo Thomas 87ab4af4cd
Remove NET5 from tests and CI (#3215) 2022-04-21 09:21:07 -07:00
Cijo Thomas edede3a32a
Remove net461 from Prometheus SQL SE HTTP Client (#3195) 2022-04-15 13:05:42 -07:00
Piotr Kiełkowicz c2ab8d4d8a
Replace TestExporter by InMemoryExporter in MetricAPITest (#3150) 2022-04-08 06:56:06 -07:00
Travis Illig 5255917581
Improve VS Code and cross-platform dev experience (#2997) 2022-03-09 09:35:30 -08:00
Michael Maxwell c085504462
Replace use of TestExporter with InMemoryExporter (#2562) 2021-11-05 09:35:49 -07:00
Vishwesh Bankwar 4f930d5074
Enable .net6.0 build and add net6.0 target (#2559) 2021-11-04 08:33:35 -07:00
Alan West 67b6a83932
HttpClient http.client.duration metric (#2243) 2021-08-10 09:20:18 -07:00
Cijo Thomas ff3b948539
Clean up net452 (leftover from prior prs) (#2166) 2021-07-20 19:23:38 -07:00
Cijo Thomas 476e9de74e
Remove .NET Core 2.1 from tests and CI (#2160) 2021-07-19 16:57:41 -07:00
Cijo Thomas 25871abb40
Remove net452 from httpclient instrmentation (#2157)
* Remove net452 from httpclient instrmentation

* remove public api for net452
2021-07-19 16:09:31 -07:00
Eric J. Smith f2266a66a8
Remove usage of InternalsVisibleTo in the internal instrumentations. (#1856)
* Remove usage of InternalsVisibleTo in the internal instrumentations.
* Move shared instrumentation code into Common.props
2021-03-10 11:24:00 -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
Cijo Thomas 51806b723a
Mark Activity extension methods not required by spec as internal (#1545)
* Mark activity extensions as internal

* format

* test proj adjustments

* more cleanups

* temporarily remove benchmark. this should be brought back after splitting the project into multiple projects

* fix w3ctracecontext tes

* fix grpctest refs

* Update src/OpenTelemetry.Api/CHANGELOG.md

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

Co-authored-by: Reiley Yang <reyang@microsoft.com>
2020-11-15 16:21:00 -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 356c4095fa
SpanAttributeConstants is internal (#1457)
* SpanAttributeConstants is internal

* updating changelog

fixing tests

Revert "fixing tests"

This reverts commit 66167c899025f2e56aca957bbcbe6d658a866d17.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-04 13:13:31 -08: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 a600f1d43f
InstrumentationFilter for instrumentations (#1181)
* Add try catch to asp.net instrumentation filter

* min rename

* Make Asp.Net Core instrumentation InstrumentationFilter public

* InstrumentationFilter public for Asp.net

* InstrumentationFilter for httpclient rename, changeog

* Exception handling for aspnetcore

* exception handling

* FilterFunctions return true means request is filtered.

* markdwon

* better comment

* revert aspnet filter meaning

* aspnet core filter revert

* httpclient filter

* httpwebsrequest

* y

* rewordings

* typo fix

* aspnet

* aspnet core

* httpclient.
2020-08-27 22:53:13 -07:00
Reiley Yang fa8a052352
more sanity check (#1164)
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-24 21:50:58 -07:00
Mikel Blanchard 0d00b8df1c
Shared test cleanup. (#1100)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 21:11:15 -07:00
Cijo Thomas 6564ca8438
Tests namespace rearrange/consolidate (#1053)
* Move out of implememtationfolder

* move our of implementation folder

* rename namespace

* renamiongs

* more

* metric refactory
2020-08-12 09:01:34 -07:00
Eddy Nakamura a3bf19d450
Removing Todos (#1029)
* Removing Todos

renaming parameter

adding tests

updating spanbuilderShim

updating to internal

renaming to spanAttributes

solving build issue

adding spec reference

Continue Refactoring TracerProvider. (#1035)

* optimize the flow

* fix instrumenataion

* move mroe things to provider ctor

* move logic arounds

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

changing to class and following spec to replace value

replacing from default to null

updating package

adding xunit.runner

renaming method

* removing duplicated files

* adding some tests and updating to default constructor

* removing to be compliant to spec

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-11 07:50:53 -07:00
Reiley Yang bde64f2b6a
use absolute path for project includes (#993)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-04 07:23:47 -07:00
Reiley Yang 2e4b081f6d
Consolidate package version (#971)
* consolidate package version for src folder

* fix CI

* clean up

* clean up test package version

* clean up

* fix nits

* clean up using
2020-08-02 06:20:44 -07:00
Reiley Yang e384444981
clean up (#959)
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-07-31 20:59:12 -07:00
Eddy Nakamura 21d18e1662
Testing EventSource (#944)
Validating EventSource

adding more tests, updating wrong namespace

updating spaces

merging invariantString to prevent duplication

removing extra space

merging exception extensions

Adding comments

updating project and tests

updating eventsourcetest

breaking tests

Revert "breaking tests"

This reverts commit 7c23b46316c9dc84d5b66c1e0498498a4b0b3ac7.
2020-07-30 06:38:41 -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