Skip to content

chore: Add spec compliance manifest - #8413

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
junior/spec-compliance-manifest
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
junior/spec-compliance-manifest

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Adds sentry-spec-compliance.json at the repo root, following the Spec Compliance Manifest format (same shape as getsentry/sentry-cocoa's manifest).

Each section was assessed against the 3.0.1 code and tests and against the spec text in getsentry/sentry-docs@0cdaab5. A section is listed in sections only when every applicable requirement it has is met. Sections that are applicable but incomplete, or that we weren't sure about, are left out. Leaving a section out makes no claim either way. Every section version is the spec's current version.

Scope

  • Covered: 24 telemetry and foundations specs.
  • Left out:
    • The getting-started/standards and playbook specs, which cover process rather than SDK behavior.
    • graphql and http-client: no section fully passes today.
    • The deprecated user-reports and hub-and-scope specs. The Hub was removed in 3.0, and user_report was never implemented.
  • Full versions claimed: client/integrations and client/integrations/modules at 1.0.0. replays is at 1.3.0 only because every section is non-applicable to a server SDK.

Open decisions

These are judgment calls. Please confirm or flip them:

  • hooks → before-send-transaction-hook, client-reports → span-outcomes, spans → trace-lifecycle-option, profiles → tracing-context-* and v1-*: all marked non-applicable because 3.x only does span streaming and has no transactions. That's a design decision, not missing work. Still, it could be read as "applicable but unimplemented".
  • errors → startup-crash-detection: marked non-applicable (aimed at mobile/desktop SDKs with offline caches).
  • scopes → backwards-compatibility: listed, since 3.x is the major version after the Hub-to-scopes migration.
  • attributes → units and data-scrubbing → user-set-data: marked non-applicable as definition-only or pointer-only sections.
  • attachments → standard-attachments: listed, though scope attachments also ride along on check-in envelopes.
  • feedbacks → backend-platforms: left out. It only asks for docs on last_event_id(), and those docs exist in sentry-docs, but there's no feedback API.
  • Left out as unsure:
    • logs → logger-api (warning vs warn) and debug-mode
    • errors → local-variables (gated by data_collection.stack_frame_variables, not include_local_variables)
    • check-ins → capture-check-in (not exported at the top level)
    • configuration → request-body-size (never vs the spec table's none)

Notable gaps

Fixing these would let more sections be listed:

  • Overflow drop reason: batcher drops use queue_overflow instead of buffer_overflow. Affects logs, metrics, spans and client-reports.
  • User data: data_collection.user_info=False also drops user data set explicitly via set_user(). Affects logs, metrics, spans and data-collection.
  • Scope forking: starting a span doesn't fork the current scope.
  • Breadcrumb order: breadcrumbs are sorted by timestamp, not kept in insertion order.
  • Log envelopes: they can hold more than 100 logs.
  • Ingest settings: ingest_settings is missing from log, metric and span envelope items.
  • Sampled flag: it isn't propagated outside an active span. With tracing off, an incoming -1 still creates and sends spans.

via @sentrivana.

--

View Session [Sentry]

Co-Authored-By: Ivana Kellyer <131587164+sentrivana@users.noreply.github.com>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 43e88f8.

The model rated this change low. It was raised to medium because:

  • R3: a changed path is not covered by the repository's fact sheet: sentry-spec-compliance.json
  • R7: the model was not confident enough that the change is low

This label is a hint for reviewers, not an approval.

@sentry-junior
sentry-junior Bot requested a review from sentrivana November 26, 2026 12:21
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 59457 passed | ⏭️ 3119 skipped | Total: 62576 | Pass Rate: 95.02% | Execution Time: 161m 37s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests —
Failed Tests —
Skipped Tests —

✨ Test counts unchanged from base.

All tests are passing successfully.

✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 90.12%.


Generated by Coverage Action

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant