Skip to content

feat: add support for Java-Agent layer#382

Merged
Sashwatdas123 merged 4 commits into
newrelic:mainfrom
Sashwatdas123:javaAgent/sd
Jun 3, 2026
Merged

feat: add support for Java-Agent layer#382
Sashwatdas123 merged 4 commits into
newrelic:mainfrom
Sashwatdas123:javaAgent/sd

Conversation

@Sashwatdas123

Copy link
Copy Markdown
Contributor

Details :

  • Adds --java-agent true option to layers install; attaches NewRelicAgentJava layer, sets AWS_LAMBDA_EXEC_WRAPPER=/opt/newrelic-java-handler and keeps the
    original handler unchanged
  • --slim auto-selects NewRelicAgentJava-slim without prompting
    • -u supports switching between OpenTracing and Java Agent families with full Environment variable and
      handler
  • AWS_LAMBDA_EXEC_WRAPPER handling scoped to Java runtimes only; uninstall
    auto-detects the active family and cleans up accordingly
  • Existing OpenTracing behaviour unchanged when --java-agent is omitted

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.52%. Comparing base (59b796b) to head (74782e0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #382      +/-   ##
==========================================
+ Coverage   70.04%   70.52%   +0.48%     
==========================================
  Files          20       20              
  Lines        1876     1893      +17     
==========================================
+ Hits         1314     1335      +21     
+ Misses        562      558       -4     

☔ 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.

@Sashwatdas123
Sashwatdas123 merged commit 08846f4 into newrelic:main Jun 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants