sentry-php icon indicating copy to clipboard operation
sentry-php copied to clipboard

Consider Separate flow for Spans Events

Open Litarnus opened this issue 1 month ago • 1 comments

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

Litarnus avatar Nov 04 '25 13:11 Litarnus

PHP-46

linear[bot] avatar Nov 04 '25 13:11 linear[bot]