{"id":19175127,"url":"https://github.com/extensible-ai/extensitrace","last_synced_at":"2025-05-07T18:40:38.361Z","repository":{"id":237364545,"uuid":"772788193","full_name":"Extensible-AI/extensitrace","owner":"Extensible-AI","description":"Trace logging for Agents","archived":false,"fork":false,"pushed_at":"2024-06-09T22:47:01.000Z","size":153,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-18T19:29:00.589Z","etag":null,"topics":["llm","logging","tracing"],"latest_commit_sha":null,"homepage":"https://extensible.dev","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/Extensible-AI.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":"2024-03-15T22:45:00.000Z","updated_at":"2024-10-11T18:38:12.000Z","dependencies_parsed_at":"2024-05-01T04:24:29.638Z","dependency_job_id":"fed9097a-1e05-4294-915c-7823d5507acf","html_url":"https://github.com/Extensible-AI/extensitrace","commit_stats":null,"previous_names":["extensible-ai/extensilog"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extensible-AI%2Fextensitrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extensible-AI%2Fextensitrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extensible-AI%2Fextensitrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extensible-AI%2Fextensitrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Extensible-AI","download_url":"https://codeload.github.com/Extensible-AI/extensitrace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252935991,"owners_count":21828054,"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":["llm","logging","tracing"],"created_at":"2024-11-09T10:21:10.191Z","updated_at":"2025-05-07T18:40:38.330Z","avatar_url":"https://github.com/Extensible-AI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExtensiTrace\n### Python Package for Agent Workflow Tracking\n\nExtensiTrace allows for a simple way to track all agent actions including python functions and all openai tool calls. \n\n### Install from PyPI\n`pip install extensitrace`\n\n### Usage \n\n```python\nfrom extensitrace import ExtensiTrace\n\nclient = OpenAI() # Optional to pass in\nconnector = MongoConnector(...) # Optional connector, defaults to local\n# Logger writes to a jsonl file locally by default \net: ExtensiTrace = ExtensiTrace(connector=connector) # See constructor in extensitrace/extensitrace.py for more info\n\n# Need track=True for top level\net.log(track=True)\ndef top_level_func():\n    lower_level_func()\n    \net.log()\ndef lower_level_func():\n    pass\n```\n\n### Notes to keep in mind\n- Tracks one openai call per function\n- Streaming openai calls not captured - the tracer is meant for tracking tool calls \n- Support for Openai only right now\n- The client objects should be the same across files if it is being passed in manually\n- Singleton class, however instantiation methods across files must match, recommend creating and importing from a file (see example below)\n- If this is very useful to you and want to use it in prod I'm happy to write an async interface for log dumps\n\n\n### Recommended Setup\n\n`tracer.py`\n```python\nfrom extensitrace import ExtensiTrace\n\net: ExtensiTrace = ExtensiTrace(connector=connector) \n\n```\n\n`main.py`\n```python\nfrom tracer import et\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextensible-ai%2Fextensitrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextensible-ai%2Fextensitrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextensible-ai%2Fextensitrace/lists"}