Skip to main content

Graphsignal SDK for Python

Project description

Graphsignal: Inference Observability

License Version

Graphsignal is an inference observability platform that helps developers accelerate and troubleshoot AI systems. It provides essential visibility across the inference stack, including:

  • Continuous, high-resolution profiling timelines exposing operation durations and resource utilization across inference workloads.
  • LLM generation tracing with per-step timing, token throughput, and latency breakdowns for major inference frameworks.
  • System-level metrics for inference engines and hardware (CPU, GPU, accelerators).
  • Error monitoring for device-level failures, runtime exceptions, and inference errors.
  • AI debugging to explain performance data and errors, identify bottlenecks, and recommend optimizations across the inference stack.

Dashboards

Learn more at graphsignal.com.

Install

Install the Graphsignal library.

pip install -U graphsignal

GPU profiling (Linux): For CUPTI-based GPU profiling, install the extra matching your CUDA version: pip install graphsignal[cu12] (CUDA 12.x) or pip install graphsignal[cu13] (CUDA 13.x).

Configure

Configure the Graphsignal SDK by specifying your API key directly or via the GRAPHSIGNAL_API_KEY environment variable.

import graphsignal

graphsignal.configure(api_key='my-api-key')
# or pass the API key via the GRAPHSIGNAL_API_KEY environment variable

See configure() API docs for all configuration parameters.

To get an API key, sign up for a free account at graphsignal.com. The key can then be found in your account's Settings / API Keys page.

Alternatively, you can use the Graphsignal runner when running your application. Pass the API key via the GRAPHSIGNAL_API_KEY environment variable.

graphsignal-run <my-app>

Integrate

Graphsignal works automatically and also provides an API for manual tracing and profiling. It captures performance profiles, traces, metrics, and errors. All insights are available for analysis at app.graphsignal.com.

Refer to the guides below for detailed information on:

See integration documentation for libraries and inference engines:

See the API reference for complete documentation.

Analyze

Log in to Graphsignal to monitor and analyze your application.

Debug with AI

Install the Graphsignal skill to let your AI coding agent (Cursor, Claude Code, Codex, or Gemini) fetch and analyze debug context directly from your IDE. See AI Debugging for setup instructions.

Overhead

The SDK has no impact on production performance that needs to be considered. Profiling uses low-overhead profiling APIs, so it runs with minimal impact on your code. Tracing is lightweight—overhead per trace is typically under 100 microseconds.

Security and Privacy

The Graphsignal SDK only establishes outbound connections to api.graphsignal.com to send data; inbound connections or commands are not possible.

Content and sensitive information, such as prompts and completions, are not recorded.

Troubleshooting

To enable debug logging, add debug_mode=True to configure(). If the debug log doesn’t provide hints for resolving the issue, report it to our support team via your account.

In case of connection issues, please make sure outgoing connections to https://api.graphsignal.com are allowed.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphsignal-0.19.7.tar.gz (166.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphsignal-0.19.7-py3-none-any.whl (174.0 kB view details)

Uploaded Python 3

File details

Details for the file graphsignal-0.19.7.tar.gz.

File metadata

  • Download URL: graphsignal-0.19.7.tar.gz
  • Upload date:
  • Size: 166.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1008-azure

File hashes

Hashes for graphsignal-0.19.7.tar.gz
Algorithm Hash digest
SHA256 1490795c25113827be7516ab9b15850cbe7beab82f9c0448d48343d5f6b631ce
MD5 dd888124dd830c5c2ff344399feb2c78
BLAKE2b-256 49ae89de42f887a2b3390340bb2adfe47c2ac2910717a4152ed110032d757945

See more details on using hashes here.

File details

Details for the file graphsignal-0.19.7-py3-none-any.whl.

File metadata

  • Download URL: graphsignal-0.19.7-py3-none-any.whl
  • Upload date:
  • Size: 174.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1008-azure

File hashes

Hashes for graphsignal-0.19.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6c79bc3a136efe33954bb80ec6aca27dbcb148510751d993d2d4814e8f41212c
MD5 2b8f4afd3e795089d621085d586be06e
BLAKE2b-256 35bb592f8350995382c631fc3bbc14c95469e17620cf279743bbf88fde1dc515

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page