Skip to content

[NET-1093] feat: Add TTFT and RTTFT to LLM spans - #133

Open
Nithish-KV wants to merge 20 commits into
devfrom
feat/ttft-and-rttft
Open

[NET-1093] feat: Add TTFT and RTTFT to LLM spans#133
Nithish-KV wants to merge 20 commits into
devfrom
feat/ttft-and-rttft

Conversation

@Nithish-KV

@Nithish-KV Nithish-KV commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Changes

  • feat: Add time_to_first_token and relative_time_to_first_token for llm call spans.

Jira

NET-1093

AkhileshNair2201 and others added 20 commits August 3, 2026 18:53
* feat: add opt-in TTL caching for getPrompt

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: downgrade vitest for Node 18 and tighten cache tests

Use Vitest 3.x so dev test runs align with engines.node >=18, and add
getPrompt cacheTtl integration coverage plus shutdown re-init behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
* feat: add opt-in TTL caching for getPrompt

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: downgrade vitest for Node 18 and tighten cache tests

Use Vitest 3.x so dev test runs align with engines.node >=18, and add
getPrompt cacheTtl integration coverage plus shutdown re-init behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(models): add getModelPricing with opt-in TTL cache

* test(models): cover getModelPricing HTTP client failure paths

Co-authored-by: Cursor <cursoragent@cursor.com>

* NET-1329 simplify cache TTL to module const and per-call override (#112)

* NET-1329 simplify cache TTL to module const and per-call override

Co-authored-by: Cursor <cursoragent@cursor.com>

* test: cover prompt default TTL and drop removed cacheTtlSeconds

Assert PROMPT_CACHE_TTL_SECONDS expiry when cacheTtl is omitted, and stop passing the removed Config option in models client tests.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: document Models API and expand caching changelog

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
* feat: add opt-in TTL caching for getPrompt

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: downgrade vitest for Node 18 and tighten cache tests

Use Vitest 3.x so dev test runs align with engines.node >=18, and add
getPrompt cacheTtl integration coverage plus shutdown re-init behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(models): add getModelPricing with opt-in TTL cache

* test(models): cover getModelPricing HTTP client failure paths

Co-authored-by: Cursor <cursoragent@cursor.com>

* NET-1329 simplify cache TTL to module const and per-call override (#112)

* NET-1329 simplify cache TTL to module const and per-call override

Co-authored-by: Cursor <cursoragent@cursor.com>

* test: cover prompt default TTL and drop removed cacheTtlSeconds

Assert PROMPT_CACHE_TTL_SECONDS expiry when cacheTtl is omitted, and stop passing the removed Config option in models client tests.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: document Models API and expand caching changelog

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat: session details implementation

* feat: session details implementation- pr comments fixes

* feat: session details implementation- pr comments fixes 2
@akash-vijay-kv
akash-vijay-kv force-pushed the dev branch 2 times, most recently from 7779886 to c37f3f1 Compare August 23, 2026 15:54
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.

4 participants