Skip to content

Remove ApmMiddleWare, only use DiagnosticSource listener for ASP.NET Core #354

Remove ApmMiddleWare, only use DiagnosticSource listener for ASP.NET Core

Remove ApmMiddleWare, only use DiagnosticSource listener for ASP.NET Core #354

GitHub Actions / Windows Tests Summary failed Nov 29, 2023 in 1s

4353 passed, 49 failed and 93 skipped

Tests failed

Report Passed Failed Skipped Time
junit-profiler-windows-NETCoreApp70-Elastic.Apm.Profiler.Managed.Tests.xml 222✔️ 3✖️ 1189s
junit-startuphooks-windows-NETCoreApp70-Elastic.Apm.StartupHook.Tests.xml 12✔️ 317s
junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Static.Tests.xml 1✔️ 700ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml 120✔️ 49❌ 3752s
junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml 11✔️ 62✖️ 90ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.Docker.Tests.xml 9✔️ 1✖️ 5ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.Elasticsearch.Tests.xml 3✔️ 4✖️ 880ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.EntityFrameworkCore.Tests.xml 6✔️ 3s
junit-unit-windows-NETCoreApp70-Elastic.Apm.Extensions.Hosting.Tests.xml 4✔️ 1✖️ 3s
junit-unit-windows-NETCoreApp70-Elastic.Apm.Extensions.Logging.Tests.xml 1✔️ 339ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.Grpc.Tests.xml 2✔️ 2s
junit-unit-windows-NETCoreApp70-Elastic.Apm.MongoDb.Tests.xml 2✔️ 333ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.OpenTelemetry.Tests.xml 10✔️ 1✖️ 6s
junit-unit-windows-NETCoreApp70-Elastic.Apm.SqlClient.Tests.xml 7✔️ 9s
junit-unit-windows-NETCoreApp70-Elastic.Apm.StackExchange.Redis.Tests.xml 3✔️ 7s
junit-unit-windows-NETCoreApp70-Elastic.Apm.StaticExplicitInitialization.Tests.xml 1✔️ 102ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.StaticImplicitInitialization.Tests.xml 1✔️ 113ms
junit-unit-windows-NETCoreApp70-Elastic.Apm.Tests.xml 1973✔️ 2✖️ 1084s
junit-unit-windows-NETCoreApp70-Elastic.Clients.Elasticsearch.Tests.xml 5✔️ 1s
junit-unit-windows-NETFramework462-Elastic.Apm.FullFramework.Tests.xml 4✔️ 498ms
junit-unit-windows-NETFramework462-Elastic.Apm.SqlClient.Tests.xml 4✔️ 6s
junit-unit-windows-NETFramework462-Elastic.Apm.Tests.xml 1952✔️ 19✖️ 863s

✔️ junit-profiler-windows-NETCoreApp70-Elastic.Apm.Profiler.Managed.Tests.xml

225 tests were completed in 1189s with 222 passed, 0 failed and 3 skipped.

✔️ junit-startuphooks-windows-NETCoreApp70-Elastic.Apm.StartupHook.Tests.xml

12 tests were completed in 317s with 12 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Static.Tests.xml

1 tests were completed in 700ms with 1 passed, 0 failed and 0 skipped.

❌ junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

169 tests were completed in 3752s with 120 passed, 49 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Elastic.Apm.AspNetCore.Tests.dll 120✔️ 49❌ 3752s

❌ Elastic.Apm.AspNetCore.Tests.dll

Elastic.Apm.AspNetCore.Tests.ApplicationBuilderExtensionLoggingTest
Elastic.Apm.AspNetCore.Tests.AspNetCoreLoggerTests
Elastic.Apm.AspNetCore.Tests.ApmConfigurationTests
Elastic.Apm.AspNetCore.Tests.ApmConfigurationIntegrationTests
Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests
  ❌ AspNetCoreBasicTests.FailingPostRequestWithoutConfiguredExceptionPage(withDiagnosticSourceOnly: False)
	Expected errorDetail.Message to be
  ❌ AspNetCoreBasicTests.HomeSimplePagePostTransactionTest(withDiagnosticSourceOnly: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Elastic.Apm.AspNetCore.Tests.AspNetCoreDiagnosticListenerTest
Elastic.Apm.AspNetCore.Tests.BaggageAspNetCoreTests
Elastic.Apm.AspNetCore.Tests.BodyCapturingTests
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 0, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 1, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 2, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 3, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 4, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 5, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 6, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 7, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 8, startCfgVariant: OptionsTestVariant{CaptureBody: errors, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 9, startCfgVariant: OptionsTestVariant{CaptureBody: errors, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 10, startCfgVariant: OptionsTestVariant{CaptureBody: errors, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 11, startCfgVariant: OptionsTestVariant{CaptureBody: errors, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 12, startCfgVariant: OptionsTestVariant{CaptureBody: transactions, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 13, startCfgVariant: OptionsTestVariant{CaptureBody: transactions, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 14, startCfgVariant: OptionsTestVariant{CaptureBody: transactions, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: False})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
  ❌ BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 15, startCfgVariant: OptionsTestVariant{CaptureBody: transactions, CaptureBodyContentTypes: application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content, IsSampled: True})
	Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Elastic.Apm.AspNetCore.Tests.CaptureUserTest
Elastic.Apm.AspNetCore.Tests.DiagnosticListenerTests
  ❌ DiagnosticListenerTests.SubscribeAndUnsubscribeAspNetCoreDiagnosticListener
	Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
  ❌ DiagnosticListenerTests.SubscribeAndUnsubscribeEfCoreDiagnosticListener
	Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
Elastic.Apm.AspNetCore.Tests.DistributedTracingAspNetCoreTests
Elastic.Apm.AspNetCore.Tests.FailedRequestTests
Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "secret", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "usersessionid", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "secretcreditcard", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "secretkey", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "usertokensecret", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "passwd", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "creditcardnumber", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "password", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyNoError(formName: "pwd", useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)*mySECURITYheader*", formName: "TestmysecURITYheaderTest", shouldBeSanitized: False, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)mysecurityheader", formName: "mySECURITYHeader", shouldBeSanitized: False, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)*mySECURITYheader", formName: "TestmySECURITYheader", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)*mySECURITYheader", formName: "TestmysecURITYheader", shouldBeSanitized: False, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "mysecurityheader", formName: "mySECURITYHeader", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)*mySECURITYheader*", formName: "TestmySECURITYheaderTest", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)mySECURITYheader", formName: "mySECURITYheader", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)mySECURITYheader*", formName: "mysecURITYheaderTest", shouldBeSanitized: False, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.CustomWithRequestBodyNoError(sanitizeFieldNames: "(?-i)mySECURITYheader*", formName: "mySECURITYheaderTest", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "secretkey", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&secretkey=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "creditcardnumber", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&creditcardnumber=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "usertokensecret", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&usertokensecret=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "pwd", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&pwd=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "usersessionid", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&usersessionid=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "password", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&password=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "secret", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&secret=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodyWithError(formName: "secretcreditcard", useOnlyDiagnosticSource: False)
	Expected _capturedPayload.FirstTransaction.Context.Request.Body to be "Input1=test1&secretcreditcard=[REDACTED]", but found "[REDACTED]".
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodySingleValueNoError(formName: "Input", shouldBeSanitized: False, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodySingleValueNoError(formName: "pwd", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
  ❌ SanitizeFieldNamesTests.DefaultWithRequestBodySingleValueNoError(formName: "password", shouldBeSanitized: True, useOnlyDiagnosticSource: False)
	System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Elastic.Apm.AspNetCore.Tests.TraceIdWithActivityTests
Elastic.Apm.AspNetCore.Tests.TransactionExtensionTests
Elastic.Apm.AspNetCore.Tests.TransactionIgnoreUrlsTest
Elastic.Apm.AspNetCore.Tests.TransactionNameTests
Elastic.Apm.AspNetCore.Tests.TransactionQueueTests

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml

73 tests were completed in 90ms with 11 passed, 0 failed and 62 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.Docker.Tests.xml

10 tests were completed in 5ms with 9 passed, 0 failed and 1 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.Elasticsearch.Tests.xml

7 tests were completed in 880ms with 3 passed, 0 failed and 4 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.EntityFrameworkCore.Tests.xml

6 tests were completed in 3s with 6 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.Extensions.Hosting.Tests.xml

5 tests were completed in 3s with 4 passed, 0 failed and 1 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.Extensions.Logging.Tests.xml

1 tests were completed in 339ms with 1 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.Grpc.Tests.xml

2 tests were completed in 2s with 2 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.MongoDb.Tests.xml

2 tests were completed in 333ms with 2 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.OpenTelemetry.Tests.xml

11 tests were completed in 6s with 10 passed, 0 failed and 1 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.SqlClient.Tests.xml

7 tests were completed in 9s with 7 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.StackExchange.Redis.Tests.xml

3 tests were completed in 7s with 3 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.StaticExplicitInitialization.Tests.xml

1 tests were completed in 102ms with 1 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.StaticImplicitInitialization.Tests.xml

1 tests were completed in 113ms with 1 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Apm.Tests.xml

1975 tests were completed in 1084s with 1973 passed, 0 failed and 2 skipped.

✔️ junit-unit-windows-NETCoreApp70-Elastic.Clients.Elasticsearch.Tests.xml

5 tests were completed in 1s with 5 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETFramework462-Elastic.Apm.FullFramework.Tests.xml

4 tests were completed in 498ms with 4 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETFramework462-Elastic.Apm.SqlClient.Tests.xml

4 tests were completed in 6s with 4 passed, 0 failed and 0 skipped.

✔️ junit-unit-windows-NETFramework462-Elastic.Apm.Tests.xml

1971 tests were completed in 863s with 1952 passed, 0 failed and 19 skipped.

Annotations

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests ► AspNetCoreBasicTests.FailingPostRequestWithoutConfiguredExceptionPage(withDiagnosticSourceOnly: False)

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected errorDetail.Message to be 
Raw output
Expected errorDetail.Message to be 
"This is a post method test exception!" with a length of 37, but 
"Flush was canceled on underlying PipeWriter." has a length of 44, differs near "Flu" (index 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.Primitives.StringEqualityValidator.ValidateAgainstLengthDifferences()
   at FluentAssertions.Primitives.StringValidator.Validate()
   at FluentAssertions.Primitives.StringAssertions.Be(String expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.FailingPostRequestWithoutConfiguredExceptionPage(Boolean withDiagnosticSourceOnly) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\AspNetCoreBasicTests.cs:line 466
   at Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.FailingPostRequestWithoutConfiguredExceptionPage(Boolean withDiagnosticSourceOnly) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\AspNetCoreBasicTests.cs:line 474
--- End of stack trace from previous location ---
Standard Output:
    Elastic APM .NET Tests> 2> Xunit> [2023-11-29 17:28:05.713 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.FailingPostRequestWithoutConfiguredExceptionPage(withDiagnosticSourceOnly: False)...
    Elastic APM .NET Tests> 2> Xunit> [2023-11-29 17:29:45.784 +00:00][Error] - {AspNetCoreDiagnosticListener} Error reading request body
    Elastic APM .NET Tests> 2> Xunit> +-> Exception: System.OperationCanceledException: Read was canceled on underlying PipeReader.
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.ThrowHelper.ThrowOperationCanceledException_ReadCanceled()
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.PipeReaderStream.HandleReadResult(ReadResult result, Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.PipeReaderStream.ReadInternal(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.PipeReaderStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at Microsoft.AspNetCore.TestHost.AsyncStreamWrapper.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Stream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.StreamReader.ReadBuffer(Span`1 userBuffer, Boolean& readToUserBuffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.StreamReader.ReadSpan(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.Helpers.RequestBodyStreamHelper.ToString(Stream requestBody, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\RequestBodyStreamHelper.cs:line 41
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.AspNetCore.Extensions.HttpRequestExtensions.ExtractRequestBody(HttpRequest request, IConfiguration configuration, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\Extensions\RequestExtensions.cs:line 32
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.AspNetCore.AspNetCoreHttpRequest.ExtractBody(IConfiguration configuration, IApmLogger logger, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\AspNetCoreHttpRequest.cs:line 22
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.Helpers.IHttpRequestAdapterExtensions.ExtractBody(IHttpRequestAdapter httpRequest, IApmLogger logger, IConfiguration configuration) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\IHttpRequestAdapter.cs:line 34
    Elastic APM .NET Tests> 2> Xunit> [2023-11-29 17:29:45.788 +00:00][Error] - {AspNetCoreDiagnosticListener} Error reading request body
    Elastic APM .NET Tests> 2> Xunit> +-> Exception: System.OperationCanceledException: Read was canceled on underlying PipeReader.
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.ThrowHelper.ThrowOperationCanceledException_ReadCanceled()
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.PipeReaderStream.HandleReadResult(ReadResult result, Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.PipeReaderStream.ReadInternal(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Pipelines.PipeReaderStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at Microsoft.AspNetCore.TestHost.AsyncStreamWrapper.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.Stream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.StreamReader.ReadBuffer(Span`1 userBuffer, Boolean& readToUserBuffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.StreamReader.ReadSpan(Span`1 buffer)
    Elastic APM .NET Tests> 2> Xunit>    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.Helpers.RequestBodyStreamHelper.ToString(Stream requestBody, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\RequestBodyStreamHelper.cs:line 41
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.AspNetCore.Extensions.HttpRequestExtensions.ExtractRequestBody(HttpRequest request, IConfiguration configuration, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\Extensions\RequestExtensions.cs:line 32
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.AspNetCore.AspNetCoreHttpRequest.ExtractBody(IConfiguration configuration, IApmLogger logger, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\AspNetCoreHttpRequest.cs:line 22
    Elastic APM .NET Tests> 2> Xunit>    at Elastic.Apm.Helpers.IHttpRequestAdapterExtensions.ExtractBody(IHttpRequestAdapter httpRequest, IApmLogger logger, IConfiguration configuration) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\IHttpRequestAdapter.cs:line 34
    Elastic APM .NET Tests> 2> Xunit> [2023-11-29 17:29:45.838 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.FailingPostRequestWithoutConfiguredExceptionPage(withDiagnosticSourceOnly: False)

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests ► AspNetCoreBasicTests.HomeSimplePagePostTransactionTest(withDiagnosticSourceOnly: False)

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Raw output
System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---- System.TimeoutException : Flush was canceled on underlying PipeWriter.
-------- System.OperationCanceledException : Flush was canceled on underlying PipeWriter.
Stack Trace:
   at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.HomeSimplePagePostTransactionTest(Boolean withDiagnosticSourceOnly) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\AspNetCoreBasicTests.cs:line 230
   at Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.HomeSimplePagePostTransactionTest(Boolean withDiagnosticSourceOnly) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\AspNetCoreBasicTests.cs:line 305
--- End of stack trace from previous location ---
----- Inner Stack Trace -----

----- Inner Stack Trace -----
   at System.IO.Pipelines.ThrowHelper.ThrowOperationCanceledException_FlushCanceled()
   at System.IO.Pipelines.PipeWriter.CopyFromAsync(Stream source, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.TestHost.ClientHandler.<>c__DisplayClass12_0.<<SendAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
Standard Output:
    Elastic APM .NET Tests> 4> Xunit> [2023-11-29 17:29:45.853 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.HomeSimplePagePostTransactionTest(withDiagnosticSourceOnly: False)...
    Elastic APM .NET Tests> 4> Xunit> [2023-11-29 17:31:25.882 +00:00][Error] - {AspNetCoreDiagnosticListener} Error reading request body
    Elastic APM .NET Tests> 4> Xunit> +-> Exception: System.OperationCanceledException: Read was canceled on underlying PipeReader.
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.ThrowHelper.ThrowOperationCanceledException_ReadCanceled()
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.PipeReaderStream.HandleReadResult(ReadResult result, Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.PipeReaderStream.ReadInternal(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.PipeReaderStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at Microsoft.AspNetCore.TestHost.AsyncStreamWrapper.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Stream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.StreamReader.ReadBuffer(Span`1 userBuffer, Boolean& readToUserBuffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.StreamReader.ReadSpan(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.Helpers.RequestBodyStreamHelper.ToString(Stream requestBody, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\RequestBodyStreamHelper.cs:line 41
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.AspNetCore.Extensions.HttpRequestExtensions.ExtractRequestBody(HttpRequest request, IConfiguration configuration, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\Extensions\RequestExtensions.cs:line 32
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.AspNetCore.AspNetCoreHttpRequest.ExtractBody(IConfiguration configuration, IApmLogger logger, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\AspNetCoreHttpRequest.cs:line 22
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.Helpers.IHttpRequestAdapterExtensions.ExtractBody(IHttpRequestAdapter httpRequest, IApmLogger logger, IConfiguration configuration) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\IHttpRequestAdapter.cs:line 34
    Elastic APM .NET Tests> 4> Xunit> [2023-11-29 17:31:25.884 +00:00][Error] - {AspNetCoreDiagnosticListener} Error reading request body
    Elastic APM .NET Tests> 4> Xunit> +-> Exception: System.OperationCanceledException: Read was canceled on underlying PipeReader.
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.ThrowHelper.ThrowOperationCanceledException_ReadCanceled()
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.PipeReaderStream.HandleReadResult(ReadResult result, Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.PipeReaderStream.ReadInternal(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Pipelines.PipeReaderStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at Microsoft.AspNetCore.TestHost.AsyncStreamWrapper.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.Stream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.StreamReader.ReadBuffer(Span`1 userBuffer, Boolean& readToUserBuffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.StreamReader.ReadSpan(Span`1 buffer)
    Elastic APM .NET Tests> 4> Xunit>    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.Helpers.RequestBodyStreamHelper.ToString(Stream requestBody, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\RequestBodyStreamHelper.cs:line 41
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.AspNetCore.Extensions.HttpRequestExtensions.ExtractRequestBody(HttpRequest request, IConfiguration configuration, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\Extensions\RequestExtensions.cs:line 32
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.AspNetCore.AspNetCoreHttpRequest.ExtractBody(IConfiguration configuration, IApmLogger logger, Boolean& longerThanMaxLength) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\integrations\Elastic.Apm.AspNetCore\AspNetCoreHttpRequest.cs:line 22
    Elastic APM .NET Tests> 4> Xunit>    at Elastic.Apm.Helpers.IHttpRequestAdapterExtensions.ExtractBody(IHttpRequestAdapter httpRequest, IApmLogger logger, IConfiguration configuration) in D:\a\apm-agent-dotnet\apm-agent-dotnet\src\Elastic.Apm\Helpers\IHttpRequestAdapter.cs:line 34
    Elastic APM .NET Tests> 4> Xunit> [2023-11-29 17:31:25.886 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetCore.Tests.AspNetCoreBasicTests.HomeSimplePagePostTransactionTest(withDiagnosticSourceOnly: False)

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 0, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 400
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>b__0>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 367
--- End of stack trace from previous location ---
   at Elastic.Apm.Tests.Utilities.EnumerableExtensions.ForEachIndexedImpl[T](IEnumerable`1 source, Func`3 asyncAction) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\EnumerableExtensions.cs:line 101
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 343
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'off' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '0' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: e4ba95b4896fbd37, TraceId: 3dc9dba26cb5d3451ff377c0c4d69ec7, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:32:44.6242430 UTC (as timestamp: 1701279164624243)
    [Debug] {Tracer} Starting Transaction{Id: e4ba95b4896fbd37, TraceId: 3dc9dba26cb5d3451ff377c0c4d69ec7, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: e4ba95b4896fbd37, TraceId: 3dc9dba26cb5d3451ff377c0c4d69ec7, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: False}. Start time: 2023-11-29 17:32:44.6242430 UTC (as timestamp: 1701279164624243), End time: 2023-11-29 17:32:44.6280010 UTC (as timestamp: 1701279164628001), Duration: 3.758ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 914d710146be065c, TraceId: 2d4cf6f7843c166f4b6ea84c585ea7da, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:32:59.6423770 UTC (as timestamp: 1701279179642377)
    [Debug] {Tracer} Starting Transaction{Id: 914d710146be065c, TraceId: 2d4cf6f7843c166f4b6ea84c585ea7da, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method376(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.d76da040c4391cf9cb8b5b5eb81f88ef} New Error instance created: Error{Id: d76da040c4391cf9cb8b5b5eb81f88ef, TraceId: 2d4cf6f7843c166f4b6ea84c585ea7da, ParentId: 914d710146be065c, TransactionId: 914d710146be065c}. Time: 2023-11-29 17:32:59.6486610 UTC (as timestamp: 1701279179648661)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 914d710146be065c, TraceId: 2d4cf6f7843c166f4b6ea84c585ea7da, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: False}. Start time: 2023-11-29 17:32:59.6423770 UTC (as timestamp: 1701279179642377), End time: 2023-11-29 17:32:59.6490000 UTC (as timestamp: 1701279179649000), Duration: 6.623ms
    [Info ] {ConfigurationStore} Replaced current snapshot. Old: MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider). New: MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider).
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'unknown-dotnet-service' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'off' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '0' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 4ca61432b62d28f3, TraceId: 776411a9ed0fb0903517a64920ca8cb3, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:33:14.6564340 UTC (as timestamp: 1701279194656434)
    [Debug] {Tracer} Starting Transaction{Id: 4ca61432b62d28f3, TraceId: 776411a9ed0fb0903517a64920ca8cb3, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 4ca61432b62d28f3, TraceId: 776411a9ed0fb0903517a64920ca8cb3, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: False}. Start time: 2023-11-29 17:33:14.6564340 UTC (as timestamp: 1701279194656434), End time: 2023-11-29 17:33:14.6615250 UTC (as timestamp: 1701279194661525), Duration: 5.091ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 67274cc4f5412e5e, TraceId: c448f3fdf9338dfc3fb373266f742e9a, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:33:29.6892970 UTC (as timestamp: 1701279209689297)
    [Debug] {Tracer} Starting Transaction{Id: 67274cc4f5412e5e, TraceId: c448f3fdf9338dfc3fb373266f742e9a, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method376(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.28f4b6c43e8cab9d5dd7e0d6a385b2d1} New Error instance created: Error{Id: 28f4b6c43e8cab9d5dd7e0d6a385b2d1, TraceId: c448f3fdf9338dfc3fb373266f742e9a, ParentId: 67274cc4f5412e5e, TransactionId: 67274cc4f5412e5e}. Time: 2023-11-29 17:33:29.6927340 UTC (as timestamp: 1701279209692734)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 67274cc4f5412e5e, TraceId: c448f3fdf9338dfc3fb373266f742e9a, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: False}. Start time: 2023-11-29 17:33:29.6892970 UTC (as timestamp: 1701279209689297), End time: 2023-11-29 17:33:29.6928820 UTC (as timestamp: 1701279209692882), Duration: 3.585ms
    [Info ] {ConfigurationStore} Replaced current snapshot. Old: MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider). New: MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider).
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'unknown-dotnet-service' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'off' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '1' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 9c6d97149c7be63f, TraceId: 725bd8d49b5f8a87fccb79c2ae763775, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:33:44.7119340 UTC (as timestamp: 1701279224711934)
    [Debug] {Tracer} Starting Transaction{Id: 9c6d97149c7be63f, TraceId: 725bd8d49b5f8a87fccb79c2ae763775, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 200
    [Trace] {Transaction} Ended Transaction{Id: 9c6d97149c7be63f, TraceId: 725bd8d49b5f8a87fccb79c2ae763775, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: True}. Start time: 2023-11-29 17:33:44.7119340 UTC (as timestamp: 1701279224711934), End time: 2023-11-29 17:33:44.7130590 UTC (as timestamp: 1701279224713059), Duration: 1.125ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 30e3ad8a0365eb98, TraceId: a10650ab6e83ba17364d51ea814b9fc7, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:33:59.7301200 UTC (as timestamp: 1701279239730120)
    [Debug] {Tracer} Starting Transaction{Id: 30e3ad8a0365eb98, TraceId: a10650ab6e83ba17364d51ea814b9fc7, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method376(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.8253880970f5c1d06a8316d396581313} New Error instance created: Error{Id: 8253880970f5c1d06a8316d396581313, TraceId: a10650ab6e83ba17364d51ea814b9fc7, ParentId: 30e3ad8a0365eb98, TransactionId: 30e3ad8a0365eb98}. Time: 2023-11-29 17:33:59.7339850 UTC (as timestamp: 1701279239733985)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 500
    [Trace] {Transaction} Ended Transaction{Id: 30e3ad8a0365eb98, TraceId: a10650ab6e83ba17364d51ea814b9fc7, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: True}. Start time: 2023-11-29 17:33:59.7301200 UTC (as timestamp: 1701279239730120), End time: 2023-11-29 17:33:59.7342560 UTC (as timestamp: 1701279239734256), Duration: 4.136ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 1, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 400
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'off' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '1' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: a4738f77ff9899a4, TraceId: 80216bd477ef38c1c2cf79f43b5d4864, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:34:09.7722930 UTC (as timestamp: 1701279249772293)
    [Debug] {Tracer} Starting Transaction{Id: a4738f77ff9899a4, TraceId: 80216bd477ef38c1c2cf79f43b5d4864, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 200
    [Trace] {Transaction} Ended Transaction{Id: a4738f77ff9899a4, TraceId: 80216bd477ef38c1c2cf79f43b5d4864, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: True}. Start time: 2023-11-29 17:34:09.7722930 UTC (as timestamp: 1701279249772293), End time: 2023-11-29 17:34:09.7760470 UTC (as timestamp: 1701279249776047), Duration: 3.754ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 993e2f7816bd7739, TraceId: e5f320575cd945dc816058acf8b47cdc, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:34:24.7826520 UTC (as timestamp: 1701279264782652)
    [Debug] {Tracer} Starting Transaction{Id: 993e2f7816bd7739, TraceId: e5f320575cd945dc816058acf8b47cdc, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method380(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.f159c6a80847e213e2407dda8a804827} New Error instance created: Error{Id: f159c6a80847e213e2407dda8a804827, TraceId: e5f320575cd945dc816058acf8b47cdc, ParentId: 993e2f7816bd7739, TransactionId: 993e2f7816bd7739}. Time: 2023-11-29 17:34:24.7896880 UTC (as timestamp: 1701279264789688)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 500
    [Trace] {Transaction} Ended Transaction{Id: 993e2f7816bd7739, TraceId: e5f320575cd945dc816058acf8b47cdc, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: True}. Start time: 2023-11-29 17:34:24.7826520 UTC (as timestamp: 1701279264782652), End time: 2023-11-29 17:34:24.7899180 UTC (as timestamp: 1701279264789918), Duration: 7.266ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 2, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 400
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'off' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '0' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 546cef771a752497, TraceId: d99fb8ebd1015e57496679a071b88dca, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:34:34.8087140 UTC (as timestamp: 1701279274808714)
    [Debug] {Tracer} Starting Transaction{Id: 546cef771a752497, TraceId: d99fb8ebd1015e57496679a071b88dca, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 546cef771a752497, TraceId: d99fb8ebd1015e57496679a071b88dca, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: False}. Start time: 2023-11-29 17:34:34.8087140 UTC (as timestamp: 1701279274808714), End time: 2023-11-29 17:34:34.8122380 UTC (as timestamp: 1701279274812238), Duration: 3.524ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 1ec07b9914ca422a, TraceId: fa0fa9521c91ba429d2d0796fce96e6e, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:34:49.8213090 UTC (as timestamp: 1701279289821309)
    [Debug] {Tracer} Starting Transaction{Id: 1ec07b9914ca422a, TraceId: fa0fa9521c91ba429d2d0796fce96e6e, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method384(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.937bf4c4896dad20f667445872e7d9a2} New Error instance created: Error{Id: 937bf4c4896dad20f667445872e7d9a2, TraceId: fa0fa9521c91ba429d2d0796fce96e6e, ParentId: 1ec07b9914ca422a, TransactionId: 1ec07b9914ca422a}. Time: 2023-11-29 17:34:49.8276390 UTC (as timestamp: 1701279289827639)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 1ec07b9914ca422a, TraceId: fa0fa9521c91ba429d2d0796fce96e6e, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: False}. Start time: 2023-11-29 17:34:49.8213090 UTC (as timestamp: 1701279289821309), End time: 2023-11-29 17:34:49.8278060 UTC (as timestamp: 1701279289827806), Duration: 6.497ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 3, startCfgVariant: OptionsTestVariant{CaptureBody: off, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 400
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'off' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '1' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: f6bb390c74166611, TraceId: 4a92dbdc56f882a014ca4a4d4255be28, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:34:59.8501280 UTC (as timestamp: 1701279299850128)
    [Debug] {Tracer} Starting Transaction{Id: f6bb390c74166611, TraceId: 4a92dbdc56f882a014ca4a4d4255be28, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 200
    [Trace] {Transaction} Ended Transaction{Id: f6bb390c74166611, TraceId: 4a92dbdc56f882a014ca4a4d4255be28, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: True}. Start time: 2023-11-29 17:34:59.8501280 UTC (as timestamp: 1701279299850128), End time: 2023-11-29 17:34:59.8537100 UTC (as timestamp: 1701279299853710), Duration: 3.582ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: c0bc66d310878f14, TraceId: 5d553f330fa0de4a62cb17bdeae87e7e, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:35:14.8733840 UTC (as timestamp: 1701279314873384)
    [Debug] {Tracer} Starting Transaction{Id: c0bc66d310878f14, TraceId: 5d553f330fa0de4a62cb17bdeae87e7e, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method388(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.3c754d4ea36d4f40202988106bc7349e} New Error instance created: Error{Id: 3c754d4ea36d4f40202988106bc7349e, TraceId: 5d553f330fa0de4a62cb17bdeae87e7e, ParentId: c0bc66d310878f14, TransactionId: c0bc66d310878f14}. Time: 2023-11-29 17:35:14.8797710 UTC (as timestamp: 1701279314879771)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 500
    [Trace] {Transaction} Ended Transaction{Id: c0bc66d310878f14, TraceId: 5d553f330fa0de4a62cb17bdeae87e7e, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: True}. Start time: 2023-11-29 17:35:14.8733840 UTC (as timestamp: 1701279314873384), End time: 2023-11-29 17:35:14.8800470 UTC (as timestamp: 1701279314880047), Duration: 6.663ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 4, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 400
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'all' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '0' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: c5bf5e57e08fa418, TraceId: 57d07fc73d4b1cdd2d7aa06e59bad1ab, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:35:24.9035580 UTC (as timestamp: 1701279324903558)
    [Debug] {Tracer} Starting Transaction{Id: c5bf5e57e08fa418, TraceId: 57d07fc73d4b1cdd2d7aa06e59bad1ab, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: c5bf5e57e08fa418, TraceId: 57d07fc73d4b1cdd2d7aa06e59bad1ab, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: False}. Start time: 2023-11-29 17:35:24.9035580 UTC (as timestamp: 1701279324903558), End time: 2023-11-29 17:35:24.9070790 UTC (as timestamp: 1701279324907079), Duration: 3.521ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 1e804e83791d0ec0, TraceId: 79ac08d9afb1514586e2810b72b24ddc, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:35:39.9308400 UTC (as timestamp: 1701279339930840)
    [Debug] {Tracer} Starting Transaction{Id: 1e804e83791d0ec0, TraceId: 79ac08d9afb1514586e2810b72b24ddc, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method392(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.213b761c971ea19b4c99f95ac132b5b3} New Error instance created: Error{Id: 213b761c971ea19b4c99f95ac132b5b3, TraceId: 79ac08d9afb1514586e2810b72b24ddc, ParentId: 1e804e83791d0ec0, TransactionId: 1e804e83791d0ec0}. Time: 2023-11-29 17:35:39.9370700 UTC (as timestamp: 1701279339937070)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 1e804e83791d0ec0, TraceId: 79ac08d9afb1514586e2810b72b24ddc, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: False}. Start time: 2023-11-29 17:35:39.9308400 UTC (as timestamp: 1701279339930840), End time: 2023-11-29 17:35:39.9372430 UTC (as timestamp: 1701279339937243), Duration: 6.403ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 5, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 434
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'all' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '1' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 8729a58628efb7ab, TraceId: 8da6f1ab6db398dc8dc4766aac6d3a7a, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:35:49.9756200 UTC (as timestamp: 1701279349975620)
    [Debug] {Tracer} Starting Transaction{Id: 8729a58628efb7ab, TraceId: 8da6f1ab6db398dc8dc4766aac6d3a7a, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 200
    [Trace] {Transaction} Ended Transaction{Id: 8729a58628efb7ab, TraceId: 8da6f1ab6db398dc8dc4766aac6d3a7a, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: True}. Start time: 2023-11-29 17:35:49.9756200 UTC (as timestamp: 1701279349975620), End time: 2023-11-29 17:35:49.9806660 UTC (as timestamp: 1701279349980666), Duration: 5.046ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 40079364019ebb24, TraceId: c9533c2b1b590d9e11d6b1f239503147, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:36:04.9917240 UTC (as timestamp: 1701279364991724)
    [Debug] {Tracer} Starting Transaction{Id: 40079364019ebb24, TraceId: c9533c2b1b590d9e11d6b1f239503147, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method396(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.21d906279ce1de2f15c80fe9a1febbb4} New Error instance created: Error{Id: 21d906279ce1de2f15c80fe9a1febbb4, TraceId: c9533c2b1b590d9e11d6b1f239503147, ParentId: 40079364019ebb24, TransactionId: 40079364019ebb24}. Time: 2023-11-29 17:36:04.9987730 UTC (as timestamp: 1701279364998773)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 500
    [Trace] {Transaction} Ended Transaction{Id: 40079364019ebb24, TraceId: c9533c2b1b590d9e11d6b1f239503147, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: True}. Start time: 2023-11-29 17:36:04.9917240 UTC (as timestamp: 1701279364991724), End time: 2023-11-29 17:36:04.9990040 UTC (as timestamp: 1701279364999004), Duration: 7.28ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 6, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 434
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'all' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '0' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: ac99a0b882a1d706, TraceId: 3202ebef58c09de615f5c8cc097db6a4, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:36:15.0223160 UTC (as timestamp: 1701279375022316)
    [Debug] {Tracer} Starting Transaction{Id: ac99a0b882a1d706, TraceId: 3202ebef58c09de615f5c8cc097db6a4, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: ac99a0b882a1d706, TraceId: 3202ebef58c09de615f5c8cc097db6a4, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: False}. Start time: 2023-11-29 17:36:15.0223160 UTC (as timestamp: 1701279375022316), End time: 2023-11-29 17:36:15.0258210 UTC (as timestamp: 1701279375025821), Duration: 3.505ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: ecb16b395e007b1d, TraceId: 176d7ea5d6b31f5ba56500cdb7c78ed5, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:36:30.0322920 UTC (as timestamp: 1701279390032292)
    [Debug] {Tracer} Starting Transaction{Id: ecb16b395e007b1d, TraceId: 176d7ea5d6b31f5ba56500cdb7c78ed5, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method400(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.b50f4550232fdaa4d50fadba9e9c2388} New Error instance created: Error{Id: b50f4550232fdaa4d50fadba9e9c2388, TraceId: 176d7ea5d6b31f5ba56500cdb7c78ed5, ParentId: ecb16b395e007b1d, TransactionId: ecb16b395e007b1d}. Time: 2023-11-29 17:36:30.0386830 UTC (as timestamp: 1701279390038683)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: ecb16b395e007b1d, TraceId: 176d7ea5d6b31f5ba56500cdb7c78ed5, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: False}. Start time: 2023-11-29 17:36:30.0322920 UTC (as timestamp: 1701279390032292), End time: 2023-11-29 17:36:30.0388240 UTC (as timestamp: 1701279390038824), Duration: 6.532ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 7, startCfgVariant: OptionsTestVariant{CaptureBody: all, CaptureBodyContentTypes: application/x-ww...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 434
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'all' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*, application/my-custom-content' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '1' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 54a779413dc1241b, TraceId: 5ee86b9363b4976a0bab3978eebfa72e, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:36:40.0596130 UTC (as timestamp: 1701279400059613)
    [Debug] {Tracer} Starting Transaction{Id: 54a779413dc1241b, TraceId: 5ee86b9363b4976a0bab3978eebfa72e, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 200
    [Trace] {Transaction} Ended Transaction{Id: 54a779413dc1241b, TraceId: 5ee86b9363b4976a0bab3978eebfa72e, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: True}. Start time: 2023-11-29 17:36:40.0596130 UTC (as timestamp: 1701279400059613), End time: 2023-11-29 17:36:40.0631860 UTC (as timestamp: 1701279400063186), Duration: 3.573ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 3f38aec0bdc5ed11, TraceId: 812bac03230996c2beb7d51ec471d9c3, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2023-11-29 17:36:55.0693770 UTC (as timestamp: 1701279415069377)
    [Debug] {Tracer} Starting Transaction{Id: 3f38aec0bdc5ed11, TraceId: 812bac03230996c2beb7d51ec471d9c3, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: True}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method404(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.60784b965f337b1bd66e39500d71338a} New Error instance created: Error{Id: 60784b965f337b1bd66e39500d71338a, TraceId: 812bac03230996c2beb7d51ec471d9c3, ParentId: 3f38aec0bdc5ed11, TransactionId: 3f38aec0bdc5ed11}. Time: 2023-11-29 17:36:55.0765510 UTC (as timestamp: 1701279415076551)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled True
    [Trace] {AspNetCoreDiagnosticListener} Filling transaction.Context.Response, StatusCode: 500
    [Trace] {Transaction} Ended Transaction{Id: 3f38aec0bdc5ed11, TraceId: 812bac03230996c2beb7d51ec471d9c3, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: True}. Start time: 2023-11-29 17:36:55.0693770 UTC (as timestamp: 1701279415069377), End time: 2023-11-29 17:36:55.0767920 UTC (as timestamp: 1701279415076792), Duration: 7.415ms

Check failure on line 0 in junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Windows Tests Summary

Elastic.Apm.AspNetCore.Tests.dll ► Elastic.Apm.AspNetCore.Tests.BodyCapturingTests ► BodyCapturingTests.Options_changed_after_start(startCfgVariantIndex: 8, startCfgVariant: OptionsTestVariant{CaptureBody: errors, CaptureBodyContentTypes: application/x...

Failed test found in:
  junit-unit-windows-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml
Error:
  Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), but found 0.
Raw output
Expected sutEnv.MockPayloadSender.Transactions to contain 1 item(s), 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.Collections.SelfReferencingCollectionAssertions`2.HaveCount(Int32 expected, String because, Object[] becauseArgs)
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.<>c__DisplayClass18_0.<<Options_changed_after_start>g__TestBodyCapture|2>d.MoveNext() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 434
--- End of stack trace from previous location ---
   at Elastic.Apm.AspNetCore.Tests.BodyCapturingTests.Options_changed_after_start(Int32 startCfgVariantIndex, OptionsTestVariant startCfgVariant) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\BodyCapturingTests.cs:line 336
--- End of stack trace from previous location ---
Standard Output:
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Elastic APM .NET Agent, version: 1.25.2-canary.0.2+76231f316817f083ce1b14014ff490ab77522185
    [Info ] {ConfigurationStore} Process ID: 6568
    [Info ] {ConfigurationStore} Process Name: testhost
    [Info ] {ConfigurationStore} Command line arguments: 'D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\Elastic.Apm.AspNetCore.Tests\bin\Release\net7.0\testhost.dll, --port, 50320, --endpoint, 127.0.0.1:050320, --role, client, --parentprocessid, 2036, --telemetryoptedin, false'
    [Info ] {ConfigurationStore} Operating System: Microsoft Windows 10.0.20348
    [Info ] {ConfigurationStore} CPU architecture: X64
    [Info ] {ConfigurationStore} Host: fv-az836-376
    [Info ] {ConfigurationStore} Time zone: (UTC) Coordinated Universal Time
    [Info ] {ConfigurationStore} Runtime: .NET 7.0.14
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {ConfigurationStore} Agent Configuration (via 'MockConfiguration (config provider: NullConfigurationKeyValueProvider environment provider: MockConfigurationEnvironmentProvider)'):
    [Info ] {ConfigurationStore}       Default->log_level: 'Error' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->server_url: 'http://127.0.0.1:8200/' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_name: 'xunit_execution_dotnet' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}       Default->service_version: '[NOT_PROVIDED]' (GetDefaultValueForLogging)
    [Info ] {ConfigurationStore}   Environment->capture_body: 'errors' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->capture_body_content_types: 'application/x-www-form-urlencoded*, text/*, application/json*, application/xml*' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->cloud_provider: 'none' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore}   Environment->transaction_sample_rate: '0' (MockConfigurationEnvironmentProvider)
    [Info ] {ConfigurationStore} ********************************************************************************
    [Info ] {Service} Detected agent activation method: nuget
    [Debug] {SystemInfoHelper} No /proc/self/cgroup found - the agent will not report container id
    [Warning] OpenTelemetry (Activity) bridge is only supported with APM Server 7.16.0 or newer - bridge won't be enabled. Current Server version: 7.10.0
    [Trace] Agent.Subscribe(), Agent Enabled: True Subscriber count: 1, (AspNetCoreDiagnosticSubscriber)
    [Debug] AspNetCoreDiagnosticSubscriber starting to subscribe
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Debug] {DiagnosticInitializer} 'Microsoft.AspNetCore' already subscribed by: AspNetCoreDiagnosticListener
    [Trace] {DiagnosticInitializer} 'Microsoft.EntityFrameworkCore' not matched by any of: (AspNetCoreDiagnosticListener)
    [Trace] {DiagnosticInitializer} 'HttpHandlerDiagnosticListener' not matched by any of: (AspNetCoreDiagnosticListener)
    [Debug] AspNetCoreDiagnosticSubscriber subscribed
    Outgoing HTTP call to:http://localhost:5903/api/Home/Post
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 54fcea9cc0a57252, TraceId: ca09c49a329ad73553bf051521d3ba1c, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:37:05.0986640 UTC (as timestamp: 1701279425098664)
    [Debug] {Tracer} Starting Transaction{Id: 54fcea9cc0a57252, TraceId: ca09c49a329ad73553bf051521d3ba1c, ParentId: null, Name: POST /api/Home/Post, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionResult'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResultExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 54fcea9cc0a57252, TraceId: ca09c49a329ad73553bf051521d3ba1c, ParentId: null, Name: POST Home/Post, Type: request, Outcome: Success, IsSampled: False}. Start time: 2023-11-29 17:37:05.0986640 UTC (as timestamp: 1701279425098664), End time: 2023-11-29 17:37:05.1019700 UTC (as timestamp: 1701279425101970), Duration: 3.306ms
    Outgoing HTTP call to:http://localhost:5903/api/Home/PostError
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Start'
    [Debug] {AspNetCoreDiagnosticListener} Incoming request. Starting Trace.
    [Trace] {Transaction} New Transaction instance created: Transaction{Id: 27caf2b7535e9f2a, TraceId: 80f6a8e3e9210dcbef3918ace877ea05, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}. IsSampled (False) is based on the given sampler (Sampler{ constant: False }). Start time: 2023-11-29 17:37:20.1128850 UTC (as timestamp: 1701279440112885)
    [Debug] {Tracer} Starting Transaction{Id: 27caf2b7535e9f2a, TraceId: 80f6a8e3e9210dcbef3918ace877ea05, ParentId: null, Name: POST /api/Home/PostError, Type: request, Outcome: Unknown, IsSampled: False}
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.BeginRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Routing.EndpointMatched'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeAction'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuting'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterControllerActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterActionMethod'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnActionExecution'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.BeforeOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterOnResourceExecuted'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Mvc.AfterAction'
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware [UnhandledException] An unhandled exception has occurred while executing the request.
    System.Exception: This is a post method test exception!
    at SampleAspNetCoreApp.Controllers.HomeController.PostError() in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\integrations\applications\SampleAspNetCoreApp\Controllers\HomeController.cs:line 270
    at lambda_method408(Closure, Object, Object[])
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Diagnostics.UnhandledException'
    [Trace] {Transaction} transform stack frames
    [Trace] {Error.ae2261350d4e75a866af2ed1f527a10f} New Error instance created: Error{Id: ae2261350d4e75a866af2ed1f527a10f, TraceId: 80f6a8e3e9210dcbef3918ace877ea05, ParentId: 27caf2b7535e9f2a, TransactionId: 27caf2b7535e9f2a}. Time: 2023-11-29 17:37:20.1192250 UTC (as timestamp: 1701279440119225)
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.EndRequest'
    [Trace] {AspNetCoreDiagnosticListener} Called with key: `Microsoft.AspNetCore.Hosting.HttpRequestIn.Stop'
    [Trace] {AspNetCoreDiagnosticListener} Calculating transaction name based on route data
    [Trace] {AspNetCoreDiagnosticListener} Transaction is sampled False
    [Trace] {Transaction} Ended Transaction{Id: 27caf2b7535e9f2a, TraceId: 80f6a8e3e9210dcbef3918ace877ea05, ParentId: null, Name: POST Home/PostError, Type: request, Outcome: Failure, IsSampled: False}. Start time: 2023-11-29 17:37:20.1128850 UTC (as timestamp: 1701279440112885), End time: 2023-11-29 17:37:20.1193600 UTC (as timestamp: 1701279440119360), Duration: 6.475ms