Commit Graph

33 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
Reiley Yang 30f011456e
Consolidate log and trace processor (#1322)
* consolidate log and trace processor

* avoid OpenTelemetry.Common namespace

* add benchmarks

* skip test for netcoreapp2.1

* restrict log benchmark to netcoreapp3.1 for now
2020-10-06 08:24:19 -07:00
Mikel Blanchard 1f04397c26
Added Activity.EnumerateEvents extension (#1319)
* Added EnumerateEvents extension on Activity. Updated Jaeger + Zipkin to use it. Added benchmarks & tests.

* Updated CHANGELOG.
2020-10-04 09:43:10 -07:00
Mikel Blanchard 8e7ba79def
Added Activity.EnumerateLinks extension (#1314)
* Added extension for enumeration Activity links.

* Updated CHANGELOG.

* Unit tests.

* Updated test to enumerate more than one record.
2020-10-02 11:16:19 -07:00
Mikel Blanchard 401c111c1a
Jaeger/Zipkin Exporter Performance (#1274)
* Fixed broken ZipkinExporter benchmarks & switched to batching.

* Zipkin Exporter performance tweaks.

* Code review.

* Updated CHANGELOGs.

* Renamed maxPacketSize in JaegerExporter. Added some validation in ZipkinExporter.

* Fixed build break.

* Attempting to get 2.1 tests passing.

* Fixed messed up syntax.

* Revert build definition change.

* adding rsync in linux (again)

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-09-22 12:41:07 -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
Mikel Blanchard d8c3ea32fd
Jaeger Exporter Performance (#1254)
* Fixed broken jaeger benchmarks.

* Setting up benchmarks for improvement testing.

* Removed the double-batching going on with the Jaeger Exporter. Added in some perf improvements.

* Fixing tests.

* Porting JaegerUdpBatcher tests to JaegerExporterTests.

* Fixed some whitespace.

* Updated CHANGELOG.
2020-09-11 07:23:53 -07:00
Eddy Nakamura e78dcae1e2
Adding benchmark for Aspnetcore instrumentation (#1223)
* Adding benchmark for Aspnetcore instrumentation

* removing extra space

* renaming methods and removing resource

* updating to localserver

* removing unused code

* updating reference

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-09-09 23:02:22 -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
Mikel Blanchard 9fb5be50ba
Added EnumerateTagValues Activity Extension (#1236)
* Added EnumerateTagValues extension on Activity for enumerating tags.

* Refactor.

* Unit tests and changelog.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-09-06 09:32:34 -07:00
Mikel Blanchard 623ad06d61
Added GetTagValue Activity Extension (#1221)
* Added GetTagValue, benchmarks, and tests.

* Changelog update.

* Updated a couple spots using Linq to find tags to use the new extension.

* Nits.
2020-09-03 10:57:43 -07:00
Eddy Nakamura 849df458f6
Adding benchmark for HttpClient instrumentation (#1194)
* Adding benchmark

* separating in two files, adding in-proc server

* renaming files

* renaming

* updating activity benchmark

* renaming variable names, formatting to globalcleanup/setup

* Rename UnInstrumentedHttpClientBenchmark.cs to UninstrumentedHttpClientBenchmark.cs

* updating order/level

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-09-01 13:13:28 -07:00
Cijo Thomas f679960e03
Update diagnosticsource to rc1 (#1203)
* Step1 of updating to Rc1 of diagnostic source

* Update parent.spanid to parent.traceid as traceid will be default for root.

* add samplingatributes to activity tags

* updating to isremote=true

* updating tests

* changelogs

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-08-31 17:22:45 -07:00
Cijo Thomas 7b3980f309
Move Activity.SetKind to ActivitySourceAdapter (#1187)
* Move Activity.SetKind to ActivitySourceAdapter

* Set kind test
2020-08-28 00:13:38 -07:00
Eddy Nakamura 50c60af259
Enable FxCop - part 05 (#1141)
* Enable FxCop - part 05

* removing using tag

* updating zpages and adding supression

* adding supressions

* undoing traceprovider change
2020-08-24 10:15:59 -07:00
Cijo Thomas cd435cdd4c
Consolidate Benchmarks projects (#1122)
* Consolidate Benchmarks projects

* solution fix

* f

* remove double readme
2020-08-20 16:17:25 -07:00
Cijo Thomas 7eb4250c00
Add basic benchmark for ActivitySourceAdapter (#1107) 2020-08-20 10:41:38 -07:00
Reiley Yang b4ce36f5f6
Migrate ZipkinExporter to BatchExportActivityProcessor (#1103)
* migrate zipkin exporter to BatchExportActivityProcessor

* update changelog

* fix test failure

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-19 21:43:12 -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 b5695edc43
Clean up (#1068)
* clean up

* simplify the code

* string.Empty

* fix nit
2020-08-12 23:05:16 -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
Rajkumar Rangaraj 7943d96938
Fix Samplers to match spec (#1037)
* Modified sampler to return Decision

* Added missing functionalites affected with conflict.

* Added test

* Fix test

* Removed IsAllDataRequested check from processor

* Checking if sampler is null.

* Adding code missed from conflict

* Incorporating PR feedback

* Fix test

* Removed OpenTelemetry.Trace.Samplers namespace

* Update to changelog

* Moved test to tracersdk

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-11 19:25:35 -07:00
Reiley Yang fb5eec094d
mini bencmark (#1039)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-10 22:49:32 -07:00
Reiley Yang ce0bf3f723
rename AddActivitySource to AddSource, use params (#1036) 2020-08-10 18:02:50 -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
Reiley Yang 5f2e8d0cd9
Rename noop (#1025)
* s/NoOp/Noop/g

* workaround

* rename NoOp files to Noop
2020-08-07 14:25:59 -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
Cijo Thomas d2c93610e8
Update to preview 8 of DiagnosticSource and associated changes - part1 (#954)
* Initial make build fix commit

* change Link public API to accept ActivityTagsCollection

* Add more SetAttribute overload to support int bool float and bool

* changelog

* Replace AddTag with SetTag in Activity

* disable a test for temporary progress

* reformat

* url fix

* Update Diagnosticourcepackage

* version fix

* ActivityTagsCollection

* console exporter fix

* one basic test

* minor
2020-08-03 11:25:24 -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 755f727df0
Add sanity check for non-ASCII character and trailing spaces (#927)
* add CI sanity check for non-ASCII encoding and trailing spaces

* check TAB too

* fix ordering

* rename sanity to sanitycheck
2020-07-27 07:52:26 -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 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
Eddy Nakamura 3aca129967
Moving benchmark to test folder (#885)
* Moving benchmark to test folder

updating namespaces

updating path

Reiley comments

* updating paranthesis
2020-07-22 17:09:28 -07:00