newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
192 stars 140 forks source link

Aws bedrock llm support #1837

Closed jasonjkeller closed 4 weeks ago

jasonjkeller commented 1 month ago

This PR achieves code completion for the Java Agent - AIM Support (Bedrock) milestone.

It adds:

It adheres to the following agent specs:

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 52.58621% with 55 lines in your changes are missing coverage. Please review.

Project coverage is 69.98%. Comparing base (4060a06) to head (70736f0). Report is 1 commits behind head on main.

Files Patch % Lines
...c/agent/bridge/aimonitoring/AiMonitoringUtils.java 0.00% 22 Missing :warning:
...c/agent/attributes/LlmEventAttributeValidator.java 0.00% 11 Missing :warning:
...c/agent/service/analytics/InsightsServiceImpl.java 26.66% 10 Missing and 1 partial :warning:
...idge/aimonitoring/LlmTokenCountCallbackHolder.java 0.00% 5 Missing :warning:
...m/newrelic/agent/model/LlmCustomInsightsEvent.java 0.00% 2 Missing :warning:
...in/java/com/newrelic/agent/TransactionApiImpl.java 0.00% 2 Missing :warning:
...nt/src/main/java/com/newrelic/agent/AgentImpl.java 0.00% 1 Missing :warning:
...com/newrelic/opentelemetry/OpenTelemetryAgent.java 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1837 +/- ## ============================================ - Coverage 70.86% 69.98% -0.88% + Complexity 9973 9892 -81 ============================================ Files 829 835 +6 Lines 39984 40096 +112 Branches 6058 6068 +10 ============================================ - Hits 28333 28061 -272 - Misses 8924 9350 +426 + Partials 2727 2685 -42 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.