Skip to content
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
8bcdf22
initial New Relic integration.
bonczj Apr 21, 2026
28261e0
Minor fixes for basic observability.
bonczj Nov 18, 2025
c99f8a2
Implemented basic support for the success path. Generates New Relic
bonczj Nov 21, 2025
cc32307
Supportability metric is sent on first request.
bonczj Nov 21, 2025
d8b61ac
Emit supportability metric every hour instead of once a day.
bonczj Nov 21, 2025
10017aa
Add the start/end times to the messages before sending them so that the
bonczj Nov 21, 2025
1cb2306
Make use of `turn_off_message_logging` configuration that is available
bonczj Dec 29, 2025
7478768
Enabling New Relic agent to be wired when docker container starts if …
bonczj Dec 29, 2025
15aaf8a
If we cannot find trace information, send the AI events without the
bonczj Dec 29, 2025
2aaec8b
Use a fake trace_id if we cannot find one.
bonczj Dec 29, 2025
d708f26
Implementing a configuration so that users can use litellm configuration
bonczj Dec 29, 2025
5dd9105
Mised file.
bonczj Dec 29, 2025
602a957
Cleaning up logic to turn off recording content via either the
bonczj Dec 30, 2025
eda7549
Removing debugging.
bonczj Dec 31, 2025
c025f9d
Initial version of public doc for New Relic.
bonczj Jan 12, 2026
2500867
Use a proper name for the doc file.
bonczj Jan 12, 2026
e4cb87f
Updating newrelic.md document.
bonczj Jan 13, 2026
5e3e549
Updating LiteLLM documentation for New Relic extension.
bonczj Mar 11, 2026
0721eff
Moving New Relic imports into the methods to support unit tests.
bonczj Mar 11, 2026
f1dfd84
Adding unit tests for the New Relic extension.
bonczj Mar 11, 2026
df939c3
Updating linting and the unit tests that are not running in the CI en…
bonczj Mar 11, 2026
2f2e0c9
Address reviewer feedback on New Relic integration.
bonczj Mar 13, 2026
8495f54
Reformating for the linter.
bonczj Mar 13, 2026
50fa318
Addressing additional automated feedback.
bonczj Mar 13, 2026
581f1e1
Addressing new feedback.
bonczj Mar 13, 2026
4e4eee2
Addressing feedback.
bonczj Mar 13, 2026
e83ee3a
Updating the NR event timestamps to more accurately reflect when
bonczj Mar 13, 2026
139dea7
Addressing feedback for potential better practice.
bonczj Mar 13, 2026
afabccf
Addressing feedback on accessing default values. Added tests for most of
bonczj Mar 13, 2026
07f8dda
Adding a new catch exception block based on feedback.
bonczj Mar 13, 2026
5078136
Addressing feedback about a potential issue around a timestamp for the
bonczj Mar 13, 2026
b317c47
Addressing minor feedback on length of generated, fallback traceId.
bonczj Mar 13, 2026
4fbdc57
Addressing feedback.
bonczj Mar 13, 2026
a7deb45
Addressed feedback where the newrelic options might not apply correctly.
bonczj Mar 13, 2026
7ce5db3
Addressing some feedback.
bonczj Mar 13, 2026
ed287e5
Addressing feedback.
bonczj Mar 17, 2026
f639b47
Validating testing / formatting for our changes.
bonczj Apr 21, 2026
7be2db7
Updating linting, adding tests, defining data type for UI.
bonczj Apr 23, 2026
285a288
Configuration for the logging callback definition.
bonczj Apr 24, 2026
a4f637a
Adding a newrelic image for the UI to use.
bonczj Apr 24, 2026
c925dc6
Putting the New Relic callback in proper alphabetic order.
bonczj Apr 24, 2026
505dfcb
Copying the logo to a committed output directory so it shows up in a …
bonczj Apr 24, 2026
1690fb5
Adding missing definition of new env vars that were causing a build f…
bonczj Apr 24, 2026
e5b7518
Addressing automated feedback from greptile.
bonczj Apr 24, 2026
caccfbe
Adding a few more unit tests to increase the code coverage just a bit…
bonczj Apr 24, 2026
0cbcde8
Additional unit tests to push coverage to almost 90%.
bonczj Apr 24, 2026
87e02bd
Adding a custom newrelic docker image build process. This removes the…
bonczj Apr 27, 2026
2d33f21
Clarifying message when the New Relic agent is not installed and someone
bonczj Apr 27, 2026
1596d46
Ensuring pip is available to install the New Relic agent.
bonczj Apr 27, 2026
394b6a2
Updating the definition and handling of traceId (no spanId).
bonczj Apr 30, 2026
5206cd6
Removing entries from the New Relic logger configuraiton UI as these
bonczj May 1, 2026
553ad2c
Removing a stale doc file that has moved to the litellm-docs repo.
bonczj May 1, 2026
7509618
Updating container image name to be the best guess for the new name.
bonczj May 1, 2026
faa07d4
Addressing feedback from greptile.
bonczj May 1, 2026
251fa9b
Removing option for a separate New Relic container image. The agreement
bonczj May 14, 2026
bc5ce83
Updating error message when New Relic agent is not available.
bonczj May 15, 2026
827d37c
Wiring in the test message from the LiteLLM callback UX.
bonczj May 19, 2026
f5c308a
Missed saving one of the file conflicts.
bonczj Jun 9, 2026
1837a9a
Fixed a lint error I introduced. Somehow, I dropped another string
bonczj Jun 9, 2026
4e36d8b
Adding newrelic to the schema definition.
bonczj Jun 9, 2026
686cd05
Added an admin check on the call before sending test message
bonczj Jun 9, 2026
4a69869
Updating to use should_redact_message_logging(kwargs) as part of the
bonczj Jun 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions litellm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def _dev_env_hot_reload_enabled() -> bool:
Type,
)
from litellm.types.integrations.datadog import DatadogInitParams
from litellm.types.integrations.newrelic import NewRelicInitParams
from litellm._logging import (
set_verbose,
_turn_on_debug,
Expand Down Expand Up @@ -158,6 +159,7 @@ def _dev_env_hot_reload_enabled() -> bool:
"posthog",
"levo",
"compression_interception",
"newrelic",
]
cold_storage_custom_logger: Optional[_custom_logger_compatible_callbacks_literal] = None
logged_real_time_event_types: Optional[Union[List[str], Literal["*"]]] = None
Expand Down Expand Up @@ -412,6 +414,7 @@ def _dev_env_hot_reload_enabled() -> bool:
s3_audit_callback_params: Optional[Dict] = None
datadog_llm_observability_params: Optional[Union[DatadogLLMObsInitParams, Dict]] = None
datadog_params: Optional[Union[DatadogInitParams, Dict]] = None
newrelic_params: Optional[Union[NewRelicInitParams, Dict]] = None
aws_sqs_callback_params: Optional[Dict] = None
generic_logger_headers: Optional[Dict] = None
default_key_generate_params: Optional[Dict] = None
Expand Down
15 changes: 15 additions & 0 deletions litellm/integrations/callback_configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,21 @@
},
"description": "Langsmith Logging Integration"
},
{
"id": "newrelic",
"displayName": "New Relic",
"logo": "newrelic.png",
"supports_key_team_logging": false,
"dynamic_params": {
"NEW_RELIC_AI_MONITORING_RECORD_CONTENT_ENABLED": {
"type": "text",
"ui_name": "Record AI Content (default: true)",
"description": "Whether to record AI message content. Set to false to disable.",
"required": false
}
},
"description": "New Relic AI Monitoring Integration"
},
{
"id": "openmeter",
"displayName": "OpenMeter",
Expand Down
10 changes: 10 additions & 0 deletions litellm/integrations/newrelic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
New Relic AI Monitoring Integration for LiteLLM

This module provides integration with New Relic's AI Monitoring feature to track
LLM requests, responses, and usage metrics.
"""

from litellm.integrations.newrelic.newrelic import NewRelicLogger

__all__ = ["NewRelicLogger"]
Loading
Loading