public async Task <IActionResult> AllTags()
        {
            // var handler = new TraceHeaderPropagatingHandler();
            var headers       = HttpContext.Request.Headers;
            var spanIdBefore  = _managedTracer.GetCurrentSpanId();
            var traceIdBefore = _managedTracer.GetCurrentTraceId();

            _logger.LogInformation(
                "headers: {@HeadersBefore}, spanIdBefore: {@SpanIdBefore}, traceIdBefore: {@TraceIdBefore}",
                headers, spanIdBefore, traceIdBefore);
            // var span = _managedTracer.StartSpan(nameof(AllTags))
            using (var span = _managedTracer.StartSpan(nameof(AllTags)))
            {
                var headersAfter = HttpContext.Request.Headers;
                var spanIdAfter  = _managedTracer.GetCurrentSpanId();
                var traceIdAfter = _managedTracer.GetCurrentTraceId();

                _logger.LogInformation(
                    "span: {@Span}, headersAfter: {@HeadersAfter}, spanIdAfter: {@SpanIdAfter}, traceIdAfter: {@TraceIdAfter}",
                    span, headersAfter, spanIdAfter, traceIdAfter);
                // var traceHeaderHandler = new TraceHeaderPropagatingHandler(() => _managedTracer);
                var result = await _tagBL.GetAllTags();

                return(Ok(result));
            }
        }
        public async Task BeginJobAsync()
        {
            _logger.LogInformation("Beginning {JobName}.", JobName);
            await _jobStatusNotifier.PushCalculateTagCountsJobStatusUpdate(JobStage.CountingTagged);

            var tags = await _tagBL.GetAllTags();

            if (tags.Details.ResultStatus != ResultStatus.Success)
            {
                _logger.LogWarning("There was a problem retrieving tags in order to count them.");
            }
            else
            {
                foreach (var tag in tags.Data)
                {
                    await CalculateArticleCount(tag);
                }
            }

            await _jobStatusNotifier.PushCalculateTagCountsJobStatusUpdate(JobStage.Done);

            _logger.LogInformation("Finished {JobName}.", JobName);
        }