Skip to content
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

Telescope not recording anything if APP_ENV isn't local #288

Closed
bgarrison25 opened this issue Oct 31, 2018 · 7 comments
Closed

Telescope not recording anything if APP_ENV isn't local #288

bgarrison25 opened this issue Oct 31, 2018 · 7 comments

Comments

@bgarrison25
Copy link

So I set up Telescope on production. I then went into the gate and set it up as normal. I can get to /telescope but there was nothing logged. I tried clearing all my cache etc and still nothing. I then changed my APP_ENV from production to local and now it is logging everything appropriately.

Let me know if you need anything.

@hotmeteor
Copy link

Check the register() method in your TelescopeServiceProvider. It dictates what is recorded in production.

@bgarrison25
Copy link
Author

I see. So, only exceptions / failed jobs / scheduled tasks / monitored tasks are available on production unless you edit this method. I would recommend adding to this to the documentation along with the part describing the gate method and maybe even specify the different $entry methods that are available and what they relate to.

@bgarrison25
Copy link
Author

Also a few of the default checks for non-local environments simply return "false" by default at this point...i assume thats because its beta.

@dmyers
Copy link

dmyers commented Nov 1, 2018

Also a few of the default checks for non-local environments simply return "false" by default at this point...i assume thats because its beta.

Do you mean the IncomingEntry.php file? That is a base class in which is extended by child classes that override those functions dynamically through inheritance. Ex: IncomingExceptionEntry.php

@bgarrison25
Copy link
Author

ahhhhh. I missed that. Very nifty. Still, I know documentation is in its infancy but documenting the different checks would be useful.

@themsaid themsaid closed this as completed Nov 1, 2018
@themsaid
Copy link
Member

themsaid commented Nov 1, 2018

docs in the making :) feel free to send PR to the readme though

@3bolyfci
Copy link

in .env file you can add TELESCOPE_KEY = true
and in telescopeServiceProvider in register method update this
Telescope::filter(function (IncomingEntry $entry) {
if ( $this->app->isLocal()) {
return true;
}
by this
Telescope::filter(function (IncomingEntry $entry) {
if (env('TELESCOPE_KEY', false) | $this->app->isLocal()) {
return true;
}

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

5 participants