* 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>
* 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
* 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
* 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
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.