Skip to content

Add agent information to UserAgent#2165

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

Add agent information to UserAgent#2165
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:33
@xavdid-stripe xavdid-stripe requested review from jar-stripe and removed request for a team February 27, 2026 23:33
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) February 27, 2026 23:33
@xavdid-stripe xavdid-stripe merged commit ac1c6fd into master Mar 3, 2026
15 checks passed
@xavdid-stripe xavdid-stripe deleted the RUN_DEVSDK-2249 branch March 3, 2026 20:59
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