Commit Graph

28 Commits

Author SHA1 Message Date
Mikel Blanchard d24a042964
ResourceBuilder API (#1533)
* Attempting to improve the Resource API.

* XML comment change.

* Updated Resource API based on feedback.

* CHANGELOG update.

* Tweaked variable name.

* CHANGELOG updates.

* Removed OtelEnvResourceDetector from default Resource. Fixed some XML comments.

* Past tense fix for CHANGELOG.

* CHANGELOG formatting.

* Removed the ability to change the environment variable name for OtelEnvResourceDetector.

* Updates for recent refactors.

* Code review.

* Example updates.

* Cleanup.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-17 06:55:09 -08:00
Cijo Thomas 6157364796
Zipkin tags used for InstrumentationLibrary fixes (#1512)
* Fix zipkin exporter to match spec about instrumentationlibrary

* changelog

* fix unwanted space
2020-11-11 16:38:45 -08:00
Mikel Blanchard b956a5f7e9
Resource allocation improvement (#1463)
* Introduces the concept of IProviderContainer which allows injection of a TracerProvider into lower levels (Processor, Exporter, etc.).

* Removed IProviderContainer and fixed the provider types.

* Removed log provider example.

* Working on getting everything working with the new API.

* Attempting to get all the tests passing.

* Added concept of BaseProvider. Updated public API.

* Project fixup.

* Removed OnParentProviderSet.

* Updated changelog.

* Test fixup.

* Test fixup.

* Cleanup.
2020-11-09 13:39:25 -08:00
Mikel Blanchard ddac284e53
Updated Jaeger & Zipkin exporters to check for default activity.ParentSpanId (#1433)
* Updated Jaeger & Zipkin exporters to check for default activity.ParentSpanId.

* Tabs are less filling, but spaces taste great.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-02 10:07:41 -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 2d6792af93
Support Resources in ZipkinExporter (#1385)
* Updated ZipkinExporter to take service name & send tags from Resource if it is set.

* Added LocalEndpoint.Tags code to net452 path.

* Updated CHANGELOG.

* Remove the old Zipkin LocalEndpoint override as it now has the Resource mechanism.

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-10-23 13:22:54 -07:00
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 6348f387f2
Cleaning files (#1323)
* Cleaning files

* applying fxcop suggestions

* fixing taskscheduler warning

removing fxcop
2020-10-06 20:24:32 -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
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
Eddy Nakamura 465fc09320
Zipking will export all strings (#1197)
* Zipking will export all strings

* updating tests

* renaming tests, solving incorrect tests

* net.peer.port will be exported as well
2020-08-28 11:20:17 -07:00
Eddy Nakamura 4d0728cb24
ZipkinExporter for net452 will export tags as string (#1176)
* ZipkinExporter for net452 will treat everything as string

* using try/finally

* adding array test and helper method

* adding aggressiveinlining

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-27 22:32:59 -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
Reiley Yang 552728a7bc
use OpenTelemetry and otel consistently (#1158) 2020-08-24 18:06:39 -07:00
Cijo Thomas e411956c1f
Remove test from exporter which are testign something else (#1156) 2020-08-24 17:56:41 -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
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
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
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
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
Eddy Nakamura 3f01bdc108
Improving code coverage (#939)
Adding tests for zpages and hosting extensions

Testing enableConnectionLevelAttributes from SqlClient

updating assert

Adding tests for SqlClientInstrumentationOptions

removing extra test

undoing changes

updating changelog

renaming file to be complicant with other exporters

renaming files and adding more tests
2020-07-28 21:46:44 -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
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
Cijo Thomas 2712d4b29b
More cleanup - zipkin exporter removed span related code (#823) 2020-07-14 22:54:23 -07:00
Eddy Nakamura b7b0b2cd92
Remove SpanExporter from Zipkin (#795)
updating zipkinexporterbenchmarks and removing zipkinTraceExporter/Tests

updating TestRedis

adding testjaeger text

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-09 21:57:34 -07:00