Skip to content

Commit

Permalink
Allow defining which context data to be added to timeline entries
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesvdvreken committed Jan 7, 2015
1 parent f464d8c commit 5c8f11f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/DebugbarSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ public function onError(ErrorEvent $event)
}
}

/**
* Set the keys to be used when adding context to a time-line entry.
*
* @param array $contextKeys
*/
public function setContextKeys(array $contextKeys)
{
$this->context = $contextKeys;
}

/**
* Start a measurement for a request.
*
Expand Down

0 comments on commit 5c8f11f

Please sign in to comment.