Skip to content

Commit

Permalink
Moved "instrument" to config root level (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Jun 15, 2018
1 parent f9b3ae7 commit 8cd72e0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Changelog

## v2.0.0


## v2.0.0-beta3

### Changed

- Moved "instrument" to the root level

### Fixed

- Bug where logging deprecations did not work.

## v2.0.0-beta2

### Changed

- Add default "deployment_names"
- Updated interface variable names to match the NewRelic extension.


## v2.0.0-beta1

### Added

Expand Down
6 changes: 3 additions & 3 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public function getConfigTreeBuilder(): TreeBuilder
->end()
->end()
->scalarNode('using_symfony_cache')->defaultFalse()->end()
->booleanNode('instrument')
->defaultFalse()
->end()
->end()
->end()
->booleanNode('instrument')
->defaultFalse()
->end()
->arrayNode('monolog')
->canBeEnabled()
->fixXmlConfig('channel')
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/EkinoNewRelicExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function load(array $configs, ContainerBuilder $container): void
$container->getDefinition(ResponseListener::class)
->setArguments(
[
'$instrument' => $config['http']['instrument'],
'$instrument' => $config['instrument'],
'$symfonyCache' => $config['http']['using_symfony_cache'],
]
);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ ekino_new_relic:
twig: true # Allows you to disable twig integration (falls back to class_exists(\Twig_Environment::class))
exceptions: true # If true, sends exceptions to New Relic (default: true)
deprecations: true # If true, reports deprecations to New Relic (default: true)
instrument: false # If true, uses enhanced New Relic RUM instrumentation (see below) (default: false)
http:
enabled: true
using_symfony_cache: false # Symfony HTTP cache (see below) (default: false)
transaction_naming: route # route, controller or service (see below)
transaction_naming_service: ~ # Transaction naming service (see below)
instrument: false # If true, uses enhanced New Relic RUM instrumentation (see below) (default: false)
ignored_routes: [] # No transaction recorded for this routes
ignored_paths: [] # No transaction recorded for this paths
monolog:
Expand Down

0 comments on commit 8cd72e0

Please sign in to comment.