new_relic_rpm.services.yml in New Relic 2.0.x
File
new_relic_rpm.services.yml
View source
- services:
- new_relic_rpm.exception_subscriber:
- class: Drupal\new_relic_rpm\EventSubscriber\ExceptionSubscriber
- arguments: ['@new_relic_rpm.adapter']
- tags:
- - { name: event_subscriber }
- new_relic_rpm.logger:
- class: Drupal\new_relic_rpm\Logger\NewRelicLogger
- arguments: ['@logger.log_message_parser', '@new_relic_rpm.adapter', '@config.factory']
- tags:
- - { name: logger }
- new_relic_rpm.request_subscriber:
- class: Drupal\new_relic_rpm\EventSubscriber\NewRelicRequestSubscriber
- arguments: ['@new_relic_rpm.adapter', '@path.matcher', '@config.factory', '@path.current', '@current_user']
- tags:
- - { name: event_subscriber }
- new_relic_rpm.router_subscriber:
- class: Drupal\new_relic_rpm\EventSubscriber\RoutingTransactionNameSubscriber
- tags:
- - { name: event_subscriber }
- new_relic_rpm.config_subscriber:
- class: Drupal\new_relic_rpm\EventSubscriber\NewRelicConfigSubscriber
- arguments: ['@new_relic_rpm.adapter', '@config.factory', '@current_user']
- tags:
- - { name: event_subscriber }
- newrelic.route_enhancer.transaction_name:
- class: Drupal\new_relic_rpm\RouteEnhancer\TransactionNameEnhancer
- arguments: ['@controller_resolver', '@http_kernel.controller.argument_resolver']
- tags:
- - { name: route_enhancer, priority: -500 }
- new_relic_rpm.adapter:
- class: Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface
- factory: Drupal\new_relic_rpm\ExtensionAdapter\AdapterFactory::getAdapter
- new_relic_rpm.client:
- class: Drupal\new_relic_rpm\Client\NewRelicApiClient
- arguments: ['@config.factory', '@http_client', '@serialization.json', '@logger.factory', '@string_translation']