Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use storage account in destination.service.resource #1284

Merged
merged 2 commits into from
May 26, 2021

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Apr 30, 2021

Relates: elastic/apm#426

@apmmachine
Copy link
Contributor

apmmachine commented Apr 30, 2021

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Branch indexing

  • Start Time: 2021-05-11T02:20:22.345+0000

  • Duration: 124 min 14 sec

  • Commit: b73a9b2

Test stats 🧪

Test Results
Failed 230
Passed 9129
Skipped 22
Total 9381

Trends 🧪

Image of Build Times

Image of Tests

Test errors 230

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Linux / Test / AgentTimerTests.Elastic.Apm.Tests.HelpersTests.AgentTimerTests.AwaitOrTimeout_task_timed_out_test – Elastic.Apm.Tests.HelpersTests.AgentTimerTests
    Expand to view the error details

     Expected value to be 1, but found 0. 
    

    Expand to view the stacktrace

     Expected value to be 1, but found 0.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
       at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
       at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
       at FluentAssertions.Numeric.NumericAssertions`1.Be(T expected, String because, Object[] becauseArgs)
       at Elastic.Apm.Tests.HelpersTests.AgentTimerTests.SutEnv`1.AwaitOrTimeoutCall(TimeSpan timeout, Task& delayTask, CancellationToken cancellationToken) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests/HelpersTests/AgentTimerTests.cs:line 298
       at Elastic.Apm.Tests.HelpersTests.AgentTimerTests.AwaitOrTimeout_task_timed_out_test(String dbgVariantDesc, Func`2 sutEnvCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests/HelpersTests/AgentTimerTests.cs:line 190
    Standard Output:
        Elastic APM .NET Tests> 184> Xunit> [2021-05-11 02:39:03.988 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.Tests.HelpersTests.AgentTimerTests.AwaitOrTimeout_task_timed_out_test(dbgVariantDesc: "3: Task<int>, 123 / Real timer", sutEnvCreator: Func`2 { Method = ISutEnv <AwaitOrTimeoutVariantsToTestImpl>b__2(Elastic.Apm.Logging.IApmLogger), Target = <>c__DisplayClass10_1 { agentTimerVariant = (Real timer, System.Func`2[Elastic.Apm.Logging.IApmLogger,Elastic.Apm.Tests.Utilities.IAgentTimerForTesting]), CS$<>8__locals1 = <>c__DisplayClass10_0 { ... } } })...
        Elastic APM .NET Tests> 184> Xunit> [2021-05-11 02:39:04.219 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.Tests.HelpersTests.AgentTimerTests.AwaitOrTimeout_task_timed_out_test(dbgVariantDesc: "3: Task<int>, 123 / Real timer", sutEnvCreator: Func`2 { Method = ISutEnv <AwaitOrTimeoutVariantsToTestImpl>b__2(Elastic.Apm.Logging.IApmLogger), Target = <>c__DisplayClass10_1 { agentTimerVariant = (Real timer, System.Func`2[Elastic.Apm.Logging.IApmLogger,Elastic.Apm.Tests.Utilities.IAgentTimerForTesting]), CS$<>8__locals1 = <>c__DisplayClass10_0 { ... } } }) 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secret", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usersessionid", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secret", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests.Utilities/MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Model/Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "password", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "pwd", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests.Utilities/MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Model/Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usertokensecret", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usertokensecret", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests.Utilities/MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Model/Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secretcreditcard", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Linux / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usersessionid", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests.Utilities/MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Model/Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Steps errors 5

Expand to view the steps failures

Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-11T04:24:34.361Z] Archiving artifacts withAzureCredentials: error org.jenkinsci.plugins.wo
Test IIS
  • Took 6 min 23 sec . View more details on here
  • Description: .ci/windows/test-iis.bat
Test & coverage
  • Took 103 min 22 sec . View more details on here
  • Description: .ci/windows/test.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-11T04:23:34.880Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: withAzureCredentials: error org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

Log output

Expand to view the last 100 lines of log output

[2021-05-11T04:24:31.260Z] Copied Elastic.Apm/Api/Tracer.cs. 
[2021-05-11T04:24:31.260Z] Starting copy source file Api/Cloud.cs. 
[2021-05-11T04:24:31.343Z] Copied Api/Cloud.cs. 
[2021-05-11T04:24:31.343Z] Starting copy source file Elastic.Apm/Api/Cloud.cs. 
[2021-05-11T04:24:31.419Z] Copied Elastic.Apm/Api/Cloud.cs. 
[2021-05-11T04:24:31.419Z] Starting copy source file Elastic.Apm/BackendComm/CentralConfig/CentralConfigResponseParser.cs. 
[2021-05-11T04:24:31.496Z] Copied Elastic.Apm/BackendComm/CentralConfig/CentralConfigResponseParser.cs. 
[2021-05-11T04:24:31.496Z] Starting copy source file Elastic.Apm/Config/ConfigStore.cs. 
[2021-05-11T04:24:31.575Z] Copied Elastic.Apm/Config/ConfigStore.cs. 
[2021-05-11T04:24:31.575Z] Starting copy source file Api/SpanCount.cs. 
[2021-05-11T04:24:31.650Z] Copied Api/SpanCount.cs. 
[2021-05-11T04:24:31.650Z] Starting copy source file Elastic.Apm/Model/DbSpanCommon.cs. 
[2021-05-11T04:24:32.035Z] Copied Elastic.Apm/Model/DbSpanCommon.cs. 
[2021-05-11T04:24:32.036Z] Starting copy source file Elastic.Apm/Helpers/StringExtensions.cs. 
[2021-05-11T04:24:32.127Z] Copied Elastic.Apm/Helpers/StringExtensions.cs. 
[2021-05-11T04:24:32.127Z] Starting copy source file Libraries/Newtonsoft.Json/Utilities/JsonTokenUtils.cs. 
[2021-05-11T04:24:32.218Z] Copied Libraries/Newtonsoft.Json/Utilities/JsonTokenUtils.cs. 
[2021-05-11T04:24:32.218Z] Starting copy source file Api/DistributedTracingData.cs. 
[2021-05-11T04:24:32.296Z] Copied Api/DistributedTracingData.cs. 
[2021-05-11T04:24:32.296Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Serialization/CamelCaseNamingStrategy.cs. 
[2021-05-11T04:24:32.374Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Serialization/CamelCaseNamingStrategy.cs. 
[2021-05-11T04:24:32.374Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/JsonConverterAttribute.cs. 
[2021-05-11T04:24:32.454Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/JsonConverterAttribute.cs. 
[2021-05-11T04:24:32.454Z] Starting copy source file Libraries/Newtonsoft.Json/Linq/JTokenWriter.cs. 
[2021-05-11T04:24:32.542Z] Copied Libraries/Newtonsoft.Json/Linq/JTokenWriter.cs. 
[2021-05-11T04:24:32.543Z] Starting copy source file Elastic.Apm/Logging/ConsoleLogger.cs. 
[2021-05-11T04:24:32.620Z] Copied Elastic.Apm/Logging/ConsoleLogger.cs. 
[2021-05-11T04:24:32.621Z] Starting copy source file Elastic.Apm/CurrentExecutionSegmentsContainer.cs. 
[2021-05-11T04:24:32.698Z] Copied Elastic.Apm/CurrentExecutionSegmentsContainer.cs. 
[2021-05-11T04:24:32.698Z] Starting copy source file Libraries/Newtonsoft.Json/Linq/JPropertyDescriptor.cs. 
[2021-05-11T04:24:32.777Z] Copied Libraries/Newtonsoft.Json/Linq/JPropertyDescriptor.cs. 
[2021-05-11T04:24:32.777Z] Starting copy source file Libraries/Newtonsoft.Json/Serialization/ErrorEventArgs.cs. 
[2021-05-11T04:24:32.855Z] Copied Libraries/Newtonsoft.Json/Serialization/ErrorEventArgs.cs. 
[2021-05-11T04:24:32.855Z] Starting copy source file Elastic.Apm/Api/SpecificationAttribute.cs. 
[2021-05-11T04:24:32.929Z] Copied Elastic.Apm/Api/SpecificationAttribute.cs. 
[2021-05-11T04:24:32.929Z] Starting copy source file Libraries/Newtonsoft.Json/Linq/JContainer.Async.cs. 
[2021-05-11T04:24:33.029Z] Copied Libraries/Newtonsoft.Json/Linq/JContainer.Async.cs. 
[2021-05-11T04:24:33.029Z] Starting copy source file Libraries/Newtonsoft.Json/Schema/JsonSchemaConstants.cs. 
[2021-05-11T04:24:33.101Z] Copied Libraries/Newtonsoft.Json/Schema/JsonSchemaConstants.cs. 
[2021-05-11T04:24:33.101Z] Starting copy source file Elastic.Apm/DiagnosticSource/DiagnosticInitializer.cs. 
[2021-05-11T04:24:33.176Z] Copied Elastic.Apm/DiagnosticSource/DiagnosticInitializer.cs. 
[2021-05-11T04:24:33.176Z] Starting copy source file Libraries/Newtonsoft.Json/Schema/JsonSchema.cs. 
[2021-05-11T04:24:33.255Z] Copied Libraries/Newtonsoft.Json/Schema/JsonSchema.cs. 
[2021-05-11T04:24:33.255Z] Starting copy source file Elastic.Apm.Elasticsearch/SerializerDiagnosticsListener .cs. 
[2021-05-11T04:24:33.328Z] Copied Elastic.Apm.Elasticsearch/SerializerDiagnosticsListener .cs. 
[2021-05-11T04:24:33.328Z] Starting copy source file Elastic.Apm/Metrics/MetricsCollector.cs. 
[2021-05-11T04:24:33.404Z] Copied Elastic.Apm/Metrics/MetricsCollector.cs. 
[2021-05-11T04:24:33.404Z] Starting copy source file Libraries/Newtonsoft.Json/Converters/DiscriminatedUnionConverter.cs. 
[2021-05-11T04:24:33.479Z] Copied Libraries/Newtonsoft.Json/Converters/DiscriminatedUnionConverter.cs. 
[2021-05-11T04:24:33.480Z] Starting copy source file Libraries/Newtonsoft.Json/Linq/JsonLoadSettings.cs. 
[2021-05-11T04:24:33.553Z] Copied Libraries/Newtonsoft.Json/Linq/JsonLoadSettings.cs. 
[2021-05-11T04:24:33.553Z] Starting copy source file Libraries/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs. 
[2021-05-11T04:24:33.637Z] Copied Libraries/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs. 
[2021-05-11T04:24:33.637Z] Starting copy source file Libraries/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs. 
[2021-05-11T04:24:33.709Z] Copied Libraries/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs. 
[2021-05-11T04:24:33.709Z] Starting copy source file Model/NoopSpan.cs. 
[2021-05-11T04:24:33.784Z] Copied Model/NoopSpan.cs. 
[2021-05-11T04:24:33.784Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/JsonValidatingReader.cs. 
[2021-05-11T04:24:33.900Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/JsonValidatingReader.cs. 
[2021-05-11T04:24:33.900Z] Starting copy source file Elastic.Apm.Azure.ServiceBus/AzureMessagingServiceBusDiagnosticsSubscriber.cs. 
[2021-05-11T04:24:33.976Z] Copied Elastic.Apm.Azure.ServiceBus/AzureMessagingServiceBusDiagnosticsSubscriber.cs. 
[2021-05-11T04:24:33.976Z] Starting copy source file ServerInfo/ElasticVersion.cs. 
[2021-05-11T04:24:34.052Z] Copied ServerInfo/ElasticVersion.cs. 
[2021-05-11T04:24:34.052Z] Starting copy source file Elastic.Apm/Api/User.cs. 
[2021-05-11T04:24:34.123Z] Copied Elastic.Apm/Api/User.cs. 
[2021-05-11T04:24:34.123Z] Starting copy source file Libraries/Newtonsoft.Json/Serialization/TraceJsonWriter.cs. 
[2021-05-11T04:24:34.208Z] Copied Libraries/Newtonsoft.Json/Serialization/TraceJsonWriter.cs. 
[2021-05-11T04:24:34.208Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Linq/JsonPath/ScanMultipleFilter.cs. 
[2021-05-11T04:24:34.282Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Linq/JsonPath/ScanMultipleFilter.cs. 
[2021-05-11T04:24:34.282Z] Starting copy source file Elastic.Apm.AspNetCore/ApmMiddleware.cs. 
[2021-05-11T04:24:34.315Z] Body did not finish within grace period; terminating with extreme prejudice
[2021-05-11T04:24:34.328Z] Error when executing always post condition:
[2021-05-11T04:24:34.328Z] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[2021-05-11T04:24:34.329Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.cancel(TimeoutStepExecution.java:165)
[2021-05-11T04:24:34.329Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.access$100(TimeoutStepExecution.java:38)
[2021-05-11T04:24:34.329Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution$1.run(TimeoutStepExecution.java:139)
[2021-05-11T04:24:34.329Z] 	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
[2021-05-11T04:24:34.329Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-05-11T04:24:34.329Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-05-11T04:24:34.329Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[2021-05-11T04:24:34.329Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[2021-05-11T04:24:34.329Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-05-11T04:24:34.329Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-05-11T04:24:34.329Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-05-11T04:24:34.329Z] 
[2021-05-11T04:24:34.361Z] Archiving artifacts
[2021-05-11T04:24:34.468Z] Failed in branch Linux
[2021-05-11T04:24:34.588Z] Stage "Release to feedz.io" skipped due to earlier failure(s)
[2021-05-11T04:24:34.639Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-11T04:24:34.662Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-11T04:24:34.708Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-11T04:24:34.792Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-11T04:24:34.817Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-11T04:24:35.139Z] Running on worker-854309 in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284
[2021-05-11T04:24:35.206Z] [INFO] getVaultSecret: Getting secrets
[2021-05-11T04:24:35.265Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-05-11T04:24:37.443Z] + chmod 755 generate-build-data.sh
[2021-05-11T04:24:37.443Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/5 FAILURE 7453702
[2021-05-11T04:24:37.443Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/5/steps/?limit=10000 -o steps-info.json
[2021-05-11T04:24:40.586Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/5/tests/?status=FAILED -o tests-errors.json

@russcam
Copy link
Contributor Author

russcam commented May 26, 2021

Merging this in as Azure storage tests pass

@russcam russcam merged commit bd080ee into elastic:master May 26, 2021
@russcam russcam deleted the fix/azure-storage branch May 26, 2021 01:43
@apmmachine
Copy link
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1284 updated

  • Start Time: 2021-05-26T01:32:29.284+0000

  • Duration: 124 min 51 sec

  • Commit: 131e30a

Test stats 🧪

Test Results
Failed 310
Passed 16845
Skipped 74
Total 17229

Trends 🧪

Image of Build Times

Image of Tests

Test errors 310

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secret", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usersessionid", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secret", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "password", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "pwd", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at Microsoft.AspNetCore.TestHost.ResponseStream.CheckAborted()
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usertokensecret", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usertokensecret", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secretcreditcard", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usersessionid", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secretcreditcard", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1284\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Steps errors 6

Expand to view the steps failures

Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-26T03:36:18.150Z] Archiving artifacts withAzureCredentials: error org.jenkinsci.plugins.wo
Windows Batch Script
  • Took 0 min 4 sec . View more details on here
  • Description: .ci/windows/msbuild.bat
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-05-26T01:48:00.563Z] Archiving artifacts script returned exit code 1
Test & coverage
  • Took 103 min 16 sec . View more details on here
  • Description: .ci/windows/test.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-26T03:34:38.219Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: withAzureCredentials: error org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

Log output

Expand to view the last 100 lines of log output

[2021-05-26T03:35:12.990Z] [xUnit.net 00:27:47.90]         /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/WebRequestTransactionCreator.cs(238,0): at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
[2021-05-26T03:35:12.990Z] [xUnit.net 00:27:47.90]         /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/ApmMiddleware.cs(62,0): at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context)
[2021-05-26T03:35:12.990Z] [xUnit.net 00:27:47.90]            at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
[2021-05-26T03:35:12.990Z] info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
[2021-05-26T03:35:12.990Z]       User profile is available. Using '/var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
[2021-05-26T03:35:12.990Z] info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
[2021-05-26T03:35:12.990Z]       Request starting HTTP/1.1 GET http://localhost/Home/SimplePage  
[2021-05-26T03:35:12.990Z] warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
[2021-05-26T03:35:12.991Z]       Failed to determine the https port for redirect.
[2021-05-26T03:35:12.991Z] info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
[2021-05-26T03:35:12.991Z]       Executing endpoint 'SampleAspNetCoreApp.Controllers.HomeController.SimplePage (SampleAspNetCoreApp)'
[2021-05-26T03:35:12.991Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
[2021-05-26T03:35:12.991Z]       Route matched with {action = "SimplePage", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult SimplePage() on controller SampleAspNetCoreApp.Controllers.HomeController (SampleAspNetCoreApp).
[2021-05-26T03:35:12.991Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[1]
[2021-05-26T03:35:12.991Z]       Executing action method SampleAspNetCoreApp.Controllers.HomeController.SimplePage (SampleAspNetCoreApp) - Validation state: Valid
[2021-05-26T03:35:12.991Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
[2021-05-26T03:35:12.991Z]       Executed action method SampleAspNetCoreApp.Controllers.HomeController.SimplePage (SampleAspNetCoreApp), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.0195ms.
[2021-05-26T03:35:12.991Z] info: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor[1]
[2021-05-26T03:35:12.992Z]       Executing ViewResult, running view SimplePage.
[2021-05-26T03:35:12.992Z] info: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor[4]
[2021-05-26T03:35:12.992Z]       Executed ViewResult - view SimplePage executed in 14.2785ms.
[2021-05-26T03:35:12.992Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
[2021-05-26T03:35:12.992Z]       Executed action SampleAspNetCoreApp.Controllers.HomeController.SimplePage (SampleAspNetCoreApp) in 14.8995ms
[2021-05-26T03:35:12.992Z] info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
[2021-05-26T03:35:12.992Z]       Executed endpoint 'SampleAspNetCoreApp.Controllers.HomeController.SimplePage (SampleAspNetCoreApp)'
[2021-05-26T03:35:12.992Z] info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
[2021-05-26T03:35:12.992Z]       Request finished in 21.1944ms 200 text/html; charset=utf-8
[2021-05-26T03:35:13.561Z]   Failed Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.CustomSanitizeFieldNameSettingWithCaseSensitivityWithHeaders(sanitizeFieldNames: "mysecurityheader", headerName: "mySECURITYHeader", shouldBeSanitized: True, useOnlyDiagnosticSource: False) [300 ms]
[2021-05-26T03:35:13.561Z]   Error Message:
[2021-05-26T03:35:13.561Z]    System.Net.Http.HttpRequestException : Error while copying content to a stream.
[2021-05-26T03:35:13.561Z] ---- System.IO.IOException : 
[2021-05-26T03:35:13.561Z] -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
[2021-05-26T03:35:13.561Z]   Stack Trace:
[2021-05-26T03:35:13.561Z]      at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
[2021-05-26T03:35:13.561Z]    at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
[2021-05-26T03:35:13.561Z]    at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.CustomSanitizeFieldNameSettingWithCaseSensitivityWithHeaders(String sanitizeFieldNames, String headerName, Boolean shouldBeSanitized, Boolean useOnlyDiagnosticSource) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.AspNetCore.Tests/SanitizeFieldNamesTests.cs:line 271
[2021-05-26T03:35:13.561Z] --- End of stack trace from previous location where exception was thrown ---
[2021-05-26T03:35:13.561Z] ----- Inner Stack Trace -----
[2021-05-26T03:35:13.561Z]    at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
[2021-05-26T03:35:13.561Z]    at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
[2021-05-26T03:35:13.561Z]    at System.IO.Pipelines.Pipe.GetReadAsyncResult()
[2021-05-26T03:35:13.561Z]    at Microsoft.AspNetCore.TestHost.ResponseBodyReaderStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
[2021-05-26T03:35:13.561Z]    at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
[2021-05-26T03:35:13.561Z]    at System.Net.Http.StreamToStreamCopy.<CopyAsync>g__DisposeSourceAsync|0_0(Task copyTask, Stream source)
[2021-05-26T03:35:13.561Z]    at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
[2021-05-26T03:35:13.561Z] ----- Inner Stack Trace -----
[2021-05-26T03:35:13.561Z]    at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
[2021-05-26T03:35:13.561Z]    at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs:line 25
[2021-05-26T03:35:13.561Z]    at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
[2021-05-26T03:35:13.561Z]    at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/test/Elastic.Apm.Tests.Utilities/MockPayloadSender.cs:line 185
[2021-05-26T03:35:13.561Z]    at Elastic.Apm.Model.Transaction.End() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm/Model/Transaction.cs:line 482
[2021-05-26T03:35:13.561Z]    at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/WebRequestTransactionCreator.cs:line 238
[2021-05-26T03:35:13.561Z]    at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet/src/Elastic.Apm.AspNetCore/ApmMiddleware.cs:line 62
[2021-05-26T03:35:13.561Z]    at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
[2021-05-26T03:35:18.077Z] Cancelling nested steps due to timeout
[2021-05-26T03:35:18.081Z] Sending interrupt signal to process
[2021-05-26T03:35:18.842Z] Terminated
[2021-05-26T03:35:18.842Z] Application is shutting down...
[2021-05-26T03:35:18.849Z] script returned exit code 143
[2021-05-26T03:35:18.870Z] Running in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet
[2021-05-26T03:35:19.221Z] + rm .credentials.json
[2021-05-26T03:35:19.281Z] $ docker stop --time=1 f38419856e2c6e0895a9f9a6668d5450ec537c8cd51b43d044cbb6248fb6eac5
[2021-05-26T03:35:20.593Z] $ docker rm -f f38419856e2c6e0895a9f9a6668d5450ec537c8cd51b43d044cbb6248fb6eac5
[2021-05-26T03:35:22.005Z] Post stage
[2021-05-26T03:35:22.030Z] Running in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284/apm-agent-dotnet
[2021-05-26T03:35:22.082Z] Archiving artifacts
[2021-05-26T03:35:28.406Z] Recording test results
[2021-05-26T03:35:32.121Z] [Checks API] No suitable checks publisher found.
[2021-05-26T03:35:32.194Z] Publishing Coverage report....
[2021-05-26T03:36:18.078Z] Body did not finish within grace period; terminating with extreme prejudice
[2021-05-26T03:36:18.098Z] Error when executing always post condition:
[2021-05-26T03:36:18.107Z] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[2021-05-26T03:36:18.107Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.cancel(TimeoutStepExecution.java:165)
[2021-05-26T03:36:18.107Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.access$100(TimeoutStepExecution.java:38)
[2021-05-26T03:36:18.107Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution$1.run(TimeoutStepExecution.java:139)
[2021-05-26T03:36:18.107Z] 	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
[2021-05-26T03:36:18.107Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-05-26T03:36:18.107Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-05-26T03:36:18.107Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[2021-05-26T03:36:18.107Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[2021-05-26T03:36:18.107Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-05-26T03:36:18.107Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-05-26T03:36:18.107Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-05-26T03:36:18.107Z] 
[2021-05-26T03:36:18.150Z] Archiving artifacts
[2021-05-26T03:36:18.280Z] Failed in branch Linux
[2021-05-26T03:36:18.416Z] Stage "Release to feedz.io" skipped due to earlier failure(s)
[2021-05-26T03:36:18.479Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-26T03:36:18.511Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-26T03:36:18.596Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-26T03:36:18.681Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-26T03:36:18.716Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-26T03:36:19.134Z] Running on worker-854309 in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1284
[2021-05-26T03:36:19.199Z] [INFO] getVaultSecret: Getting secrets
[2021-05-26T03:36:19.254Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-05-26T03:36:21.489Z] + chmod 755 generate-build-data.sh
[2021-05-26T03:36:21.489Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/7 FAILURE 7430804
[2021-05-26T03:36:21.489Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/7/steps/?limit=10000 -o steps-info.json
[2021-05-26T03:36:26.693Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/7/tests/?status=FAILED -o tests-errors.json
[2021-05-26T03:36:29.838Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1284/runs/7/log/ -o pipeline-log.txt

v1v added a commit to v1v/apm-agent-dotnet that referenced this pull request Jun 8, 2021
…u-20

* upstream/master: (21 commits)
  Prefer W3C traceparent over elastic-apm-traceparent (elastic#1302)
  fix spacing and cross references in docs (elastic#1328)
  Update README (elastic#1325)
  Mark MicrosoftAzureBlobStorageTracer internal (elastic#1326)
  Update docs (elastic#1327)
  Update context.destination.address (elastic#1324)
  synchronize json schema specs (elastic#1320)
  Don't package Elastic.Apm.Specification (elastic#1316)
  Update setup.asciidoc (elastic#1318)
  Prepare release v.1.10.0 (elastic#1314)
  Fix nullref in Elastic.Apm.Extensions.Logging (elastic#1311)
  Capture errors with startup hook auto instrumentation (elastic#1298)
  Use Logger to log exception in AgentComponents initialization (elastic#1305)
  fix: use .NET native SDK for build and test (elastic#1301)
  Skip running Elasticsearch docker test when docker not available (elastic#1312)
  Use TraceLogger as default logger in ASP.NET Full Framework (elastic#1288)
  Create receive messaging span when inside transaction (elastic#1308)
  Fix SanitizeFieldNamesTests (elastic#1299)
  Do not capture HTTP child spans for Elasticsearch (elastic#1306)
  Use storage account in destination.service.resource (elastic#1284)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants