Skip to content

add commands that call the inspector API #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tacman opened this issue Feb 7, 2025 · 0 comments
Open

add commands that call the inspector API #57

tacman opened this issue Feb 7, 2025 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Feb 7, 2025

I'd like to be able to configure inspector without using the UI. So I can envision something like

symfony new MyTestProject --webapp && cd MyTestProject
composer require inspector-apm/inspector-bundle # my preferred name!
bin/console inspector:create 

At this point, the message is something like

Add the following environment variable
INSPECTOR_INGEST_KEY=abcd
INSPECTOR_APP_ID=4567

now I should be able to also run

bin/console inspector:stop
bin/console inspector:start
bin/console inspector:transactions

create is the hardest one, because it requires an account api key. I do something similar with https://packagist.org/packages/survos/bunny-bundle, where each zone has it's own keys, but you need a master key to create zones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant