예제 #1
0
        private static string GetTraceIdFromHeader(HttpResponseHeaders headers)
        {
            if(headers == null || headers.Count() == 0)
            {
                return string.Empty;
            }

            foreach(var h in headers)
            {
                if (h.Key.Equals("x-accela-traceId", StringComparison.OrdinalIgnoreCase))
                {
                    return h.Value.FirstOrDefault();
                }
            }

            return string.Empty;
        }