Skip to main content

Radiant SDK

Radiant SDK is a Python package that simplifies the process of adding OpenTelemetry instrumentation to your applications, with a focus on integrating with Radiant's observability platform.

Features

  • Easy setup of OpenTelemetry tracing with Radiant
  • Automatic instrumentation of OpenAI API calls
  • Simple decorator for annotating functions with tracing

Installation

The Radiant SDK uses Poetry for dependency management and packaging. To install the SDK and its dependencies:

pip install radiant-sdk

Usage

Basic Setup

from radiant import Instrumentor

# Initialize the instrumentor with your Radiant endpoint
Instrumentor.start("https://your-radiant-endpoint.com/api/v0/ingest/submit/otel/{project_name}",", api_key="")

Error Handling

The SDK will raise a RadiantConfigurationError if the Radiant endpoint is not provided:

from radiant import Instrumentor
try:
    Instrumentor.start("https://your-radiant-endpoint.com/api/v0/ingest/submit/otel/{YOUR_APP_NAME}", "<YOUR_API_KEY>")
except RadiantConfigurationError as e:
    print(f"Failed to initialize Radiant: {e}")

If you already have a TracerProvider (`opentelemetry.sdk.trace.TracerProvider()), you can just pass that into the configuration as well.

tracer_provider = opentelemetry.sdk.trace.TracerProvider()
try:
    Instrumentor.start("http://your-radiant-endpoint.com/api/v0/ingest/submit/otel/{YOUR_APP_NAME}", "<YOUR_API_KEY>" tracer_provider)
except RadiantConfigurationError as e:
    print(f"Failed to initialize Radiant: {e}")

Contributing

Reach out to support@radiantai.com if you want to provide feedback or suggest changes.

License

This project is licensed under the MIT License.

Metadata

Release files for radiant-sdk 0.140.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radiant-sdk 0.140.0
File Size Uploaded Provenance Actions
radiant_sdk-0.140.0.tar.gz 2.2 kB Without provenance Details for radiant_sdk-0.140.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radiant-sdk 0.140.0
File Interpreter ABI Platform Actions
radiant_sdk-0.140.0-py3-none-any.whl Python 3 none any Details for radiant_sdk-0.140.0-py3-none-any.whl

Total release size: 5.0 kB

Release files / radiant_sdk-0.140.0.tar.gz

Download URL radiant_sdk-0.140.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
32cab5e23e682c0214d3d05d88fd107b4ee1f67abf9c06ed7b3dea24c2d07e67
BLAKE2b-256 checksum
How to use checksums
9615fed7ea6c2bdda125c72319be60e79910e5e988830e44df29367d9f5ac493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.12.4 Linux/6.5.0-1025-azure

Release files / radiant_sdk-0.140.0-py3-none-any.whl

Download URL radiant_sdk-0.140.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fb96d50b94a1cb5ec41ffac034219c2f6222f5daf3b9c95ca8df708040b6109
BLAKE2b-256 checksum
How to use checksums
ed608bcc7818fb2605d9b1900aaabd1384543c4a6c128cbb64747daadb300506
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.12.4 Linux/6.5.0-1025-azure

Security for radiant-sdk 0.140.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.140.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page