示例#1
0
        public async Task TestTraceMethodAsyncReturnVoid()
        {
            _recorder.BeginSegment("test", TraceId);

            int count = 0;
            await _recorder.TraceMethodAsync("PlusOneNoReturnAsync", () => PlusOneNoReturnAsync <int>(count));

            var subsegment = AWSXRayRecorder.Instance.TraceContext.GetEntity().Subsegments[0];

            Assert.AreEqual("PlusOneNoReturnAsync", subsegment.Name);

            _recorder.EndSegment();
        }