Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Auto-infer destination.service.resource and adapt public API #1520

Merged
merged 15 commits into from Oct 20, 2021
Merged

Auto-infer destination.service.resource and adapt public API #1520

merged 15 commits into from Oct 20, 2021

Conversation

gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented Oct 13, 2021

Solves #1330

  • Obsoletes Destination.Service.Name and Destination.Service.Type - these fields were never used in APM Server and we should remove those long term according to [META 448] Auto-infer destination.service.resource and adapt public API #1330
  • Adds the concept of exit spans and implements auto-infer of Destination.Service.Resource for exit spans.
    • We already had a logic to auto-infer it, but the logic did not fully follow the spec. This PR adapts to logic according to the spec.
    • With this PR we only infer Destination.Service.Resource for exit spans. According to the spec this should only happen for exit spans which was not the case prior to this PR
  • Extends the StartSpan and CaptureSpan APIs to also start exit spans and adapts the usage of it in instrumentation logic.

@elastic-apm-tech elastic-apm-tech added this to In Progress in APM-Agents (OLD) Oct 13, 2021
@gregkalapos gregkalapos self-assigned this Oct 13, 2021
@apmmachine
Copy link
Collaborator

apmmachine commented Oct 13, 2021

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

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

Expand to view the summary

Build stats

  • Reason: Aborted from #9

  • Start Time: 2021-10-20T18:37:58.492+0000

  • Duration: 47 min 42 sec

  • Commit: 02c70be

Test stats 🧪

Test Results
Failed 138
Passed 19349
Skipped 127
Total 19614

Test errors 138

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Windows .NET Core / Test / ServerCertificateTests.Elastic.Apm.Tests.ServerCertificateTests.VerifyServerCert_Should_Allow_Https_To_Apm_Server – Elastic.Apm.Tests.ServerCertificateTests
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.Tests.ServerCertificateTests..ctor() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests\ServerCertificateTests.cs:line 43
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151 
    

Initializing / Parallel / Windows .NET Core / Test / ServerCertificateTests.Elastic.Apm.Tests.ServerCertificateTests.ServerCert_Should_Allow_Https_To_Apm_Server – Elastic.Apm.Tests.ServerCertificateTests
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.Tests.ServerCertificateTests..ctor() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests\ServerCertificateTests.cs:line 43
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 1> Xunit> [2021-10-20 19:10:58.576 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 1> Xunit> [2021-10-20 19:11:00.070 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 2> Xunit> [2021-10-20 19:11:00.116 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 2> Xunit> [2021-10-20 19:11:00.982 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 3> Xunit> [2021-10-20 19:11:00.984 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 3> Xunit> [2021-10-20 19:11:01.886 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 4> Xunit> [2021-10-20 19:11:01.887 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... })...
        Elastic APM .NET Tests> 4> Xunit> [2021-10-20 19:11:02.710 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 5> Xunit> [2021-10-20 19:11:02.712 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ... })...
        Elastic APM .NET Tests> 5> Xunit> [2021-10-20 19:11:03.558 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureUserTests.Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal – Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 6> Xunit> [2021-10-20 19:11:03.561 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal...
        Elastic APM .NET Tests> 6> Xunit> [2021-10-20 19:11:04.403 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CustomEnvironmentViaSettings.Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test – Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 7> Xunit> [2021-10-20 19:11:04.406 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 7> Xunit> [2021-10-20 19:11:05.250 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CustomEnvironmentViaSettings.Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test – Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 8> Xunit> [2021-10-20 19:11:05.251 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 8> Xunit> [2021-10-20 19:11:06.088 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... }) 
    

Steps errors 5

Expand to view the steps failures

Archive the artifacts
  • Took 0 min 0 sec . View more details here
  • Description: [2021-10-20T19:23:59.379Z] Archiving artifacts withAzureCredentials: error org.jenkinsci.plugins.wo
Test IIS
  • Took 3 min 12 sec . View more details here
  • Description: .ci/windows/test-iis.bat
Test & coverage
  • Took 14 min 5 sec . View more details here
  • Description: .ci/windows/test.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details here
  • Description: [2021-10-20T19:12:32.270Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: withAzureCredentials: error org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

@gregkalapos gregkalapos marked this pull request as ready for review October 13, 2021 21:39
@@ -125,7 +125,8 @@ public interface IExecutionSegment
/// </param>
/// <param name="subType">The subtype of the span.</param>
/// <param name="action">The action of the span.</param>
void CaptureSpan(string name, string type, Action<ISpan> capturedAction, string subType = null, string action = null);
/// <param name="isExitSpan">Indicates if this span is an exit span.</param>
void CaptureSpan(string name, string type, Action<ISpan> capturedAction, string subType = null, string action = null, bool isExitSpan = false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are technically breaking changes to a public API, however this is probably the simplest way to implement exit spans. I can't think of a cleaner alternative

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Yeah, I also think this is the best option we have.

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes LGTM. A couple of questions:

  1. Should a property be included on ISpan to indicate whether it is an exit span?

  2. It looks like exit span can be used in places where InstrumentationFlag is currently used to suppress child spans, such as in HttpDiagnosticListenerImplBase

    // if the current span is an exit span, don't create a span for the current request
    // but still propagate trace context
    if (currentSpan.InstrumentationFlag == InstrumentationFlag.Azure
    || currentSpan.InstrumentationFlag == InstrumentationFlag.Elasticsearch)
    {
    PropagateTraceContext(request, transaction, currentSpan);
    return;
    }

    Should this be part of this PR?

- Introduces the concept of exit spans
- Calculate Span.Context.Destination.Service.Resource only for exit spans based on the spec
- Adapt all instrumentation to set the isExitSpan flag
- Remove usage of the obsolete fields Destination.Service.Name and Destination.Service.Type
@gregkalapos
Copy link
Contributor Author

The changes LGTM. A couple of questions:

  1. Should a property be included on ISpan to indicate whether it is an exit span?

  2. It looks like exit span can be used in places where InstrumentationFlag is currently used to suppress child spans, such as in HttpDiagnosticListenerImplBase

    // if the current span is an exit span, don't create a span for the current request
    // but still propagate trace context
    if (currentSpan.InstrumentationFlag == InstrumentationFlag.Azure
    || currentSpan.InstrumentationFlag == InstrumentationFlag.Elasticsearch)
    {
    PropagateTraceContext(request, transaction, currentSpan);
    return;
    }

    Should this be part of this PR?

  1. So far, there was no public usage of the isExitSpan field, we only use used it in Span.End(), so I thought let's keep it private as long as we don't have a public usage of it. Point 2 is practically a public usage of it, so I ended up adding it :)
  2. Yeah, that makes sense - I adapted it. But with that, I think we'll still need instrumentation flags, so I kept those.

@gregkalapos
Copy link
Contributor Author

Merging this in - there are some failing tests with Elastic.Apm.Specification.Validator, those are unrelated.

@gregkalapos gregkalapos merged commit f2a2b9a into elastic:master Oct 20, 2021
APM-Agents (OLD) automation moved this from In Progress to Done Oct 20, 2021
@gregkalapos gregkalapos deleted the DestinationApi branch October 20, 2021 19:48
@apmmachine
Copy link
Collaborator

💔 Tests Failed

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

Expand to view the summary

Build stats

  • Start Time: 2021-10-20T19:17:49.419+0000

  • Duration: 52 min 42 sec

  • Commit: 13a8695

Test stats 🧪

Test Results
Failed 134
Passed 19584
Skipped 127
Total 19845

Test errors 134

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Windows .NET Core / Test / ServerCertificateTests.Elastic.Apm.Tests.ServerCertificateTests.VerifyServerCert_Should_Allow_Https_To_Apm_Server – Elastic.Apm.Tests.ServerCertificateTests
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.Tests.ServerCertificateTests..ctor() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests\ServerCertificateTests.cs:line 43
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151 
    

Initializing / Parallel / Windows .NET Core / Test / ServerCertificateTests.Elastic.Apm.Tests.ServerCertificateTests.ServerCert_Should_Allow_Https_To_Apm_Server – Elastic.Apm.Tests.ServerCertificateTests
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.Tests.ServerCertificateTests..ctor() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests\ServerCertificateTests.cs:line 43
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 1> Xunit> [2021-10-20 19:50:56.611 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 1> Xunit> [2021-10-20 19:50:58.199 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 2> Xunit> [2021-10-20 19:50:58.248 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 2> Xunit> [2021-10-20 19:50:59.138 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 3> Xunit> [2021-10-20 19:50:59.140 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 3> Xunit> [2021-10-20 19:50:59.995 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 4> Xunit> [2021-10-20 19:50:59.996 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... })...
        Elastic APM .NET Tests> 4> Xunit> [2021-10-20 19:51:00.851 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 5> Xunit> [2021-10-20 19:51:00.853 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ... })...
        Elastic APM .NET Tests> 5> Xunit> [2021-10-20 19:51:01.717 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureUserTests.Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal – Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 6> Xunit> [2021-10-20 19:51:01.720 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal...
        Elastic APM .NET Tests> 6> Xunit> [2021-10-20 19:51:02.583 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CustomEnvironmentViaSettings.Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test – Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 7> Xunit> [2021-10-20 19:51:02.587 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 7> Xunit> [2021-10-20 19:51:03.447 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... }) 
    

Initializing / Parallel / Windows .NET Framework / IIS Tests / CustomEnvironmentViaSettings.Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test – Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings
    Expand to view the error details

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method. 
    

    Expand to view the stacktrace

     System.AggregateException : One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
    ---- System.IO.InvalidDataException : The archive entry was compressed using an unsupported compression method.
    Stack Trace:
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at Elastic.Apm.Tests.MockApmServer.Startup.ConfigureServices(IServiceCollection services) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\Startup.cs:line 34
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
       at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
       at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
       at Elastic.Apm.Tests.MockApmServer.MockApmServer.RunInBackground(Int32 port) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.Tests.MockApmServer\MockApmServer.cs:line 150
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 209
    ----- Inner Stack Trace -----
       at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
       at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
       at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
       at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
       at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
       at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
       at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadRecord()
       at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlock()
       at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
       at Elastic.Apm.Specification.Validator.DownloadAsync(String branch, Boolean overwrite) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1520\apm-agent-dotnet\src\Elastic.Apm.Specification\Validator.cs:line 151
    Standard Output:
        Elastic APM .NET Tests> 8> Xunit> [2021-10-20 19:51:03.448 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 8> Xunit> [2021-10-20 19:51:04.294 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomEnvironmentViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... }) 
    

Steps errors 4

Expand to view the steps failures

Test IIS
  • Took 3 min 22 sec . View more details here
  • Description: .ci/windows/test-iis.bat
Test & coverage
  • Took 15 min 39 sec . View more details here
  • Description: .ci/windows/test.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details here
  • Description: [2021-10-20T19:52:08.155Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: withAzureCredentials: error hudson.AbortException: script returned exit code 1

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

/// <summary>
/// Indicates that this span is an exit span.
/// </summary>
public bool IsExitSpan { get; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the public modifier is unintentional here (will be public by default)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants