newrelic-telemetry-sdk
New Relic Telemetry SDK
What it is and what it does
The New Relic Telemetry SDK is a Python library that sends observability data directly to New Relic's ingestion APIs without requiring a full APM agent. It supports four data types: metrics (gauge, count, summary), events (custom business events), logs (application log messages), and spans (distributed traces). You instantiate a client for each data type, construct the appropriate data objects, and call send or send_batch to transmit them to New Relic.
The package depends only on urllib3 for HTTP transport and supports Python 3.9 through 3.14 on both CPython and PyPy. It's useful when you want fine-grained control over what telemetry you collect and send, or when you need to instrument custom code without deploying a full agent. The documentation references New Relic's rate limits for each API, which you should review before high-volume use.
Use it for:
- Send custom business metrics (e.g., user signups, transaction amounts) to New Relic dashboards
- Instrument distributed traces across microservices by creating and sending Span objects
- Log application events and errors directly to New Relic for centralized audit and diagnostics
- Monitor custom application gauges (e.g., queue depth, cache hit rate) without an agent
- Build lightweight observability into serverless or containerized workloads where agent overhead is undesirable
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sends custom metrics, events, logs, and distributed traces to New Relic for monitoring and observability without requiring a full agent installation.
Yes, if you need lightweight custom telemetry ingestion to New Relic and want to avoid agent overhead. The package is actively maintained, has no known vulnerabilities, and a permissive license. Install it when you're building observability into specific code paths rather than instrumenting an entire application.
Install
newrelic-telemetry-sdk on PyPI
pip
pip install newrelic-telemetry-sdkuv
uv add newrelic-telemetry-sdkpoetry
poetry add newrelic-telemetry-sdkInstalling newrelic-telemetry-sdk
Before you install
Low friction installation with a single lightweight runtime dependency (urllib3). Actively maintained with recent releases; marked as Alpha status but in use across a substantial user base.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install newrelic-telemetry-sdk
import os
from newrelic_telemetry_sdk import GaugeMetric, MetricClient
metric_client = MetricClient(os.environ["NEW_RELIC_LICENSE_KEY"])
temp = GaugeMetric("temperature", 78.6, {"units": "Fahrenheit"})
response = metric_client.send_batch([temp])
response.raise_for_status()
Requires NEW_RELIC_LICENSE_KEY environment variable set with a valid New Relic account license key.
Verify before relying
- Whether the package supports async/await patterns for telemetry submission
- Rate-limit handling behavior and retry strategies beyond the documented API limits
- Performance characteristics when sending high-volume telemetry batches
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — urllib3 |
| Maintenance | actively maintained — 295 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 845,991/month — #4,917 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: newrelic_telemetry_sdk-0.9.0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
newrelicInstruments Python web applications to collect…
permissive · top 5,000 on PyPI
newrelic-apiA Python client for interacting with New…
permissive · top 15,000 on PyPI
azure-monitor-opentelemetry-exporterExports OpenTelemetry traces, metrics, and logs…
permissive · top 1,000 on PyPI
opentelemetry-exporter-gcp-monitoringExports OpenTelemetry metrics to Google Cloud…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-flaskAdds distributed tracing to Flask web…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-google-genaiAdds OpenTelemetry instrumentation to the…
permissive · top 5,000 on PyPI
azure-monitor-ingestionSends custom logs and structured data to Azure…
permissive · top 5,000 on PyPI
uptraceUptrace is a thin wrapper over OpenTelemetry…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-fastapiAutomatically instruments FastAPI applications…
permissive · top 1,000 on PyPI
applicationinsightsSends telemetry events, metrics, and traces to…
permissive · top 5,000 on PyPI