Skip to content

test(tailsampling): the shared snowplow upstream case in #1322's real span shape - #174

Merged
braghettos merged 1 commit into
mainfrom
test/tailsampling-shared-upstream-real-shape
Nov 15, 2026
Merged

braghettos merged 1 commit into
mainfrom
test/tailsampling-shared-upstream-real-shape

Conversation

@braghettos

Copy link
Copy Markdown
Collaborator

snowplow sent the span shape from PR #1322's unit test, which uses an in-memory exporter with one starter and two joiners:

  • The marker snowplow.upstream.joiners (int, present only when > 0) sits on the shared request's CLIENT span. That span is a child inside the starter's trace, not its root.
  • A joiner is an internal span whose only tie to the shared request is an attribute-less span link.

tests/tailsampling-docker.py now builds exactly that shape: a server root GET /call, and a client child HTTP GET with the same HTTP attributes plus the marker. The test also asserts the trace is kept whole, root included, not just the marked child. The joiner case is an internal span with a link and stays sampled.

This is test-only; the 0.1.13 rule already matches on any span of the trace, so no chart changes. All cases pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N8HNbDgLwRKg9uhTx5o6pn

… span shape

snowplow sent the span shape from PR #1322's in-memory-exporter test: the marker
snowplow.upstream.joiners sits on the shared request's CLIENT span, a child inside the
starter's trace, and a joiner is an internal span tied to it only by an attribute-less
link. The test now uses that shape (kind client, child of a server root, the same
attributes) and asserts the trace is kept whole, root included, not just the child.
Test-only; no chart change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N8HNbDgLwRKg9uhTx5o6pn
@braghettos
braghettos merged commit 80d093e into main Nov 15, 2026
14 checks passed
@braghettos
braghettos deleted the test/tailsampling-shared-upstream-real-shape branch November 15, 2026 16:53
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