Skip to content

fix(llmobs/dataset): add pagination and big datasets support#4039

Merged
dd-mergequeue[bot] merged 1 commit into
mainfrom
rarguelloF/add-dataset-pagination
Oct 9, 2025
Merged

fix(llmobs/dataset): add pagination and big datasets support#4039
dd-mergequeue[bot] merged 1 commit into
mainfrom
rarguelloF/add-dataset-pagination

Conversation

@rarguelloF

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Implements pagination when pulling dataset records. This is necessary for big datasets to work.
  • Uses an alternative BulkUploadDataset endpoint for datasets >5MB
  • Increases timeouts for these specific endpoints and removes global http client timeouts

Motivation

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running ./scripts/lint.sh locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@pr-commenter

pr-commenter Bot commented Oct 8, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-10-08 15:02:08

Comparing candidate commit d03ba07 in PR branch rarguelloF/add-dataset-pagination with baseline commit 5603e37 in branch main.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 5 metrics, 0 unstable metrics.

scenario:BenchmarkConfig/scenario_WithStartSpanConfig-24

  • 🟥 execution_time [+2.252ns; +2.968ns] or [+2.326%; +3.067%]

defaultSite = "datadoghq.com"
defaultMaxRetries uint = 3

defaultTimeout time.Duration = 5 * time.Second

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want the timeouts to be configurable somehow or using only hardcoded values is acceptable ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo it's fine to leave it for now, we can make it configurable in the future

@gary-huang gary-huang left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@darccio darccio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rarguelloF

Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Oct 9, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-10-09 08:23:16 UTC ℹ️ Start processing command /merge


2025-10-09 08:23:22 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 19m (p90).


2025-10-09 08:40:24 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue
dd-mergequeue Bot merged commit a2caaee into main Oct 9, 2025
243 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the rarguelloF/add-dataset-pagination branch October 9, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants