{"id":13738410,"url":"https://github.com/graphsignal/graphsignal-python","last_synced_at":"2025-04-05T16:03:23.925Z","repository":{"id":41962075,"uuid":"357616470","full_name":"graphsignal/graphsignal-python","owner":"graphsignal","description":"Graphsignal Tracer for Python","archived":false,"fork":false,"pushed_at":"2024-08-16T09:36:45.000Z","size":1321,"stargazers_count":201,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T17:13:36.282Z","etag":null,"topics":["ai-agents","artificial-intelligence","debugging","deep-learning","huggingface","inference","langchain","langchain-python","llama-index","machine-learning","monitoring","observability","openai-api","python","pytorch","tracer"],"latest_commit_sha":null,"homepage":"https://graphsignal.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphsignal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-13T16:16:37.000Z","updated_at":"2024-10-04T11:41:00.000Z","dependencies_parsed_at":"2023-12-15T14:05:43.284Z","dependency_job_id":"b30efc0b-e755-4ab5-a8de-51171078ec51","html_url":"https://github.com/graphsignal/graphsignal-python","commit_stats":{"total_commits":179,"total_committers":2,"mean_commits":89.5,"dds":0.05027932960893855,"last_synced_commit":"d008cffa2c6d886e4b321c1844147f5d7cefe209"},"previous_names":["graphsignal/graphsignal"],"tags_count":158,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphsignal%2Fgraphsignal-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphsignal%2Fgraphsignal-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphsignal%2Fgraphsignal-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphsignal%2Fgraphsignal-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphsignal","download_url":"https://codeload.github.com/graphsignal/graphsignal-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361600,"owners_count":20926641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","artificial-intelligence","debugging","deep-learning","huggingface","inference","langchain","langchain-python","llama-index","machine-learning","monitoring","observability","openai-api","python","pytorch","tracer"],"created_at":"2024-08-03T03:02:21.631Z","updated_at":"2025-04-05T16:03:23.899Z","avatar_url":"https://github.com/graphsignal.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Graphsignal: AI Optimization Platform\n\n[![License](http://img.shields.io/github/license/graphsignal/graphsignal-python)](https://github.com/graphsignal/graphsignal-python/blob/main/LICENSE)\n[![Version](https://img.shields.io/github/v/tag/graphsignal/graphsignal-python?label=version)](https://github.com/graphsignal/graphsignal-python)\n\n\nGraphsignal is an AI optimization platform, enabling developers to achieve faster, more efficient models and applications. With Graphsignal, developers can:\n\n* Identify and optimize the most significant contributors to latency.\n* Analyze model API costs for deployments, models, sessions, or any custom tags.\n* Ensure optimal inference performance and model configuration for hosted models.\n* Track errors and monitor APIs, compute, and GPU utilization.\n\n\n[![Dashboards](https://graphsignal.com/external/screenshot-dashboard.png)](https://graphsignal.com/)\n\nLearn more at [graphsignal.com](https://graphsignal.com).\n\n\n## Install\n\nInstall the Graphsignal library.\n\n```bash\npip install --upgrade graphsignal\n```\n\n\n## Configure\n\nConfigure Graphsignal tracer by specifying your API key directly or via `GRAPHSIGNAL_API_KEY` environment variable.\n\n```python\nimport graphsignal\n\ngraphsignal.configure(api_key='my-api-key')\n# or pass the API key in GRAPHSIGNAL_API_KEY environment variable\n```\n\nSee [`configure()`](https://graphsignal.com/docs/reference/python-api/#graphsignalconfigure) API docs for all configuration parameters.\n\n\nTo get an API key, sign up for a free account at [graphsignal.com](https://graphsignal.com). The key can then be found in your account's [Settings / API Keys](https://app.graphsignal.com/settings/api-keys) page.\n\nAlternatively, you can add Graphsignal tracer from the command line, when running your module or script. Environment variables `GRAPHSIGNAL_API_KEY` and `GRAPHSIGNAL_DEPLOYMENT` must be set.\n\n```bash\npython -m graphsignal \u003cscript\u003e\n```\n\n```bash\npython -m graphsignal -m \u003cmodule\u003e\n```\n\n\n## Integrate\n\nGraphsignal **auto-instruments** and traces libraries and frameworks, such as [OpenAI](https://graphsignal.com/docs/integrations/openai/) and [LangChain](https://graphsignal.com/docs/integrations/langchain/). Traces, errors, and data, such as prompts and completions, are automatically recorded and available for analysis at [app.graphsignal.com](https://app.graphsignal.com/).\n\nRefer to the guides below for detailed information on:\n\n* [Manual Tracing](https://graphsignal.com/docs/guides/manual-tracing/)\n* [Inference Profiling](https://graphsignal.com/docs/guides/inference-profiling/)\n* [Session Tracking](https://graphsignal.com/docs/guides/session-tracking/)\n* [Cost and Usage Monitoring](https://graphsignal.com/docs/guides/cost-and-usage-monitoring/)\n* [Scores and Feedback](https://graphsignal.com/docs/guides/scores-and-feedback/)\n\nSee [API reference](https://graphsignal.com/docs/reference/python-api/) for full documentation.\n\nIntegration examples are available in [examples](https://github.com/graphsignal/examples) repository.\n\n\n## Analyze\n\n[Log in](https://app.graphsignal.com/) to Graphsignal to monitor and analyze your application.\n\n\n## Overhead\n\nGraphsignal tracer is highly lightweight. The overhead per trace is measured to be less than 100 microseconds.\n\n\n## Security and Privacy\n\nThe Graphsignal tracer only establishes outbound connections to `api.graphsignal.com` to send data; inbound connections or commands are not possible.\n\nPayloads, such as prompts and completions, are recorded by default in case of automatic tracing. To disable, set `record_payloads=False` in `graphsignal.configure`.\n\n\n## Troubleshooting\n\nTo 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.\n\nIn case of connection issues, please make sure outgoing connections to `https://api.graphsignal.com` are allowed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphsignal%2Fgraphsignal-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphsignal%2Fgraphsignal-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphsignal%2Fgraphsignal-python/lists"}