opentracing-contrib / csharp-netcore

OpenTracing instrumentation for .NET Core 3.1 & .NET 6+ apps
Apache License 2.0
262 stars 74 forks source link

Question: Why child span not created? #60

Closed Marusyk closed 4 years ago

Marusyk commented 4 years ago

I have some message handler

using (var scope = _tracer.BuildSpan("processing-event").StartActive(true))
{
    await ProcessEvent(message);
}

Inside ProcessEvent I run some service that call entity framework 2 times. In a result I got 3 separate spans. Screenshot_5

Should not it be one span processing-event with 2 childs? How can I achieve that?

Marusyk commented 4 years ago

any help? @cwe1ss could you please suggest?