Skip to content

Commit 885ed0b

Browse files
committed
formatting
1 parent 374e393 commit 885ed0b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

telescope.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Telescope exposes a dashboard at `/telescope`. By default, you will only be able
108108
<a name="filtering-entries"></a>
109109
### Entries
110110

111-
Telescope allows you to record filtered entries by registering a callback via the `filter` method in your `app/Providers/TelescopeServiceProvider.php` file:
111+
You may filter the data that is recorded by Telescope via the `filter` callback that is registered in your `TelescopeServiceProvider`. By default, this callback records all data in the `local` environment and exceptions, failed jobs, scheduled tasks, and data with monitored tags in all other environments:
112112

113113
/**
114114
* Register any application services.
@@ -134,7 +134,9 @@ Telescope allows you to record filtered entries by registering a callback via th
134134
<a name="filtering-batches"></a>
135135
### Batches
136136

137-
Besides filtering at the entry level, you may also filter batches (request or console application cycles) while retaining all the entries associated with the filtered batches by using the `filterBatch` method:
137+
While the `filter` callback filters data for individual entries, you may use the `filterBatch` method to register a callback that filters all data for a given request or console command. If the callback returns `true`, all of the entries are recorded by Telescope:
138+
139+
use Illuminate\Support\Collection;
138140

139141
/**
140142
* Register any application services.
@@ -145,7 +147,7 @@ Besides filtering at the entry level, you may also filter batches (request or co
145147
{
146148
$this->hideSensitiveRequestDetails();
147149

148-
Telescope::filterBatch(function ($entries) {
150+
Telescope::filterBatch(function (Collection $entries) {
149151
if ($this->app->isLocal()) {
150152
return true;
151153
}
@@ -157,4 +159,4 @@ Besides filtering at the entry level, you may also filter batches (request or co
157159
$entry->hasMonitoredTag();
158160
});
159161
});
160-
}
162+
}

0 commit comments

Comments
 (0)