* 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
* Remove extra SetAttribte and AddEvent overloads on Span
* return bool double and long attribues
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
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.