Skip to content

test: add telemetry header test#18

Open
ytkimirti wants to merge 1 commit intomainfrom
test/telemetry-headers
Open

test: add telemetry header test#18
ytkimirti wants to merge 1 commit intomainfrom
test/telemetry-headers

Conversation

@ytkimirti
Copy link
Copy Markdown
Contributor

Adds mocked unit tests verifying Upstash-Telemetry-* headers are sent on outbound requests and omitted when --disable-telemetry is set.

Covers the happy path (runtime/platform/sdk headers present, sdk includes
VERSION) and the disableTelemetry opt-out. Uses a fetch spy so no network
or credentials are required — runs cleanly in CI without secrets.
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