Skip to content

Add auto-discovery of popular PHP frameworks #1355

@vladanpaunovic

Description

@vladanpaunovic

Problem Statement

I would like to know which PHP frameworks are people using with our sentry/sdk so we can make a better informed decisions on which frameworks to support more and when.

We already have a modules integration which is opt in and very few people know about it, hence few of them are actually using it. So the information we get from there are not sufficient enough to drive any meaningful decisions.

Solution Brainstorm

  1. create a list of top 10 php frameworks
  2. on sentry.init() check whether users framework is in one of top 10
    • ideally, we should find alternative/better methods to discover a framework and fallback to composer.json as a last resort in order to minimise the impact on customers overhead.
  3. utilise the same modules object on event payload to store the framework like:
'modules' => [
  'some/framework' => '1.2.3', // if version is unknown to us, use unknown
  ...
]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions