You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(agent): improve package major version metric creation (#965)
Change how the package major number metrics are created. This now occurs
in R_SHUTDOWN. This allows the use of package versions from ALL sources
including the Composer API. Whenever instrumentation for a package
detects
a package, it can create a package suggestion. Initially if a version is
not
known it is fine to use PHP_PACKAGE_VERSION_UNKNOWN. If later the
instrumentation determines a version from a class constant, etc, then
the suggestion can be updated with the version.
At the end of the transaction the suggestions are iterated over and
the actual package data (which could include Composer API data) is
referenced and a major number supportability metric is created with the
best version available.
---------
Co-authored-by: Michal Nowacki <[email protected]>
0 commit comments