-
Notifications
You must be signed in to change notification settings - Fork 522
backwards compat: track_agent, end_all_sessions #847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Teo <teocns@gmail.com>
1a5b523 to
57b9104
Compare
dot-agi
pushed a commit
that referenced
this pull request
Mar 15, 2025
Signed-off-by: Teo <teocns@gmail.com>
teocns
added a commit
that referenced
this pull request
Mar 15, 2025
* show session url on init * fix: pass tags to start_session when auto-starting sessions Co-Authored-By: Constantin-Doru Teodorescu <teo@agentops.ai> * backwards compat: track_agent, end_all_sessions (#847) Signed-off-by: Teo <teocns@gmail.com> * Client.init() | auto_start_session | forward tags Signed-off-by: Teo <teocns@gmail.com> * client: recreate Config on init() Signed-off-by: Teo <teocns@gmail.com> * mock_req: /v3/auth/token to return { project_id, token, api_key } Signed-off-by: Teo <teocns@gmail.com> * cleanup dirty files Signed-off-by: Teo <teocns@gmail.com> * Isolate telemetry setup (`setup_telemetry`) Signed-off-by: Teo <teocns@gmail.com> * core shutdown: remove redundant initialized check Signed-off-by: Teo <teocns@gmail.com> * Simplify core shutdown (flush SynchronousSpanProcessor instead of iterating processors) Signed-off-by: Teo <teocns@gmail.com> * Improved TracingCore Config Signed-off-by: Teo <teocns@gmail.com> * tests: couple instrumentation tester with TracingCore's lifecycle Signed-off-by: Teo <teocns@gmail.com> * Base for test_session_legacy Signed-off-by: Teo <teocns@gmail.com> * uv lock Signed-off-by: Teo <teocns@gmail.com> * tests/benchmark/benchmark_init.py Signed-off-by: Teo <teocns@gmail.com> * Remove deprecated SDK tests - favor test_decorators Signed-off-by: Teo <teocns@gmail.com> * update `openai` dep and `uv.lock` file * fix: pass tags to start_session when auto-starting sessions Co-Authored-By: Constantin-Doru Teodorescu <teo@agentops.ai> * forgot `{` in `start_session` * remove `getattr` * fix for recursion and passing `default_tags` * client: recreate Config on init() Signed-off-by: Teo <teocns@gmail.com> * cleanup dirty files Signed-off-by: Teo <teocns@gmail.com> * Simplify core shutdown (flush SynchronousSpanProcessor instead of iterating processors) Signed-off-by: Teo <teocns@gmail.com> --------- Signed-off-by: Teo <teocns@gmail.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Constantin-Doru Teodorescu <teo@agentops.ai> Co-authored-by: teocns <59549574+teocns@users.noreply.github.com> Co-authored-by: Teo <teocns@gmail.com>
teocns
added a commit
that referenced
this pull request
Mar 17, 2025
* 0.4.4
Signed-off-by: Teo <teocns@gmail.com>
* Client.init() | auto_start_session | forward tags
Signed-off-by: Teo <teocns@gmail.com>
* client: recreate Config on init()
Signed-off-by: Teo <teocns@gmail.com>
* mock_req: /v3/auth/token to return { project_id, token, api_key }
Signed-off-by: Teo <teocns@gmail.com>
* cleanup dirty files
Signed-off-by: Teo <teocns@gmail.com>
* Isolate telemetry setup (`setup_telemetry`)
Signed-off-by: Teo <teocns@gmail.com>
* core shutdown: remove redundant initialized check
Signed-off-by: Teo <teocns@gmail.com>
* Simplify core shutdown (flush SynchronousSpanProcessor instead of iterating processors)
Signed-off-by: Teo <teocns@gmail.com>
* Improved TracingCore Config
Signed-off-by: Teo <teocns@gmail.com>
* tests: couple instrumentation tester with TracingCore's lifecycle
Signed-off-by: Teo <teocns@gmail.com>
* Base for test_session_legacy
Signed-off-by: Teo <teocns@gmail.com>
* uv lock
Signed-off-by: Teo <teocns@gmail.com>
* tests/benchmark/benchmark_init.py
Signed-off-by: Teo <teocns@gmail.com>
* Remove deprecated SDK tests - favor test_decorators
Signed-off-by: Teo <teocns@gmail.com>
* update `openai` dep and `uv.lock` file
* fix: display session url when using `agentops.init` (#856)
* show session url on init
* fix: pass tags to start_session when auto-starting sessions
Co-Authored-By: Constantin-Doru Teodorescu <teo@agentops.ai>
* backwards compat: track_agent, end_all_sessions (#847)
Signed-off-by: Teo <teocns@gmail.com>
* Client.init() | auto_start_session | forward tags
Signed-off-by: Teo <teocns@gmail.com>
* client: recreate Config on init()
Signed-off-by: Teo <teocns@gmail.com>
* mock_req: /v3/auth/token to return { project_id, token, api_key }
Signed-off-by: Teo <teocns@gmail.com>
* cleanup dirty files
Signed-off-by: Teo <teocns@gmail.com>
* Isolate telemetry setup (`setup_telemetry`)
Signed-off-by: Teo <teocns@gmail.com>
* core shutdown: remove redundant initialized check
Signed-off-by: Teo <teocns@gmail.com>
* Simplify core shutdown (flush SynchronousSpanProcessor instead of iterating processors)
Signed-off-by: Teo <teocns@gmail.com>
* Improved TracingCore Config
Signed-off-by: Teo <teocns@gmail.com>
* tests: couple instrumentation tester with TracingCore's lifecycle
Signed-off-by: Teo <teocns@gmail.com>
* Base for test_session_legacy
Signed-off-by: Teo <teocns@gmail.com>
* uv lock
Signed-off-by: Teo <teocns@gmail.com>
* tests/benchmark/benchmark_init.py
Signed-off-by: Teo <teocns@gmail.com>
* Remove deprecated SDK tests - favor test_decorators
Signed-off-by: Teo <teocns@gmail.com>
* update `openai` dep and `uv.lock` file
* fix: pass tags to start_session when auto-starting sessions
Co-Authored-By: Constantin-Doru Teodorescu <teo@agentops.ai>
* forgot `{` in `start_session`
* remove `getattr`
* fix for recursion and passing `default_tags`
* client: recreate Config on init()
Signed-off-by: Teo <teocns@gmail.com>
* cleanup dirty files
Signed-off-by: Teo <teocns@gmail.com>
* Simplify core shutdown (flush SynchronousSpanProcessor instead of iterating processors)
Signed-off-by: Teo <teocns@gmail.com>
---------
Signed-off-by: Teo <teocns@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Constantin-Doru Teodorescu <teo@agentops.ai>
Co-authored-by: teocns <59549574+teocns@users.noreply.github.com>
Co-authored-by: Teo <teocns@gmail.com>
* `auto_start_session` must be `False` by default
* Legacy session support on `end_session`. Backwards-compatible `record` event.
* CrewAI compat tests. track_tool decorator for compat.
* Use valid type.
* I don't think Event ever passed type checks.
* Type checking runs clean. Fix import.
* Auto start sessions.
* track_agent noop should be a decorator
* Handle trace lifecycle in legacy with backwards
compatibility for Crew 105 and Crew < 105.
* drop session export delay to one second and expose it as a public configuration parameter.
* Clean up docstrings in legacy
* type checking
* agentops.config: dataclass -slots | compat 3.9
Signed-off-by: Teo <teocns@gmail.com>
* deps: py3.9 backward compat | constraints | resolver
Signed-off-by: Teo <teocns@gmail.com>
---------
Signed-off-by: Teo <teocns@gmail.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Constantin-Doru Teodorescu <teo@agentops.ai>
Co-authored-by: Travis Dent <tcdent@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.