Commit Graph

22 Commits

Author SHA1 Message Date
Mikel Blanchard d11dc0a962
CorrelationContext -> Baggage (#1106)
* Baggage context part 1.

* A little cleanup.

* Return strings instead of objects. Removed default value in ctor because it generates a compiler warning about struct default constructor being used.

* Updated SDK & API projects for BaggageContext.

* Fixed broken areas, except for CorrelationContext tests.

* First round of tests and bug fixes.

* FIxed up HTTP instrumentation tests.

* Fixed up shim tests.

* More tests and improvements.

* Fixed broken test.

* Test coverage and bug fixes.

* Deterministic GetHashCode + tests.

* Added a link to the baggage api.

* Updated CHANGELOG.

* Renamed BaggageContext -> Baggage.

* CHANGELOG update.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-27 16:03:38 -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 7807c810cc
Instrumentation to store context object into Activity.CustomProperty (#1128)
* Modify instrumentations to populate context object only if Activity.IsAllDataRequested is set

* AspNetCore tests

* Asp.Net tests

* httpclient tet

* httpwebrequest test

* sqlclient tests

* grpc test

* changelog

* move inside alldatarequested

* remove test which validate customproperty population in propagation only mode

* cop caught

* fix test
2020-08-21 13:10:52 -07:00
Mikel Blanchard dcaea5bd45
Baggage + CorrelationContext improvements by Eddy & Mike (#1048)
* Support W3C Baggage spec.

* Moved baggage propagation to its own ITextFormat. Removed IsInjected.

* updating some tests

* creating nw files

* updating files

* buildable in release

* adding baggage tests

* updating tests

* updating default textformat for http instrumentation

* Removed a few null checks.

* Removed DistributedContext. Drive CorrelationContext off of Activity.Baggage.

* updating issues after merge

* updating based on sanity check

* updating baggage test

* updating tests

* reiley's comments

* move to using

* Updates for http-in and http-out. Updated CHANGELOGs.

* Adding tests.

* updating correlation context

* Added test for TraceContextFormat + BaggageFormat used together.

* Fixed broken tests.

* Code review.

* Test fixup.

* updating order

* updating tests

* updating tests, adding dispose, clearing objects

* updating changelog

* Use "Baggage" instead of "baggage" as the header name.

* Added some basic support for the Baggage limits specified in the spec.

* Fixed and improved ITextFormat log messages.

* Rename TextFormatContext -> PropagationContext.

* Updated ITextFormat implementations so they don't double-extract.

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 15:39:59 -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
Eddy Nakamura 8948470937
Creating CompositePropagator (#923)
* Creating CompositePropagator

Adding ActivityContext to interface

Adding tests

Updating CompositePropagator + tests

updating comments

Improving performance when size is 0

updating tests

updating default tracestate for empty

MikeGoldsmith review

adding more tests to exemplify usage

Feature/composite propagator refactor (#1)

* Added TestPropagator and switched a couple tests to use it.

* removing extra classes

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>

updating changelog and constructor

MikeGoldsmith comments

updating logic

* checking value

* adding inverted test

* updating tests

* removing tracecontext and b3 tests

* testing only aspnet to merge

* Revert "testing only aspnet to merge"

This reverts commit 43ca7d074b.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-04 17:26:56 -07:00
Eddy Nakamura 4904972539
Merging itextFormat (#920)
* Merging itextFormat

* removing unused eventsource that was used for spancontext

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-24 15:39:41 -07:00
Cijo Thomas 920b0ed8d2
Provide MeterProvider to replace MeterFactory to be in sync with spec. (#919)
* Provide MeterProvider to replace MeterFactory to be in sync with spec.

* move OpenTelemetrymetrics to metrics folder

* Update examples/Console/TestPrometheusExporter.cs

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

* Sdk.CreateTracerProvider CreateMeterProvider

* move Sdk to root

* makr Sdk static

Co-authored-by: Reiley Yang <reyang@microsoft.com>
2020-07-24 15:27:21 -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
Cijo Thomas c470f0bb9c
TracerProvider renamings (#887)
* TracerProvider renamings

* rename

* Remove customization.md as its contents are part of SDK readme

* read only Default in TracerPRovier
2020-07-23 00:09:50 -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
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
Cijo Thomas 8f0cf0bd1a
Add resources to instrumentation (#779)
* Add resources to instrumentation

* Unit test activitysourcedapter

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-07-07 15:42:29 -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 a95b00a601
Instrumentation Adapter fixes for activity. (#730)
* expose ActivitySourceFake within OT which mimics ActivitySource for activities created using without ActivitySource.

* modify all instrumentation to use the ActivitySourceAdapter

* minor todo coment

* build fix

* Fix empty activitysource listening for asp.net
2020-06-16 14:55:11 -07:00
Cijo Thomas 575ddd5fce
Add ActivityContextFormat and propagation (#724)
Add ITextFormatActivity and TraceContextFormatActivity
2020-06-15 17:37:04 -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
Cijo Thomas bb4480e421
Instrumentation Adapters to support Activity API (#701)
* use the same activity created by existing instrumentation. Simply enhance it.

* remove sampling from instrumentation

* add asp.net core instrumentation

* move sampling to Instrumentation for now.
Make Asp.Net instrumentation work with Activity API

* Add httpClient .net core instrumentation

* Ad SqlClientInstrumentation

* remove sqlclientinstrumentation from previous instrumentation

* Quick implementation for AzureClients - not validated as there are unit tests and this is not planned to be in this repo as well.

* fix examples

* fix sampling flag

* made sample app work with jaeger

* Mark todos and fix AspNet tests

* Fix asp.net core tests and mark TODOs

* Add TODO for httpclient .net core test and fix test

* add todo and fix httpclient test

* add todos and fil sqlclienttests

* Make OpenTelemetrySDK disposable and take care of disposing all ds subscriptions.

* Added OpenTelemetry.Default instead of static method

* AspNet, AspNetCore fix Dispose issue

* stylecop stuff lost i merge
2020-06-11 14:26:28 -07:00
Paulo Janotti 8ed37a6f59
Organize StyleCop Settings and enable StyleCop on Tests (#715)
* Enable StyleCop rules for Test projects

This enables most of the StyleCop for test projects cleaning up any
errors as appropriate.

* Enable StyleCop rules for Test projects

This enables most of the StyleCop for test projects cleaning up any
errors as appropriate.

* Add line break at end of ruleset files

* Correct multi-line parameter after rebase
2020-06-10 12:12:13 -07:00
Paulo Janotti 32f0151fae
Rename Adapter to Instrumentation per latest spec (#681)
Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
2020-05-19 21:55:24 +01:00