Commit Graph

22 Commits

Author SHA1 Message Date
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 874f9d7863
CustomProperty improvements (#1261)
* CustomProperty improvements

updating tests

updating to RuntimeContextSlot

updating to runtimeContext

adding runtime/subscibe/flag benchmark

updating aspnet and http

updating ramaining instrumentation

* adding try/catch&log

* improve docs for enrich action

* Checking enrichment with sampler

* removing unneeded using

* updating changelog

* updating changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-06 13:27:00 -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
Eddy Nakamura dd4bd3e0bd
Renaming ITextFormat to IPropagator (#1190)
* Renaming ITextFormat to IPropagator

* updating changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-28 07:46:14 -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
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
Alan West c21bd58844
Suppress instrumentation in Zipkin exporter (#1150)
* Suppress instrumentation in Zipkin exporter

* Check Sdk.SuppressInstrumentation on ActivityListener.ActivityStarted/ActivityStopped

* Remove raw post in test to Zipkin endpoint URL

* Use ForceFlush on exporter

* Call ForceFlush twice

* Remove IsInternalUrl

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-25 09:41:24 -07:00
Eddy Nakamura 8b16894e37
Removing AI reference (#1160)
* Removing AI reference

* removing reference

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-24 21:23:13 -07:00
Reiley Yang f6ef67bd33
Cleanup dispose/shutdown flow (#1142)
* improve comments

* only TracerProvider.Dispose will call processor.Shutdown

* add comments

* update test cases

* update test case

* cleanup nits

* fix plural form
2020-08-24 11:22:03 -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 f5bffdb7fa
Rename Span to Activity in tests (part1) (#1133) 2020-08-21 15:46:14 -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 0d00b8df1c
Shared test cleanup. (#1100)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 21:11:15 -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 5cdfd30284
Updating ActivityProcessor (#975)
* Updating ActivityProcessor

updating tests

updating tests - 2

updating merge

updating tests - 3

updating tests - 4

using inrange instead of equal

updating tests

* updating to inRange

* following docs.microsoft

* updating tests and changelog

* Adding in changelog custom behavior

* Removing duplicated IDisposable

* forcing dispose

* updating tests

* moving to single instead of equal one

* returning to default

* setting more time to pass tests

* forcing dispose

* reiley's suggestions

* reverting order

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-04 14:40:30 -07:00
Reiley Yang e384444981
clean up (#959)
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-07-31 20:59:12 -07:00
Mikel Blanchard 3169107c3b
A single AddHttpClientInstrumentation extension. (#935)
* A single AddHttpClientInstrumentation extension.

* Updating changelog.

* Cleaned up unit test.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-27 22:42:09 -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