Skip to content

[PROF-13798] Add quota-exceeded to profiling error_reason#382

Draft
thomasbertet wants to merge 1 commit into
masterfrom
thomas.bertet/PROF-13798-quota-exceeded-error-reason
Draft

[PROF-13798] Add quota-exceeded to profiling error_reason#382
thomasbertet wants to merge 1 commit into
masterfrom
thomas.bertet/PROF-13798-quota-exceeded-error-reason

Conversation

@thomasbertet
Copy link
Copy Markdown
Contributor

@thomasbertet thomasbertet commented Apr 22, 2026

Motivation

The browser profiler SDK now stops profiling when the quota admission API returns HTTP 429, and sets _dd.profiling.error_reason: 'quota-exceeded' on RUM events.

Related SDK PR: DataDog/browser-sdk#4514
Ticket: PROF-13798

Changes

  • schemas/rum/_profiling-internal-context-schema.json: adds quota-exceeded to the error_reason enum; updates the description to clarify that error_reason can also be set when status === 'stopped' (not only error).
  • lib/cjs/generated/rum.d.ts, lib/esm/generated/rum.d.ts: regenerated — error_reason union now includes 'quota-exceeded'.

Follow-up in browser-sdk

Once this PR is merged, browser-sdk needs yarn json-schemas:sync to pull in the updated types.

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.

1 participant