Commit Graph

35 Commits

Author SHA1 Message Date
Mikel Blanchard 9298e0ef3f
Redis instrumentation with ActivitySource by Eddy & Mike (#800)
* Attempting to get Redis instrumentation up and working using ActivitySource API.

* updating tests

* renaming and updating tests

* Test fixes.

* Fixed Redis net461 tests failing on connection.

* Redis integration tests and bug fixes.

* Adding tests

* Put back redis connection options.

* Updates for changes in master.

* adding comments to testRedis

* updating based on comments

* updating summary

* Switched a couple spots using string keys to constants.

* Redis integration tests

* Small tweak to the GitHub action to make it more consistent with the others.

* Made instrumentation internal. Updated README.

* rename MaxFlushInterval to FlushInterval, adding flushInterval to samples

* Removed running of non-integration tests from Redis dockerfile.

Co-authored-by: Eddy Nakamura <eddynaka@gmail.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-14 08:47:59 -07:00
Eddy Nakamura d237438115
Remove SpanExporter from otlp (#794)
renaming class/file

renaming to exporterRequest

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-07-09 23:54:36 -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
Rajkumar Rangaraj 1ed4107695
Add ForceFlush to ActivityProcessor (#788)
* Added forceflush

* Modified forceflush to flush activity object created before this call.

* Resolving conflict

* Resolving conflict

* Fix tests.

* changed API summary

* Added ConfigureAwait, processors count to task list

* Changes API summary
2020-07-09 21:50:22 -07:00
Eddy Nakamura 4d9d4a014a
Updating reference from SpanExporter to ActivityExporter for Jaeger (#793)
* Remove SpanExporter from Jaeger

renaming files and updating references

merging JaegerExporter and JaegerTraceExporter

merging tests

update

* removing comment
2020-07-09 17:40:18 -07:00
Cijo Thomas db781d2dfd
Remove span based examples from console examples. (#792) 2020-07-09 13:33:47 -07:00
Cijo Thomas c5e5604115
Remove span exporter from ConsoleExporter (#783)
* Remove SpanExporter from ConsoleExporter. Only Activity exporter needs to remain.

* rename console activity exporter to just console exporter

* change example dotnet run

* minor
2020-07-08 11:23:59 -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
Rajkumar Rangaraj 13b1a5d2fc
Add a ConsoleActivityExporter/ZipkinActivityExporter extension method with samples (#759)
* Create testrajrang

* Added overload methods to Console and Zipkin exporter

* Refactored and change variable names

* Incorporating PR feedback

* Incorporating Mikel's feedback
2020-07-02 10:50:48 -07:00
Cijo Thomas 504713f759
Add Resource to OpenTelemetryBuilder for Activity (#739)
* Add Resource to OpenTelemetryBuilder for Activity

* ActivitySourceAdapter to pass parentcontext to sampling.

* More tests

* more tests

* refactoring a bit
2020-07-01 17:02:45 -07:00
Cijo Thomas 5404ca0354
Add custom processor example and consoleexporter extension method. (#754) 2020-06-30 07:03:55 -07:00
Austin Parker c5dafd48fa
Add gRPC headers to OTLP requests (#740)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-06-26 09:37:05 -07:00
Rajkumar Rangaraj e5d6865406
Modified sample to include Zipkin activity exporter + Fixed time precision for annotation (#743)
* Updated Console Sample for Zipkin exporter to incude activity exporter + fixed a bug in Annotation timestamp.

* Refactored

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-06-22 23:07:53 -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 296e0ff3a7
Add Probability Sampler for Activity (#702)
* Merging changes in OpenTelemetrySdk

* Renames from span to activity
2020-06-02 15:03:29 -07:00
HarnidhK 0867c66a0f
Display span information on Z page (#491)
* Classes scaffolding for zPages

Implemented Http Server to create HTML that displays span count using SimpleSpanProcessor

* incorporating review comments

- made ContentType const in zpages stats builder
- modified return statements in zpages exporter
- removed implementation folder from ZPages.csproj
- changed default uri for zpages test application
- changed data type of spanCount to long, and doing Interlocked.Increment when span starts

* fixing minor error

* Delete Exporters.csproj

Fix for https://github.com/open-telemetry/opentelemetry-dotnet/issues/480

* Delete Exporters.csproj

Fix for https://github.com/open-telemetry/opentelemetry-dotnet/issues/480

* displaying span status on zpages

* Adding Span Error Count and fixing build failure

* Adding Span Latency to zpages http server

* Adding class for storing span information

* Adding methods for calculating latency, count and error count values in last hour and last minutes

* Building HTML for zpage and adding timer for calculating metrics

* Implementation changes

- Added ZPages Span Processor
- Changed the logic for metrics calculation

* Update src/OpenTelemetry.Exporter.ZPages/Implementation/ZPagesStatsBuilder.cs

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>

* Incoroporating Review Comments

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-06-01 23:15:41 -07:00
Paulo Janotti cab77a9bef
Add a Jaeger Activity Exporter (#693)
* Add a Jaeger Activity Exporter

* Fix a comment and code doc

* Fix code doc
2020-05-23 06:10:36 -07:00
Cijo Thomas 577ae6cce3
Added sampler to Activity - v1 (#683)
* Added sampler to Activity
2020-05-20 22:47:07 -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
Paulo Janotti 0c01cc77a6
Add OTLP for Activity Exporter (#679)
* Add OTLP Exporter for Activity

* Initial PR feedback

* Check ID format and use DisplayName

* Skip the activity instances that could not be translated

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-05-19 21:34:58 +01:00
Cijo Thomas 44b3a438d7
Step 1 - Use new Activity to Replace OT Span (#660) 2020-05-13 20:21:28 +01:00
Cijo Thomas 30f841b2ef
Remove year from Copyright header (#671)
* Remove year from Copyright header

* some projects were unloaded and hence change didnt apply. this commit fixed it
2020-05-07 11:53:43 -07:00
Mike Goldsmith e11de97b25
Remove stackdriver exporter (#665) 2020-05-06 21:18:44 +01:00
Mike Goldsmith c731b7b38a
remove lightstep exporter (#663) 2020-05-06 12:34:38 -07:00
Reiley Yang 011b21054f
Remove application insights exporter (#658)
* remove application insights exporter

* switch example to use zipkin

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-05-04 13:49:49 -07:00
Paulo Janotti dacae6d50f
Update OpenTelemetry Protocol Exporter (#643)
* Update OpenTelemetry Protocol Exporter

Update the OTLP to version 0.3.0 of the proto files.

* Revert change to library resources

* Rename UseOpenTelemetryProtocol to UseOtlpExporter

* Rename UseOtlpExporter to UseOpenTelemetryProtocolExporter
2020-04-30 15:27:17 -07:00
Long Mai 4f352ff73c
refactor!: collector to adapter (#612)
* refactor: collector to adapter project file and dir

* refactor: collector to adapter namespaces

* refactor!: collector to adapter variable rename

BREAKING CHANGE

* docs: rename collector to adapter

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-04-22 14:44:55 -07:00
Cijo Thomas 838d25f78b
Add working prometheus example to samples (#610)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-04-20 16:55:15 -07:00
Cijo Thomas 2e7e93cc01
Metric Push Controller and basic config (#599)
* Add PushMetricController

* unit test

* Add MeterBuilder and MeterFactory

* adjust tests

* correct prometheus example

* Minors

* small

* Prometheus test

* Fix Prom Middleware test

* few small fixes

* Address comments

* avoid meter to metersdk cast

* one test

* comment

* test fx

* timing adjustment

* minor

* fix Eventname

* avoid unnecessary copy of metric list

* fix trailing spaces etc after merge

Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
2020-04-16 16:08:05 -07:00
Łukasz Pyrzyk 6ea1238117
New using syntax (#528)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-03-06 10:07:19 -08:00
Mike Goldsmith 66c778fc77
Add converters for ActivitySpanId and ActivityTraceId (#490)
* add converters for ActivitySpanId and ActivityTraceId

* make converts internal

Co-authored-by: Austin Parker <austin@lightstep.com>
2020-02-12 15:43:30 -05:00
HarnidhK 07d794012e
Classes scaffolding for zPages (#474)
* Classes scaffolding for zPages

Implemented Http Server to create HTML that displays span count using SimpleSpanProcessor

* incorporating review comments

- made ContentType const in zpages stats builder
- modified return statements in zpages exporter
- removed implementation folder from ZPages.csproj
- changed default uri for zpages test application
- changed data type of spanCount to long, and doing Interlocked.Increment when span starts

* fixing minor error

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-02-04 22:11:40 -08:00
SychevIgor 63d9bf145c
Asp.net core based sample of ApplicationInsights export (#433)
* Asp.net core based sample of ApplicationInsights export

* links to samples

* update links

* fixed solution

* fix merge issues

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-01-29 12:18:16 -08:00