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

Add CosmosDb support - new #1342

Merged
merged 2 commits into from
Jun 18, 2021
Merged

Add CosmosDb support - new #1342

merged 2 commits into from
Jun 18, 2021

Conversation

gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented Jun 16, 2021

Prior PR: #1239 - which got extremely out of date.

As discussed on zoom, I'm opening a new PR.

Closes #1154

@apmmachine
Copy link
Contributor

apmmachine commented Jun 16, 2021

💔 Tests Failed

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

Expand to view the summary

Build stats

  • Build Cause: Pull request #1342 updated

  • Start Time: 2021-06-18T12:56:27.256+0000

  • Duration: 48 min 14 sec

  • Commit: 6778b77

Test stats 🧪

Test Results
Failed 1
Passed 19484
Skipped 122
Total 19607

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

Expand to view the tests failures

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

     System.NullReferenceException : Object reference not set to an instance of an object. 
    

    Expand to view the stacktrace

     System.NullReferenceException : Object reference not set to an instance of an object.
    Stack Trace:
       at Microsoft.AspNetCore.TestHost.ClientHandler.<>c__DisplayClass11_0.<SendAsync>b__2(HttpContext context)
       at Microsoft.AspNetCore.TestHost.ResponseBodyReaderStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<CopyAsync>g__DisposeSourceAsync|1_0(Task copyTask, Stream source)
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.SanitizeHeadersOnError(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1342\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 313
    --- End of stack trace from previous location --- 
    

Steps errors 3

Expand to view the steps failures

Test & coverage
  • Took 15 min 2 sec . View more details on here
  • Description: .ci/windows/test.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-06-18T13:31:27.635Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: withAzureCredentials: error hudson.AbortException: script returned exit code 1

Log output

Expand to view the last 100 lines of log output

[2021-06-18T13:44:00.674Z]       Executing action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) - Validation state: Valid
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:00.674Z]       Executed action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer), returned result Microsoft.AspNetCore.Mvc.OkObjectResult in 3.9767ms.
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
[2021-06-18T13:44:00.674Z]       Executing ObjectResult, writing value of type 'System.String'.
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:00.674Z]       Executed action Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) in 4.2193ms
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
[2021-06-18T13:44:00.674Z]       Request finished in 4.6121ms 200 text/plain; charset=utf-8
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
[2021-06-18T13:44:00.674Z]       Request starting HTTP/1.1 POST http://localhost:24471/intake/v2/events application/x-ndjson; charset=utf-8 1492
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
[2021-06-18T13:44:00.674Z]       Route matched with {action = "Post", controller = "IntakeV2Events"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Post() on controller Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController (Elastic.Apm.Tests.MockApmServer).
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
[2021-06-18T13:44:00.674Z]       Executing action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) - Validation state: Valid
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:00.674Z]       Executed action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer), returned result Microsoft.AspNetCore.Mvc.OkObjectResult in 1.208ms.
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
[2021-06-18T13:44:00.674Z]       Executing ObjectResult, writing value of type 'System.String'.
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:00.674Z]       Executed action Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) in 1.4442ms
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
[2021-06-18T13:44:00.674Z]       Request finished in 1.7195ms 200 text/plain; charset=utf-8
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
[2021-06-18T13:44:00.674Z]       Request starting HTTP/1.1 POST http://localhost:24471/intake/v2/events application/x-ndjson; charset=utf-8 1634
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
[2021-06-18T13:44:00.674Z]       Route matched with {action = "Post", controller = "IntakeV2Events"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Post() on controller Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController (Elastic.Apm.Tests.MockApmServer).
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
[2021-06-18T13:44:00.674Z]       Executing action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) - Validation state: Valid
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:00.674Z]       Executed action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer), returned result Microsoft.AspNetCore.Mvc.OkObjectResult in 1.91ms.
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
[2021-06-18T13:44:00.674Z]       Executing ObjectResult, writing value of type 'System.String'.
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:00.674Z]       Executed action Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) in 2.1026ms
[2021-06-18T13:44:00.674Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
[2021-06-18T13:44:00.674Z]       Request finished in 2.3189ms 200 text/plain; charset=utf-8
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
[2021-06-18T13:44:01.242Z]       Request starting HTTP/1.1 GET http://localhost:24471/config/v1/agents?service.name=AspNetFullFramework_Tests_CentralConfigTests-CustomServiceName&service.environment=AspNetFullFramework_Tests_CentralConfigTests-CustomEnvironment  
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
[2021-06-18T13:44:01.242Z]       Route matched with {action = "Get", controller = "AgentsConfig"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get() on controller Elastic.Apm.Tests.MockApmServer.Controllers.AgentsConfigController (Elastic.Apm.Tests.MockApmServer).
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
[2021-06-18T13:44:01.242Z]       Executing action method Elastic.Apm.Tests.MockApmServer.Controllers.AgentsConfigController.Get (Elastic.Apm.Tests.MockApmServer) - Validation state: Valid
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:01.242Z]       Executed action method Elastic.Apm.Tests.MockApmServer.Controllers.AgentsConfigController.Get (Elastic.Apm.Tests.MockApmServer), returned result Microsoft.AspNetCore.Mvc.StatusCodeResult in 0.0832ms.
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Mvc.StatusCodeResult[1]
[2021-06-18T13:44:01.242Z]       Executing HttpStatusCodeResult, setting HTTP status code 304
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-06-18T13:44:01.242Z]       Executed action Elastic.Apm.Tests.MockApmServer.Controllers.AgentsConfigController.Get (Elastic.Apm.Tests.MockApmServer) in 0.1885ms
[2021-06-18T13:44:01.242Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
[2021-06-18T13:44:01.242Z]       Request finished in 0.4461ms 304 
[2021-06-18T13:44:02.178Z] Elastic APM .NET Tests> 100> Console> [2021-06-18 13:44:02.094 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.MaxSpans_invalid_value
[2021-06-18T13:44:02.178Z] [xUnit.net 00:18:12.51]   Finished:    Elastic.Apm.AspNetFullFramework.Tests
[2021-06-18T13:44:02.436Z]   Passed Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.MaxSpans_invalid_value [9 s]
[2021-06-18T13:44:02.436Z] 
[2021-06-18T13:44:02.436Z] JunitXML Logger - Results File: C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1342\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\junit-NETCoreApp21-Elastic.Apm.AspNetFullFramework.Tests.xml
[2021-06-18T13:44:02.436Z] 
[2021-06-18T13:44:02.436Z] Test Run Successful.
[2021-06-18T13:44:02.436Z] Total tests: 115
[2021-06-18T13:44:02.436Z]      Passed: 115
[2021-06-18T13:44:02.436Z]  Total time: 18.2747 Minutes
[2021-06-18T13:44:02.436Z] 
[2021-06-18T13:44:02.436Z] Build succeeded.
[2021-06-18T13:44:02.436Z]     0 Warning(s)
[2021-06-18T13:44:02.436Z]     0 Error(s)
[2021-06-18T13:44:02.436Z] 
[2021-06-18T13:44:02.436Z] Time Elapsed 00:18:17.52
[2021-06-18T13:44:03.538Z] Post stage
[2021-06-18T13:44:03.550Z] Running in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1342\apm-agent-dotnet
[2021-06-18T13:44:03.582Z] Archiving artifacts
[2021-06-18T13:44:04.205Z] Recording test results
[2021-06-18T13:44:06.085Z] [Checks API] No suitable checks publisher found.
[2021-06-18T13:44:06.138Z] Post stage
[2021-06-18T13:44:06.154Z] [WS-CLEANUP] Deleting project workspace...
[2021-06-18T13:44:06.154Z] [WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[2021-06-18T13:44:11.965Z] [WS-CLEANUP] done
[2021-06-18T13:44:38.389Z] [Checks API] No suitable checks publisher found.
[2021-06-18T13:44:38.470Z] [INFO] getVaultSecret: Getting secrets
[2021-06-18T13:44:38.509Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-06-18T13:44:39.041Z] Running in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1342/apm-agent-dotnet
[2021-06-18T13:44:39.061Z] [INFO] Codecov: Getting branch ref...
[2021-06-18T13:44:39.137Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-06-18T13:44:39.661Z] [INFO] Codecov: Sending data...
[2021-06-18T13:44:40.058Z] + echo curl -sSLo codecov.sh https://codecov.io/bash
[2021-06-18T13:44:40.059Z] curl -sSLo codecov.sh https://codecov.io/bash
[2021-06-18T13:44:40.379Z] + echo bash codecov.sh
[2021-06-18T13:44:40.379Z] bash codecov.sh
[2021-06-18T13:44:40.616Z] Stage "Release to feedz.io" skipped due to earlier failure(s)
[2021-06-18T13:44:40.655Z] Stage "Release" skipped due to earlier failure(s)
[2021-06-18T13:44:40.671Z] Stage "Release" skipped due to earlier failure(s)
[2021-06-18T13:44:40.711Z] Stage "Release" skipped due to earlier failure(s)
[2021-06-18T13:44:40.772Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-06-18T13:44:40.791Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-06-18T13:44:41.036Z] Running on Jenkins in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1342
[2021-06-18T13:44:41.084Z] [INFO] getVaultSecret: Getting secrets
[2021-06-18T13:44:41.125Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-06-18T13:44:41.779Z] + chmod 755 generate-build-data.sh
[2021-06-18T13:44:41.779Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1342/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1342/runs/3 FAILURE 2894264
[2021-06-18T13:44:41.779Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1342/runs/3/steps/?limit=10000 -o steps-info.json
[2021-06-18T13:44:42.330Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1342/runs/3/tests/?status=FAILED -o tests-errors.json

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.

@gregkalapos gregkalapos requested a review from russcam June 17, 2021 18:33
@gregkalapos gregkalapos self-assigned this Jun 17, 2021
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.

LGTM 👍

@gregkalapos gregkalapos merged commit 243b7f8 into elastic:master Jun 18, 2021
@gregkalapos gregkalapos deleted the CosmosDb_New branch June 18, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[META 410] Instrumentation for CosmosDB
3 participants