Skip to content

Serverless mode [DO NOT MERGE]#2796

Open
obenkenobi wants to merge 90 commits intomainfrom
serverless-mode
Open

Serverless mode [DO NOT MERGE]#2796
obenkenobi wants to merge 90 commits intomainfrom
serverless-mode

Conversation

@obenkenobi
Copy link
Contributor

### Overview
Introduces serverless mode for the agent as according to the agent spec.

Todo: include details about how these changes work.

Related Github Issue

#2704

obenkenobi and others added 30 commits November 21, 2025 15:16
New DataSender impl that writes data to /tmp/newrelic-telemetry or st…
…ion-finishes

Serverless POC: harvest data when transaction finishes
…erless

Serverless POC: Disable JFR when serverless mode is enabled
Serverless Data Marshalling follows the agent spec
Serverless POC: All telemetry is combined into a single payload
…verless-enabled

Serverless POC: Disable the jar collector when serverless mode is enabled
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 82.29508% with 108 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.71%. Comparing base (24d16c2) to head (e28e665).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...a/com/newrelic/agent/ServerlessHarvestService.java 66.44% 43 Missing and 7 partials ⚠️
...transport/serverless/DataSenderServerlessImpl.java 84.46% 14 Missing and 2 partials ⚠️
...t/src/main/java/com/newrelic/agent/RPMService.java 54.54% 9 Missing and 1 partial ⚠️
...ent/transport/serverless/ServerlessWriterImpl.java 33.33% 8 Missing ⚠️
...wrelic/agent/serverless/ServerlessServiceImpl.java 75.00% 4 Missing ⚠️
.../src/main/java/com/newrelic/agent/Transaction.java 0.00% 2 Missing and 1 partial ⚠️
...ava/com/newrelic/agent/trace/TransactionTrace.java 25.00% 2 Missing and 1 partial ⚠️
...ic/agent/transport/serverless/TelemetryBuffer.java 98.49% 0 Missing and 3 partials ⚠️
...om/newrelic/agent/config/ServerlessConfigImpl.java 88.88% 2 Missing ⚠️
...ent/introspec/internal/IntrospectorRPMService.java 0.00% 1 Missing ⚠️
... and 8 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2796      +/-   ##
============================================
+ Coverage     70.01%   70.71%   +0.69%     
- Complexity    10520    10534      +14     
============================================
  Files           872      877       +5     
  Lines         43070    42602     -468     
  Branches       6608     6439     -169     
============================================
- Hits          30157    30124      -33     
+ Misses        10010     9578     -432     
+ Partials       2903     2900       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants