Commit Graph

668 Commits

Author SHA1 Message Date
Eddy Nakamura 83adf75f01
Migrate ZPagesExporter to BatchExportActivityProcessor (#1108)
* Changing Zpages processor

* updating changelog

* updating to ZPagesProcessor

* updating after merge

* adding internal reset method
2020-08-20 18:08:18 -07:00
Eddy Nakamura 595c3bd0c3
Fixing zipkin payload (#1112)
* Fixing zipkin payload

* adding more types to convert to string

* adding some comments

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-20 16:37:10 -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
Eddy Nakamura 2c5f48f7a3
Adding tests (#1101)
* Adding tests

* Adding tests to Zpages

* updating tests

* checking purge

* merging tests to prevent parallel run issue

* checking if not empty

* adding collection to not run in parallel

* renaming

* checking nonevents in EventSource

* removing collections

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-20 16:01:34 -07:00
Reiley Yang 5fa2559dbf
remove BatchingActivityProcessor (#1113) 2020-08-20 14:50:58 -07:00
Cijo Thomas 08eb46841a
Contributing doc minor edits (#1111) 2020-08-20 11:25:24 -07:00
Cijo Thomas 7eb4250c00
Add basic benchmark for ActivitySourceAdapter (#1107) 2020-08-20 10:41:38 -07:00
Cijo Thomas 0e305b34c4
Minor rearrangement of tests (#1109)
* Minor rearrangement of tests

* Update ActivitySourceAdapterTest.cs
2020-08-20 10:31:23 -07:00
Eddy Nakamura a969c8f3cf
Migrate OtlpExporter to BatchExportActivityProcessor (#1104)
* Changing OtlpExporter

* updating changelog with last PR number

* solving null reference while converting activitylinks

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-20 09:45:34 -07:00
Eddy Nakamura 46907830e2
Updating VSTest nuget (#1074)
* Updating VSTest nuget

* updating to stable version

* updating nuget

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-20 09:26:51 -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
Cijo Thomas d13ef78b06
ActivitySource minor optimization and test (#1105)
* ActivitySource minor optimization and test

* comment

* More optimize
2020-08-19 21:27:13 -07:00
Alan West 68c16da46f
SuppressInstrumentation from ActivityListener and DiagnosticSourceListener (#1079)
* Add SuppressInstrumentation check in the ActivityListener

* Add SuppressInstrumentation check in the DiagnosticSourceListner

* Fix things post merge

* Put AlwaysOn/AlwaysOff sampler check back in the constructor
2020-08-19 21:05:29 -07:00
Cijo Thomas 44b55d476e
Update ActivitySource processor whenever TracerProvider adds processor (#1102) 2020-08-19 14:27:33 -07:00
Cijo Thomas 4fcf20789a
Add RuntimeContext test part 2 (of many) (#1096)
* Add RuntimeContext test part 2 (of many)

* Throw when slot not found

* PR comments
2020-08-19 12:01:55 -07:00
Mikel Blanchard 8bd8641e3e
Instrumentation raw objects should be sent as custom properties (#1099)
* Added raw objects available to instrumentation as Activity custom properties.

* Updated CHANGELOGs.

* Added "OTel" prefix to custom properties. Moved to constants.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 21:28:51 -07:00
Eddy Nakamura 25d9a4befe
Checking for null value and type to add tag (#1097)
* Checking type before adding to tags

* Checking if value is null, adding more tests

* changing order to prevent useless conversion

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 21:19:14 -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 bf694a0641
Refactor exporter - step 6 (#1094)
* implement BatchExportActivityProcessor

* fix typo

* wrap comments

* no need to stop a Stopwatch

* fix nit

* add thread name

* adopt zero-alloc enumerator

* avoid calling exporter with zero item

* better naming

* clean up

* fix the missing exportTrigger reset

* shutdown drain till sentry

* simplify the flow

* simplify the code

* periodic polling to avoid dead lock
2020-08-18 20:58:00 -07:00
Mikel Blanchard a30634cf0a
Allocation free batch exporting & CircularBuffer tweaks. (#1092)
* Added a union object to enable allocation free foreach of activity batches. Tweaked the CircularBuffer algorithm.

* Fixed file header.

* Switched ActivityBatch to Batch<T>.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 15:57:30 -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 61d9cc2fcc
Add RuntimeContext test placeholder, other minor test refactor (#1093) 2020-08-18 00:39:41 -07:00
Paulo Janotti 13672a7c84
Add otelcol docker to otlp example (#1073)
* Add OTel Collector docker to OTLP example

Adding a configuration and instructions on how to run the OpenTelemetry Collector to receive the spans generated using the OTLP exporter.

* Correct example instructions

* Separate Unix and Windows instructions

* Move collector config file to its own folder

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-17 11:52:58 -07:00
Reiley Yang 4a70a53782
s/count/maxCount/g and add xml comments (#1089)
* s/count/maxCount/g; add xml comments

* remove repetitive wording

* wrapping

* fix nits
2020-08-16 22:38:21 -07:00
Reiley Yang 0d7ef909da
Add max spin count limit to circular buffer (#1088)
* add max spin count limit

* fix typo
2020-08-16 18:27:33 -07:00
Reiley Yang ec5683adbc
Refactor exporter - step 5 (#1087)
* add a circular buffer

* add memory barrier

* ++

* clean up

* integrate the circular buffer into BatchExportActivityProcessor

* integrate the circular buffer into BatchExportActivityProcessor

* better naming

* better naming
2020-08-16 09:48:16 -07:00
Reiley Yang 90c370f021
Refactor exporter - step 4 (#1085)
* add a circular buffer

* add memory barrier

* ++

* clean up

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-15 22:13:40 -07:00
Reiley Yang 4895c59b1f
s/lck/syncObject/g (#1084) 2020-08-15 09:01:42 -07:00
Reiley Yang 20bf5c924e
Refactor exporter - step 3 (#1083)
* switch console exporter to SimpleExportActivityProcessor

* use synchronization in SimpleExportActivityProcessor
2020-08-14 21:31:54 -07:00
Reiley Yang a4237cf104
Refactor exporter - step 2 (#1081)
* skeleton of export processors

* remove unused using statements

* add blank line
2020-08-14 15:52:15 -07:00
Eddy Nakamura 6fb3c37bf9
Enable FxCop - part 04 (#1076)
* FxCop - Part 04

* more updates

* adding readonly

* updating more files

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-13 21:28:08 -07:00
Reiley Yang e52d76e3d8
Refactor exporter - step 1 (#1078)
* refactor exporter

* stay closer to the spec

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-13 20:55:31 -07:00
Alan West 0802d1e67a
Make suppress instrumentation APIs less prone to introducing bugs (#1067)
* Make suppress instrumentation APIs less prone to introducing bugs

* Update changelog

* Change return type to IDisposable

* Make SuppressInstrumentationScope.Begin public

* Remove Sdk.BeginSuppressInstrumentationScope

* Fix exporter example

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-13 19:28:18 -07:00
Cijo Thomas 06ebd1f465
Add tests for TracerProviderSdk (#1077)
* Add tests for TracerProviderSdk

* fix

* comment
2020-08-13 13:01:07 -07:00
Reiley Yang 812fe936cf
Remove null sampler logic (#1072)
* remove null sampler logic

* fix ordering issue
2020-08-13 10:10:38 -07:00
Eddy Nakamura 499933ea81
Enable FxCop - part 03 (#1016)
removing tag

code review - 1

undoing to Count == 0

updating files

adding IEquatable

Adding tests

updating version and adding tests

updating net test version

rollback version update

adding more tests

removing extra line

updating files

Adding more tests

reverting change based on benchmark

updating gethashcode

updating files

sampling results tests

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-13 09:39:16 -07:00
Cijo Thomas 7f2e672dfa
Rename UseExporter to AddExporter (#1066)
* Rename UseZipkinExporter to AddZipkinExporter

* Rename ZPages exporter extension

* rename jaeger to AddJaeger

* Otlp Exporter rename

* rename extension helper class

* Rename zpages

* comments adressed

* markdwonlint ix
2020-08-13 09:27:00 -07:00
Cijo Thomas 4907f69a6d
Modify Exporter docs (#1065)
* Exporter doc improvements

* Add new readme

* fix readme

* fix deadlinks

* remove space trailing

* some review comments addressed

* more feedback

* sanity check
2020-08-13 08:59:02 -07:00
Rajkumar Rangaraj 5cb5d8e8c5
Micro optimization for built-in samplers (#1069)
* Small perf change to ComputeActivityDataRequest

* Special case optimization

* Further optimization
2020-08-13 08:34:53 -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 0af38acb9d
Rename workflows. (#1064) 2020-08-12 15:37:24 -07:00
Eddy Nakamura 99e4818809
Cron publish (#1063)
* Cron publish

* Adding comment to cron
2020-08-12 14:56:02 -07:00
Cijo Thomas 57002e0989
Remove Azure pipeline for myget push (#1062) 2020-08-12 12:21:22 -07:00
Reiley Yang 310f315099
Adjust/fix wording (#1061)
* adjust/fix wording

* adjust wording
2020-08-12 11:29:46 -07:00
Reiley Yang 46bb490a94
fix nits (#1060)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-12 09:33:05 -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
Cijo Thomas e86e49a2e9
Replace docs example with actual code (#1054)
* Replace doc with actual program

* fix

* min

* fix

* review coment

* fix format

* fix docfx build
2020-08-12 08:48:31 -07:00
Eddy Nakamura ffb1bc68e5
Adding search to setapikey (#1059) 2020-08-12 08:36:36 -07:00
Eddy Nakamura 2f5d302447
using key directly (#1058) 2020-08-12 08:16:50 -07:00
Eddy Nakamura 6c00fdbaab
updating nuget command (#1057) 2020-08-12 07:49:58 -07:00