Skip to content

fix: display session url when using agentops.init#856

Merged
teocns merged 25 commits intodevfrom
fix/session-url-init
Mar 15, 2025
Merged

fix: display session url when using agentops.init#856
teocns merged 25 commits intodevfrom
fix/session-url-init

Conversation

@dot-agi
Copy link
Member

@dot-agi dot-agi commented Mar 15, 2025

Closes #838

dot-agi and others added 22 commits March 15, 2025 04:25
Co-Authored-By: Constantin-Doru Teodorescu <teo@agentops.ai>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…rating processors)

Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Co-Authored-By: Constantin-Doru Teodorescu <teo@agentops.ai>
@dot-agi dot-agi requested a review from teocns March 15, 2025 19:55
@dot-agi dot-agi marked this pull request as ready for review March 15, 2025 19:55
@teocns
Copy link
Contributor

teocns commented Mar 15, 2025

can you rebase? the commits history is dirty due to "merge dev into feat/branch"

teocns added 3 commits March 16, 2025 01:38
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…rating processors)

Signed-off-by: Teo <teocns@gmail.com>
@dot-agi
Copy link
Member Author

dot-agi commented Mar 15, 2025

Rebased to dev

@teocns teocns merged commit 77f05a8 into dev Mar 15, 2025
2 of 3 checks passed
@teocns teocns deleted the fix/session-url-init branch March 15, 2025 20:21
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants