Skip to content

Refactor SpanMetadata.allTest from array to single SpanType value#276

Merged
ypopovych merged 1 commit into
mainfrom
span-metadata-alltest-refactor
Jun 8, 2026
Merged

Refactor SpanMetadata.allTest from array to single SpanType value#276
ypopovych merged 1 commit into
mainfrom
span-metadata-alltest-refactor

Conversation

@ypopovych

@ypopovych ypopovych commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Changes SpanType.allTest from [Self] (array of 4 types) to a single Self value "test_levels"
  • Replaces loops over all test span types with a single subscript call using the new .allTest span type
  • Simplifies tag assignment in SpanMetadata initializer and test assertions in EnvironmentTests

Test plan

  • Existing EnvironmentTests cover the affected code paths — run xcodebuild test to verify

🤖 Generated with Claude Code

Replace the loop over `SpanType.allTest: [Self]` with a single `"test_levels"` span type, allowing tag assignment to all test levels in one call instead of iterating over four types.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@ypopovych
ypopovych requested review from a team as code owners June 5, 2026 16:13
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Jun 8, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 5 Pipeline jobs failed

Integration Tests | Xcode_26.2 / macOS   View in Datadog   GitHub Actions

Integration Tests | Xcode_26.2 / watchOSsim   View in Datadog   GitHub Actions

Integration Tests | Xcode_26.4 / iOSsim   View in Datadog   GitHub Actions

View all 5 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4987dd6 | Docs | Datadog PR Page | Give us feedback!

@ypopovych
ypopovych merged commit 2cc3e85 into main Jun 8, 2026
22 of 32 checks passed
@ypopovych
ypopovych deleted the span-metadata-alltest-refactor branch June 8, 2026 13:23
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