opentracing-csharp icon indicating copy to clipboard operation
opentracing-csharp copied to clipboard

No Sample/Tutorial

Open mumarniaz opened this issue 7 years ago • 4 comments
trafficstars

Hi, I have recently has a requirement to used open tracing API in our microservices project and for that i need to use opentracing-csharp library but somehow i'm finding it very hard to use it as there is no sample/readme to use this library in .net project. Can you please point out any sample or tutorial to kick start using this library. It will be very helpful. I have seen java library provide some clean examples which are very useful.

Thanks

mumarniaz avatar Dec 28 '17 07:12 mumarniaz

@mumarniaz I ported over the MockTracer in this PR here: https://github.com/opentracing/opentracing-csharp/pull/54 - it's only a couple of C# files; that might be enough of a working sample to give you some idea as to how to implement the API.

Aaronontheweb avatar Jan 26 '18 04:01 Aaronontheweb

Status update:

Java-like examples are coming with #70 - this will probably be merged by the end of the week.

For the "instrumentation" side, I just released a first version of OpenTracing.Contrib.NetCore which is for .NET Core apps (ASP.NET Core and regular console apps) and instruments a lot of components (HttpClient, ASP.NET Core, Entity Framework Core, other DiagnosticSource events) with a single line of code (services.AddOpenTracing()). Usage is shown in some samples.

My next goal is to get a Zipkin and/or Jaeger compatible tracer library. I have some incomplete PoC code that uses zipkin4net and there's already a few packages on nuget.org so I'll review them and talk to these people to see if we can join forces and concentrate on one project.

Once we know which tracer works best, I want to create a blog post with a proper tutorial.

cwe1ss avatar Mar 12 '18 20:03 cwe1ss

@cwe1ss we'd love some eyes / to join forces on LetsTrace and the planned plugins for Jaeger and Zipkin.

I know my company and another one are planning to start implementing it into our production systems. We are planning to support it long term as well as looking into working with Jaeger to become an official client.

grounded042 avatar Mar 13 '18 12:03 grounded042

fyi: @saschaholesch is working on the C# version of https://github.com/yurishkuro/opentracing-tutorial - you can find it here: https://github.com/saschaholesch/opentracing-tutorial/tree/csharp

cwe1ss avatar Apr 26 '18 19:04 cwe1ss