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.
  • Inference telemetry for AI agents to identify bottlenecks and drive targeted improvements 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.

Optimize with AI

Install the Graphsignal skill to let your AI coding agent (Cursor, Claude Code, Codex, or Gemini) fetch and analyze signal context directly from your IDE. See AI Optimization 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.9.tar.gz (168.7 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.9-py3-none-any.whl (177.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphsignal-0.19.9.tar.gz
  • Upload date:
  • Size: 168.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.10.20 Linux/6.17.0-1010-azure

File hashes

Hashes for graphsignal-0.19.9.tar.gz
Algorithm Hash digest
SHA256 74d4c639b2ad7fc6013af59e012fcaff87ed6a3db69f3c23098ebc2bbeec8d99
MD5 bc5fea12d58bf702f07acbff4102a1d5
BLAKE2b-256 ce383629739661992fe6af4ec2265ee38f3120863341c65db6287298b6872dbc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for graphsignal-0.19.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9a355db5a69c20279fc00ee6cb133323b07b6c9e044f0787a73bb773ad0f181e
MD5 e45db0f4efc3102af19282620ebe62b6
BLAKE2b-256 467226fd913a3b9b67dcba80a682985da3c9926e637379d1ef04bb99658f311c

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