Consider Separate flow for Spans Events

Open
#1,954 1 comment 0 reactions 1 assignee View on GitHub

@Litarnus is already working on this.

Since Nov 4, 2025.

Assessment

This issue has not been assessed yet.

Description

PHP Spans Task

Instead of using applyToEvent for every type, we can split them by type.

This would help in a few ways:

  • More clarity what each type does and what data it needs
  • Prevents that data is accidentally attached to wrong types (e.g. tags on logs)
  • We could have different Event types with their own data instead of one big class with the union of all fields
  • (theoretical) performance gains by reducing the number of type checks and data copy operations
Dominant language
PHP
Stars
1.9k
Forks
474
Avg merge
2d 3h
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-php

All issues in getsentry/sentry-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.