public void GenerateTraces(CreateTracesRequest request)
        {
            var samplerType = request.Type;
            var tracer      = _tracers[samplerType];

            for (var i = 0; i < request.Count; i++)
            {
                var builder = tracer.BuildSpan(request.Operation);
                if (request.Tags != null)
                {
                    foreach (var kv in request.Tags)
                    {
                        builder.WithTag(kv.Key, kv.Value);
                    }
                }

                var span = builder.Start();
                span.Finish();
            }
        }
 public ActionResult CreateTraces(CreateTracesRequest request)
 {
     _logger.LogInformation("http:create_traces request: {request}", request);
     _behavior.GenerateTraces(request);
     return(Ok("OK"));
 }