Commit Graph

39 Commits

Author SHA1 Message Date
James Newton-King e7bd851f32 Add OpenTelemetry.Hosting (#275)
* Add OpenTelemetry.Hosting

* Update README.md

* Docs and additional test
2019-10-17 22:05:39 -07:00
Liudmila Molkova 3838e81aca minor style fixes (#274)
* usings outside in Abstractions

* Move usings outside of namespace and apply style

* more style fixes

* merge with master

* build fix
2019-10-14 11:57:21 -07:00
Bruno Garcia d48e702286 ref: Move using outside namespace (#277) 2019-10-12 10:03:45 -07:00
Liudmila Molkova 7141ee23d8
Tracing configuration API (#267)
* tracer factory configuration

* review

* default factory

* review

* Tests and readme

* Update README.md

Co-Authored-By: Austin Parker <austin@lightstep.com>

* null checks

* rebase from master
2019-10-11 18:53:11 -07:00
Liudmila Molkova afb1381bbd
Remove span builder (#268)
* Remove SpanBuilder

* tests

* more tests and readme

* review feedback
2019-10-11 15:47:19 -07:00
Liudmila Molkova 61fe06036a
Separate auto-collectors and make them accept Tracer (#266) 2019-10-09 09:29:29 -07:00
Liudmila Molkova 6097bb3136
Use IsEnabled DS callback to filter out requests (#259)
* Use IsEnabled DS callback to filter out requests

* Update src/OpenTelemetry.Collector.Dependencies/DependenciesCollectorOptions.cs

Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>

* Update src/OpenTelemetry.Collector.AspNetCore/RequestsCollectorOptions.cs
2019-10-08 17:24:46 -07:00
Liudmila Molkova ae98cb8d22
Update Resource SDK to work according to spec (#248)
* Update Resource SDK to work according to spec

* minor improvements

* fix tests

* merge conflicts
2019-10-03 12:53:39 -07:00
Wolfgang Ziegler 7453ec3258 Named tracers (#239)
* Implementing the "Named Tracers" proposal for .NET

* Improve Named Tracers implementation.

LoggingTracer now prints "LibraryResource" information (name + version)
Make "LibraryResource" available on Spans.

* Improved and refactored Tracer creation

* Fixed issues and tests after merge

* Implemented PR feedback

* Implementing the "Named Tracers" proposal for .NET

* Improve Named Tracers implementation.

LoggingTracer now prints "LibraryResource" information (name + version)
Make "LibraryResource" available on Spans.

* Improved and refactored Tracer creation

* Fixed issues and tests after merge

* Implemented PR feedback

* Implement PR review feedback

* Organize using directives

* Update src/OpenTelemetry.Collector.AspNetCore/RequestsCollector.cs

Co-Authored-By: Liudmila Molkova <lmolkova@microsoft.com>

* Update RequestsCollector.cs
2019-10-03 10:05:16 -07:00
Peter Wiese 84cdde8d5c Support explicit timestamps for OpenTracing ISpanBuilder and ISpan operations (#256) 2019-10-02 13:20:37 -07:00
Liudmila Molkova 7785258c2b
Remove IEvent interface (#246)
* remove IEvent interface

* Update src/OpenTelemetry.Abstractions/Trace/Event.cs

Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
2019-10-01 11:55:10 -07:00
Liudmila Molkova ad6ad5c5c2
remove IScope (#247) 2019-10-01 11:36:02 -07:00
Liudmila Molkova 754c80a702 Remove ILink interface (#245) 2019-10-01 11:04:58 -04:00
Cijo Thomas 6cad307c01 Fix jaeger exporter by assigning jaegerAgentUdpBatcher in constructor (#242)
* fix jaeger exporter by assigning udpbatcher in constructor

* JaegerTraceExporter keep existing constructor and default to JaegerUdpBatcher when none specified.

* monior refactor
2019-10-01 10:27:34 -04:00
Liudmila Molkova 58717abf27
Implement batching processor and use it by default (#228)
* Implement batching processor and use it by default

* up

* Tracer ctor fix

* relax tests checks for number of export calls

* Update src/OpenTelemetry/Trace/Export/SimpleSpanProcessor.cs

Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>

* relax tests
2019-09-26 12:05:47 -07:00
Liudmila Molkova 762b5ce0bc
Aligns exporting pipeline with SDK spec (#227)
* SpanProcessor and exporter changes

* SpanProcessorOnStart

* fix examples
2019-09-23 12:34:33 -07:00
Liudmila Molkova 8525f389ad
remove SpanData (#222) 2019-09-23 09:00:32 -07:00
Liudmila Molkova 888f94a44e Clean up trace config (#216) 2019-09-20 23:29:41 -07:00
Liudmila Molkova 207684787b Use DateTimeOffset instead of DateTime (#214) 2019-09-20 23:05:50 -07:00
Sergey Kanzhelev a793f5f542
a few minor warnings (#212) 2019-09-20 22:58:57 -07:00
Liudmila Molkova ee1458466c
Start and end timestamps on span (#211)
* Allow setting start and end time on Span

* Fix redis collector to set timestamps and never use span data

* review comments
2019-09-20 15:11:51 -07:00
Bruno Garcia 589b129055 ref: cleanup sample (#195) 2019-08-26 17:25:14 -04:00
Austin Parker 78e5053b8d
Add LightStep Exporter (#185) 2019-08-26 17:18:23 -04:00
Liudmila Molkova e00bccb15f Make samples projects not packable (#165) 2019-07-29 22:03:55 -07:00
Tim Wegner 175ae3bf0d Dev/twegner/issue 139 (#153)
* Removing ExportComponent

* Updating IExportComponent references

* Updating references to ExportComponent
2019-07-24 17:45:25 -07:00
PS-EGHornbostel 8e1d8fa47e Jaeger exporter implementation (#132)
* Fix visual studio dotnet core build task

* Added CNCF Jaeger exporter support

https://github.com/open-telemetry/opentelemetry-dotnet/issues/77

* possible fix for win32 build issue.

* Fix windows build by adding Thrift source

* Fix yet more windows build issues.

* fix another style issue.

* fix reference to System.Net.Http

* remove unnecessary conditional framework reference.

* Update lib/Thrift/Transports/Client/TStreamClientTransport.cs

Co-Authored-By: Bruno Garcia <github@brunogarcia.com>

* Update lib/Thrift/Transports/Client/TStreamClientTransport.cs

Co-Authored-By: Bruno Garcia <github@brunogarcia.com>

* Added the conditional for netstandard2.0

* remove IDisposable TODO comments.

* Update src/OpenTelemetry.Exporter.Jaeger/Implimentation/EmitBatchArgs.cs

Co-Authored-By: Bruno Garcia <github@brunogarcia.com>

* Add readme with thrift fork info.

* cleanup after merge.

* WIP remove thrift code

* Use prepackaged Apache Thrift assembly

* wrap EmitBatch

* Revert "wrap EmitBatch "

This reverts commit 9aaa1388ba.

* Revert "Use prepackaged Apache Thrift assembly"

This reverts commit fa5fbd8e6c.

* Revert "Use prepackaged Apache Thrift assembly"

This reverts commit fa5fbd8e6c.

* Revert "WIP remove thrift code"

This reverts commit bbbcf470e8.

* Add missing ConfigureAwait(false) to Thrift async calls.

* Added Thrift fork differences to README.md

* WIP Jaeger Unit tests

* Fix build after merge.

* WIP Jaeger Unit tests - Span conversion to Jaeger Thrift format

* WIP Jaeger Unit tests - Span conversion to Jaeger Thrift format - cleanup

* Clean up merge issues

* WIP

* WIP cleanup

* more testing WIP

* use pattern matching for attribute conversion

* WIP cleanup after timestamp removal.

* WIP

* WIP UDP integration test

* Update src/OpenTelemetry.Exporter.Jaeger/Implimentation/Batch.cs

Co-Authored-By: Bruno Garcia <github@brunogarcia.com>

* remove solution-explorer

* add to gitignore

* refactored List<T> to IEnumerable<T>

* Fix unit test bug

* Add integration test

* cleanup

* fix unix epoch conversion

* Update Thrift expected payload in unit test.

* fix build issues

* fix typo

* fix solution
2019-07-23 19:47:52 -07:00
Christoph Neumüller d053e7506e Add LoggingTracer sample (#92)
* move and rename "Samples" project to "samples\Exporters"

* add "LoggingTracer" as an example of an API implementation

* add readme to solution file

* remove Samples project from solution

* fix scoping

* add "LoggingTracer" as an example of an API implementation

* add readme to solution file

* fix scoping

* changed back to 2.1. was an accidental change.

* added "Demo" to project names

* adapted LoggingTracer to API changes. stripped down asp.net core example to bare minimum.

* cleaned up LoggingTracer sample. not more NotImplementedExceptions, adhere to code style better (usings), don't log getters

* consistency fixes

* made console sample async, code style

* adapt to API changes
2019-07-23 09:42:55 -07:00
Austin Parker 1ae543c575
Refactor AttributeValue Abstraction (#88)
* refactor AttributeType to KeyValuePair
2019-07-12 09:09:37 -04:00
Tim Wegner 4b273d46a4 Dev/twegner/issue 18 (#111)
* Rmoving ITraceComponent and TraceComponent

* Removing ITagsComponent, TagsComponentBase and TagsComponent

* REmoving ITagPropagationComponent, TagPropagationComponentBase and TagPropagationComponent

* Removing IStatsComponent, StatsComponentBase and StatsComponent

* Addressing test failures since updates have allowed rules on duplicates to be enforced.

* Test updates, wrok in progress

* Resolving some unit test failrues

* Resolving some unit test failrues

* Simplify map to list

* Addressing final set of unit test failures

* Updating for feedback

* Addressing tests that were relying on specific order

* Updating for feedback

* Addressing merge issues

* Resolving build and test failures introduced in merge

* Resolving additional build and test issues

* Fixing unresolved dependencies
2019-07-11 21:53:12 -07:00
Liudmila Molkova 023e861510 Align with spec on ISpanBuilder and ITracer (#133)
* Align with spec on ISpanBuilder and ITraces

* add bad args tests on SpanBuilder
2019-07-08 23:43:34 -07:00
Michael Ingold 843fc3e225 Code Cleanups (#131)
* reordered all usings (SA1208)

* Use trailing comma in multi-line initializers (SA1413)

* SA1005	Single line comment should begin with a space.

* SA1028	Code should not contain trailing whitespace

* A1101	Prefix local calls with this

* SA1500	Braces for multi-line statements should not share line

* SA1505	An opening brace should not be followed by a blank line.

* SA1513	Closing brace should be followed by blank line

* SA1517	Code should not contain blank lines at start of file

* A1507	Code should not contain multiple blank lines in a row

* SA1503	Braces should not be omitted

* SA1508	A closing brace should not be preceded by a blank line

* SA1210	Using directives should be ordered alphabetically by the namespaces

* IDE0065 Removed unnecessary usings

* SA1633    The file header is missing or not located at the top of the file.

* IDE0044    Make field readonly

* SA1311	Static readonly fields should begin with upper-case letter

* IDE0060	Remove unused parameter 'options' if it is not part of a shipped public API

* various IDE warnings cleaned up

* SA1400	Element should declare an access modifier

* SA1402	File may only contain a single type

* SA1638	File header file name documentation should match file name

* SA1629	Documentation text should end with a period

* various code uncommon style warnings fixes

* SA1137	Elements should have the same indentation
* SA1648	inheritdoc should be used with inheriting class

* SA1616	Element return value documentation should have text

* SA1310    Field should not contain an underscore

* Various documentation rule violations fixed

* SA1614	Element parameter documentation should have text
* SA1137	Elements should have the same indentation

* Various documentation rule violations fixed

* CS1574	XML comment has cref attribute that could not be
resolved
* CS1572	XML comment has a param tag for, but there is no
parameter by that name
* SA1204	Static members should appear before non-static members
* SA1201	A property should not follow a method
* SA1201	A constructor should not follow a property
* SA1202	'public' members should come before 'private' members
* SA1202	'internal' members should come before 'private' members
* SA1202	'protected' members should come before 'private' members
* CS0168	The variable 'ex' is declared but never used

* Moved to implicit version resolution, as stated in the warning from the
dotnet sdk

* various cleanups and project structure

* CS1591 disabled for the entire solution
* removed `[assembly: System.CLSCompliant(true)]` from contributed
projects
* Fixed various async snafus.

* removed version.props from proj file

* enabled TreatWarningsAsErrors
2019-07-08 22:32:22 -07:00
ysma500 0554756e8c Change open census to OpenTelemetry in readme file + Update prometheus quick guide in readme (#123)
* Changed open census to OpenTelemetry in readme file

* Added + wildcard, updated sample and readme to reflect sample
2019-06-25 22:54:37 -07:00
Bruno Garcia f6e400e02c dhere to coding style (#116)
* .editorconfig defines to use var
2019-06-21 09:02:22 -07:00
Stuart Blackler aec6feb6f4 Cleaned up infrastructure. Added code coverage (#105)
* Cleaned up infrastructure. Added code coverage

* PR Feedback
2019-06-12 23:39:31 -07:00
Tim Wegner d8813028de Dev/twegner/issue 21 (#97)
* Moving Resource, Tag, TagKey and TagValue to API

* Removing ITag, ITagKey and ITagValue

* Adding Resource to SpanData and removing ISpanData

* Integrating Resource into SpanData

* Creating new tests for Resource

* Updating tests

* Updating for review feedback

* Resolve merge conflicts
2019-06-10 13:45:25 -07:00
Sergey Kanzhelev f14f0e026f
traceId, spanId interfaces and Link alignment (#96) 2019-06-10 12:11:32 -07:00
ysma500 eb805258ef Fix/67 add listen all hostnames (#95)
* Modify PrometheusExporterOptions and its dependencies and Changelog


Modifications to use native string type and remove a warning of EOL

* Changelog update
2019-06-07 08:56:18 -07:00
Sergey Kanzhelev 47125330cd
Aligned Propagators (Binary and Text) with the Java API (#90)
* few random fixes

* removed propagation component and aligned namespaces

* fix build break

* fix unit test
2019-06-05 13:59:40 -07:00
Christoph Neumüller c4fc4b38e9 Move and rename "Samples" project (#91)
* move and rename "Samples" project to "samples\Exporters"

* remove Samples project from solution
2019-06-04 13:24:18 -07:00