Commit Graph

42 Commits

Author SHA1 Message Date
Vishwesh Bankwar 5ca8e98f1f
[otlp log exporter] Move logs extension methods to main otlp package (#4556) 2023-06-08 09:13:40 -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
Cijo Thomas 85da882bbd
Upgrade DS to 7.0 stable (#3875) 2022-11-08 12:13:54 -05:00
Alan West f1992d9363
Refactor OTLP mock collector test (#3849) 2022-11-04 18:20:55 -04:00
Vishwesh Bankwar 131b350d95
add net7.0 to test and docs project (#3842) 2022-10-28 16:58:56 -04: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
Timothy Mothra a1cdb28eaa
refactor test exporters, use instead `DelegatingTestExporter` (#3486) 2022-08-02 13:10:11 -07:00
Reiley Yang 2e334df8ae
Dedupe IsPackable (#3398) 2022-06-22 19:05:47 -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 0868872c1a
Remove NET5.0 target from OTLP Exporters (#3226) 2022-04-22 12:09:47 -07:00
Cijo Thomas b4267c7784
OTLP LogExporter to enable ParseStateValues by default (#3186) 2022-04-20 19:37:48 -07:00
Cijo Thomas 052b10a4df
Remove net461 from jaeger zipkin and otlp exporters (#3194) 2022-04-15 12:41:01 -07:00
Travis Illig 5255917581
Improve VS Code and cross-platform dev experience (#2997) 2022-03-09 09:35:30 -08:00
Tom Kerkhove 1191a2a3da
feat: Fail fast when insecure channel is not configured for .NET Core 3.1 with gRPC (#2691)
* feat: Fail fast when unsecure channel is not configured for .NET Core 3.1

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* NotSupportedException -> InvalidOperationException

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Code quality

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use static class, instead of base class

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Revert change

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Add missing file header

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Change build directive

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Code linting

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Remove redundant check

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix build errors after rebase

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use previous build directives

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog with latest RC

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Check for version, instead of build directive

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Align tests

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Change error message

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* Change comment

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* Change test name

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* Change test name

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* fix: Build integration test image with SDK of specified .NET version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* revert: Build in 6.0 due to language version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use version check instead of build directive

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix formatting

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix check on version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Remove flaky test

* Incorporate @pellared's feedback

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Change code style

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Code review remarks

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>

* Update changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-12-16 16:57:05 -08:00
Robert Pająk f5b0ea3826
Add HTTP protocol test case to OTLP exporter integration tests (#2692) 2021-11-29 16:02:22 -08:00
Mikel Blanchard 2c9501fcd5
OtlpExporter: HttpClientFactory option (#2696) 2021-11-29 15:34:27 -08:00
chertby a68fb70aa5
test: #2534 Replace use of TestExporter with InMemoryExporter (#2630) 2021-11-17 11:18:21 -08:00
Michael Maxwell 7d6a22fe35
Unique test meter names (#2549) 2021-11-06 18:32:30 -07:00
Vishwesh Bankwar 4f930d5074
Enable .net6.0 build and add net6.0 target (#2559) 2021-11-04 08:33:35 -07:00
Reiley Yang aa7509e056
removed unused files (#2345) 2021-09-13 14:25:42 -07:00
Cijo Thomas 16b3188496
Metrics -> Main (#2332)
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Michael Maxwell <micmax@microsoft.com>
2021-09-10 15:34:54 -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 87beade9a5
Removes net452 net46 from OTLP Exporter (#2152) 2021-07-19 13:00:33 -07:00
Alan West 23859041ce
Add OTLP exporter integration test (#1671)
* 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>
2021-01-13 21:03:31 -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
Mikel Blanchard 41cd4f5d9c
OtlpExporter peer.service resolution (#1392)
* Refactor peer service logic into a shared location. Support building peer.service tag in OtlpExporter.

* Added unit tests for OtlpExporter peer service support. Refactored a few things around to resolve types ending up in multiple assemblies.

* Refactored Zipkin to use the new PeerServiceResolver.

* Updated changelog.

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-27 16:39:43 -07:00
Mikel Blanchard 5fa2f105e7
OtlpExporter Perf (#1344)
* Perf improvements for the OtlpExporter.

* Added an interface to the grpc service so that it is easier to mock.

* Fixed up unit tests.

* Fixed up formatting.

* Fixed up merge issues.

* Removed unused field.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-22 16:37:07 -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
Reiley Yang 42d614e7a8
Clean up exporter and processor (#1140)
* clean up exporter and processor

* removed unused default parameter

* rename to OnForceFlush/OnShutdown

* update XML comment
2020-08-23 11:52:20 -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
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
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 5b34e3b3f8
Adding metapackages (#810)
Adding IsPackable to test.props, updating test nuget versions

updating projects, adding options parameter

Applying suggestions

Apply suggestions from code review

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>

code review - cijo

removing aspnetcore "metapackage"

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-15 23:31:57 -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
Eddy Nakamura 232e82eb02
github actions (#752)
moving folder

updating test to Tests.dll and folder to get less files

updating folder again

adding other versions to test

Adding linux and renaming

updating ubuntu version

updating yml linux

adding variables and using matrix

adding strategy to matrix

updating variables

new test

updating variables

updating variables

updating test packages

trying to add cache option

testing cache on windows

removing cache folder and trying to optmize files

updating

adding more workflows to test parallel

updating windows one job pipeline

updating

renaming

updating

updating test

adding verbose and breaking one test to double check

reverting test, adding new line, removing verbose from parallel

Update dotnet-core.yml

Update dotnet-core.yml

updating fetch depth

fetching all

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-01 13:04:22 -07:00
Eddy Nakamura ce09b59405
Enable .net 452 - part 02 (#732)
* Enable .net 452 - part 02

* moving DateTimeOffsetExtensions to OpenTelemetry.Internal, adding tests to projects

* revoving useless reference to netframework for prometheus.tests

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-06-19 13:05:03 -07:00
Paulo Janotti d31d485067
Fix code coverage (#666)
* Fix code coverage

Update tools and fix command.

* Disable code coverage on AzurePipelines
2020-05-06 17:11:38 -07:00
Paulo Janotti dacae6d50f
Update OpenTelemetry Protocol Exporter (#643)
* Update OpenTelemetry Protocol Exporter

Update the OTLP to version 0.3.0 of the proto files.

* Revert change to library resources

* Rename UseOpenTelemetryProtocol to UseOtlpExporter

* Rename UseOtlpExporter to UseOpenTelemetryProtocolExporter
2020-04-30 15:27:17 -07:00