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.6.tar.gz (165.2 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.6-py3-none-any.whl (172.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphsignal-0.19.6.tar.gz
  • Upload date:
  • Size: 165.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.20 Linux/6.14.0-1017-azure

File hashes

Hashes for graphsignal-0.19.6.tar.gz
Algorithm Hash digest
SHA256 b1be640592470108c44cabe4b93115e631833559fc49266c24a825520b2c878e
MD5 955091ba6d9c1bcacf6fb2ae4e518ef3
BLAKE2b-256 a536232f38ba7a8661e54b9d95ed50c3f818c37bd8083ad9200b4ee59369aa8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphsignal-0.19.6-py3-none-any.whl
  • Upload date:
  • Size: 172.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.20 Linux/6.14.0-1017-azure

File hashes

Hashes for graphsignal-0.19.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a5fecb973d13b8ec89a9f8b2bc63ed8708fee2fc7e200c3b9aead54e1193d570
MD5 ef51655829cb775a2c81b28ec6867797
BLAKE2b-256 0fb0d18615cff1e27587862c9f791d2e926aafa9fb19543bdc70fc3201b49ed2

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