Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
neeckeloo committed Jul 4, 2016
1 parent 4bc2a4b commit 1b79da4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NewRelic module for ZF2
NewRelic module for ZF3
=======================

NewRelic module provide an object-oriented PHP wrapper for [New Relic](http://newrelic.com/) monitoring service.
Expand All @@ -21,6 +21,7 @@ Requirements
------------

* PHP 5.6 or PHP 7
* Zend Framework 3

Installation
------------
Expand Down Expand Up @@ -140,7 +141,7 @@ return [
You can ignore a transaction manually by calling ```ignoreTransaction()``` method of NewRelic client.

```php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client = $container->get('NewRelic\Client');
$client->ignoreTransaction();
```

Expand All @@ -161,7 +162,7 @@ return [
You can define a transaction as background job manually by calling ```backgroundJob()``` method of NewRelic client.

```php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client = $container->get('NewRelic\Client');
$client->backgroundJob(true);
```

Expand All @@ -182,13 +183,13 @@ return [
You can ignore apdex metrics manually by calling ```ignoreApdex()``` method of NewRelic client.

```php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client = $container->get('NewRelic\Client');
$client->ignoreApdex();
```

### Add custom metric

```php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client = $container->get('NewRelic\Client');
$client->addCustomMetric('salesprice', $price);
```

0 comments on commit 1b79da4

Please sign in to comment.