Skip to content

Add agent information to UserAgent#3310

Merged
xavdid-stripe merged 1 commit intomasterfrom
RUN_DEVSDK-2249
Mar 3, 2026
Merged

Add agent information to UserAgent#3310
xavdid-stripe merged 1 commit intomasterfrom
RUN_DEVSDK-2249

Conversation

@xavdid-stripe
Copy link
Member

Why?

It's becoming more common that an AI agent interacting with Stripe data on behalf of a user will write a little script before executing it. We want to be able to identify that usage, so we're adding simple telemetry around that usage.

What?

  • adds function to check the environment for agent-related keys
  • add that info, if found, to the UserAgent string and X-Stripe-Client-User-Agent dict
  • tests

See Also

@xavdid-stripe xavdid-stripe requested a review from a team as a code owner February 27, 2026 23:34
@xavdid-stripe xavdid-stripe requested review from jar-stripe and removed request for a team February 27, 2026 23:34
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) February 27, 2026 23:34
@xavdid-stripe xavdid-stripe merged commit 63ce380 into master Mar 3, 2026
9 checks passed
@xavdid-stripe xavdid-stripe deleted the RUN_DEVSDK-2249 branch March 3, 2026 20:46
xavdid-stripe added a commit that referenced this pull request Mar 10, 2026
* add .claude directory (#3307)

Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com>

* Add agent information to UserAgent (#3310)

* Add Stripe-Request-Trigger header (#3313)

* add "prepare" to justfile

* add Stripe-Request-Trigger header

* revert env var change

* add new agent keys (#3315)

* revert justfile variable change

* Bump version to 50.4.1

* tweak telemetry collection (#3316)

---------

Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.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