NoiseByNorthwest / php-spx

A simple & straight-to-the-point PHP profiling extension with its built-in web UI
GNU General Public License v3.0
2.14k stars 83 forks source link

Add metadata to custom spans #125

Open NoiseByNorthwest opened 4 years ago

NoiseByNorthwest commented 4 years ago

Since #110 it is possible to define the profiled spans at runtime through 2 dedicated functions.

These custom spans are however hard to identify on UI side (i.e. report list) since many of them can have mostly the same process level metadata, especially the full command line.

So we may rethink the profile report metadata structure and make possible, when starting a new profiled span, to inject some metadata to easily identify this span on report UI side.