Commit Graph

586 Commits

Author SHA1 Message Date
Liudmila Molkova 7b6f8b94d4
Remove Link.FromActivity (#201) 2019-09-11 10:26:04 -07:00
Peter Wiese cf33e86290 Move reusable Collector related classes into the OpenTelemetry SDK (#183)
* Move reusable Collector related classes into OpenTelemetry

Four classes were essentially duplicated between the aspnetcore and dependencies collector projects. We can shared these classes between the two projects by making some generic.

* Innocuous whitespace change to trigger the build again. There is an unrelated non-deterministic test that is failing

* Increasing the allowable range from AssertApproxSameTimestamp from 10ms to 20ms. Tests keep failing with times like 12 and 14ms

* Removing the PropertyFetcher from the public interface

* Applying a bug fix in the PropertyFetcher. The same kind of fix was done in the OpenTracing ASP.NET Core instrumentation package
2019-08-28 20:41:30 -07:00
Austin Parker 78e5053b8d
Add LightStep Exporter (#185) 2019-08-26 17:18:23 -04:00
Wolfgang Ziegler 5c5f2fc191 Make OpenTelemetry.Trace.Status a struct type. (#191)
* Change "OpenTelemetry.Trace.Status" to a struct type.

Status carries mainly a code representation operation state and is a good candidate for a value type.
This can potentially improve GC and memory pressure.
2019-08-20 09:58:09 -04:00
Liudmila Molkova ff8f7b6d44
Better Assert (with error message) for timestampt range (#168) 2019-08-06 21:28:19 -07:00
Liudmila Molkova 487f358caf
Update to DiagnosticSource preview 7 and leverage Activity.SetIdFormat() (#160) 2019-07-24 18:15:41 -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
Bruno Garcia d1e66e1e0b Build all targets in all platforms. (#155)
* build all targets in all platforms
Resolves #154

* Tests for netfx run only on Windows

* AppInsights can build x-plat

* fix: TFMs for Jaeger
2019-07-24 10:46:09 -07:00
Liudmila Molkova 2183c425e8
TimedEvents clean up (#152) 2019-07-16 16:25:52 -07:00
Liudmila Molkova 8aae2c02f1
Clean up (#147)
* Remove timestamp

* Remove timestamp, remove Timer, remove Duration. remove Span Stores, remove EndSpanOptions and EndSpanOptionsBuilder

* remove collections

* clean up more collections and span name

* missing files

* dups

* rebase issues
2019-07-15 10:21:44 -07:00
Liudmila Molkova 1eef24fcec
More Attributes improvements (#149)
* Remove IAttributes and change Dictionary to list

* Optimize AtributesWithcapacity to use linked list instead of ordered disct and reduce copying
2019-07-13 19:07:01 -07:00
Liudmila Molkova 4952219a8e
Remove remains of AttributeValue (#148)
* remove remains of AttributeVakue

* fix tests

* fix tests
2019-07-13 18:56:24 -07:00
Liudmila Molkova c5f33e1742
Support .NET Activities (#140)
* StartSpanWithActivity

* Sampler builder tests

* cleanup start span

* span tests

* optimize tracestate

* public tracestate parsing

* more tracestate tests

* Scopes and scope tests

* minor merge issues

* Do not make Span's Activity Current until WithSpan is called

* CurrentSpanUtils to static

* Tracestate parsing is not public API, reuse code without exposing it

* more tests and fixes

* rename

* rename FromCurrentActivity to SetCreateChild

* fix rebase issues

* fix build warning

* undo separate test project for Abstractions.Tests to fix build

* up
2019-07-12 18:31:21 -07:00
Austin Parker 1ae543c575
Refactor AttributeValue Abstraction (#88)
* refactor AttributeType to KeyValuePair
2019-07-12 09:09:37 -04:00
Liudmila Molkova a14967f401 Remove RandomGenerator again (#143) 2019-07-11 23:41:27 -07: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 9523c3110c
Use ActivityTraceId and ActivitySpanId (#136) 2019-07-11 12:10:38 -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
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
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
Tim Wegner 9a273275fd Dev/twegner/issue 61 (#86)
* Moving span store related interfaces from API to SDK

* Addressing PR feedback on reducing interface complexity and add some clarity around SpanStore interfaces and implementation.
2019-06-05 09:56:52 -07:00
Sergey Kanzhelev cee7906144
a few un=important class moves (#87) 2019-06-04 02:56:51 -07:00
Sergey Kanzhelev bca11b8418
remove options from end and make SpanContext specific class (#57) 2019-06-03 09:44:53 -07:00
Sergey Kanzhelev 8fa2689ba9
aligned ISpan operaitons with the spec (#54)
* aligned ISpan operaitons with the spec

* noop never throws

* rename noop span to test span to avoid confusions

* fix tests

* fixed unit test
2019-05-31 22:26:53 -07:00
Tim Wegner af40a9b78c Dev/twegner/issue 17 (#55)
* Removing remote parent references

* Removing remote parent references

* Last remoteParent references removed and test updates to reflect changes
2019-05-31 16:30:14 -07:00
Christoph Neumüller e9c1015c79 Span.UpdateName instead of setter on Name (#45) 2019-05-28 09:47:34 -07:00
Sergey Kanzhelev cbe9eacd05
basic implementation of RecordSpanData (#44)
* record API without implementation

* re-apply copy of files

* RecordSpanData implemented
2019-05-28 08:38:38 -07:00
Tim Wegner 5549850092 Remove MessageEvent to address issue #16, use SpanContext.Blank vs Invalid to match Java implementation, xml doc cleanup on touched files, (#38) 2019-05-20 14:59:58 -07:00
Tim Wegner 7b854b4fff Dev/twegner/issue 9 (#37)
* Change annotation to event, fix issue 9

* Revert Zipkin changes

* Address build break following revert

* Resolve build failure
2019-05-19 09:18:10 -07:00
Tim Wegner 3b4d7c22e2 Add producer and consumer SpanKind (#8), change Unspecified to Internal (#31), default to SpanKind.Internal (#15) (#36) 2019-05-15 13:42:35 -07:00
Austin Parker f39f11cee1 fix #14 (#27) 2019-05-14 08:29:56 -07:00
Sergey Kanzhelev b11593d2d6 find and replace OpenCensus -> OpenTelemetry 2019-05-10 10:30:04 -07:00