Commit Graph

12 Commits

Author SHA1 Message Date
Eddy Nakamura a3bf19d450
Removing Todos (#1029)
* Removing Todos

renaming parameter

adding tests

updating spanbuilderShim

updating to internal

renaming to spanAttributes

solving build issue

adding spec reference

Continue Refactoring TracerProvider. (#1035)

* optimize the flow

* fix instrumenataion

* move mroe things to provider ctor

* move logic arounds

Co-authored-by: Reiley Yang <reyang@microsoft.com>

changing to class and following spec to replace value

replacing from default to null

updating package

adding xunit.runner

renaming method

* removing duplicated files

* adding some tests and updating to default constructor

* removing to be compliant to spec

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-11 07:50:53 -07:00
Cijo Thomas d796db07b4
Replace Span with Shim Span. (#850)
* Remove tracerfactory and tracerbuilder

* Remove tracer extensions

* Add Span and Tracer shims. Remove all span code.

* more wrapper apis

* Wrap ActivityEvent

* wrap links

* change tracestate back to keyvalue pair in contxt

* ore tracer fix

* OpenTracing shim

* example change

* remove spancontext

* remove more of the new stuffs

* benchmark fixes

* remove Event class

* TraceState consistent name

* casing fix

* equality fix

* fix test

* test todo

* typo

* rename after accepting shim chanegs from Raj

* remove new from the end of many names.

* benchmark fix

* TraceStateUtils naming

* TraceStateUtilsNew rename to fix build issue at CI.

* renamings
2020-07-21 23:11:13 -07:00
Rajkumar Rangaraj 609c57c31f
Update OpenTracingShim to use OpenTelemetry shim (#859)
* Update otlp test

* Converted Span to Activity

* Modified tests

* Changed dispose in tests and added exporters sample

* Renamed all activity to span

* Modified activity to Activity

* Modified existing tests, no need to use Activity based shim

* Modified sample.

* Incorporating Cijo's feedback
2020-07-21 17:03:26 -07: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
Eddy Nakamura fbcd1a0244
Adding files with blank space (#600) 2020-04-15 13:11:28 -07:00
Liudmila Molkova 86f814a738
Make BlankSpan, SpanContext.Blank internal (#419) 2019-12-27 10:44:05 -08:00
Liudmila Molkova 18e5b2f127 parent d49ce958a3 (#411)
author Liudmila Molkova <lmolkova@microsoft.com> 1576626312 -0800
committer Liudmila Molkova <lmolkova@microsoft.com> 1576862429 -0800

Link, SpanContext to struct
2019-12-20 10:31:50 -08:00
Sergey Kanzhelev 4711b87c89
minor corrections for IsRemote for completeness (#336)
* minor corrections for IsRemote for completeness

* Update src/OpenTelemetry.Api/Trace/SpanContext.cs

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

* RemoteBlandk->BlankRemote for better intellisense
2019-11-11 10:59:03 -08:00
Bruno Garcia d48e702286 ref: Move using outside namespace (#277) 2019-10-12 10:03:45 -07:00
Liudmila Molkova b7fd0e79d6
Remove tracestate class and use ienumerable instead (#257) 2019-10-03 13:38:38 -07:00
Liudmila Molkova bae63f8c34
SpanContext.Create to public constructor (#233)
* Make SpanContext struct and make constructor public
do not allow link from blank context

back to class

* up
2019-09-30 08:19:14 -07:00
Peter Wiese 541390ffb1 Initial implementation of the OpenTracing bridge. (#197)
This is, where possible, a direct port of the current Java shim. There are some holes/TODOS. Notably:

-Missing the Binary injection/extraction of the span context. This doesn't exist with the current implementation of OpenTracing yet.
-Missing explicit timestamps for calls to OpenTracing ISpan::Log.
-Missing explicit timestamps for calls to OpenTracing ISpan::Finish
-Various calls to set/get baggage are not implemented. Requires OpenTelemetry DistributedContext to be finalized.

Other oddities worth nothing:

-The SpanBuilderShim has some conditional code for calling OpenTel SetCreateChild(true|false)
-The ScopeManagerShim is actively tracking scopes returned by calls to OpenTel WithSpan and associated those with the OpenTel ISpan used when calling WithSpan.

I tested this shim against an ASP.NET Core 3 Preview 8 service wired up with OpenTracing netcore and grpc collectors and exporting to Jaeger backend.

The included tests are unit tests only; no E2E tests.
2019-09-06 15:41:32 -07:00