Skip to content

Extend existing KV test with instrumentation assertions#4356

Merged
fhanau merged 5 commits intomainfrom
jmorrell/kv-instrumentation-1
Jun 18, 2025
Merged

Extend existing KV test with instrumentation assertions#4356
fhanau merged 5 commits intomainfrom
jmorrell/kv-instrumentation-1

Conversation

@jmorrell-cloudflare
Copy link
Contributor

@jmorrell-cloudflare jmorrell-cloudflare commented Jun 17, 2025

This sets up a streaming tail worker for the existing KV tests, and then asserts against the telemetry that they emit today. Copies the approach in the tail worker tests.

There is no KV implementation in workerd so the existing KV tests mock each response. I could duplicate this logic into a separate test file to not disturb the existing tests, but thought that keeping everything together makes sense. As we extend the instrumentation logic this will likely encourage us to improve the coverage in the existing tests.

@jmorrell-cloudflare jmorrell-cloudflare requested review from a team as code owners June 17, 2025 00:04
@jmorrell-cloudflare jmorrell-cloudflare force-pushed the jmorrell/kv-instrumentation-1 branch from fa71e49 to e9105ae Compare June 17, 2025 00:04
@jmorrell-cloudflare jmorrell-cloudflare force-pushed the jmorrell/kv-instrumentation-1 branch from ad3dd54 to 935bdfa Compare June 17, 2025 20:24
@fhanau fhanau merged commit bfe553b into main Jun 18, 2025
20 of 25 checks passed
@fhanau fhanau deleted the jmorrell/kv-instrumentation-1 branch June 18, 2025 00:37
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