You are here

new_relic_rpm.services.yml in New Relic 2.0.x

Same filename and directory in other branches
  1. 8 new_relic_rpm.services.yml
  2. 2.x new_relic_rpm.services.yml

File

new_relic_rpm.services.yml
View source
  1. services:
  2. new_relic_rpm.exception_subscriber:
  3. class: Drupal\new_relic_rpm\EventSubscriber\ExceptionSubscriber
  4. arguments: ['@new_relic_rpm.adapter']
  5. tags:
  6. - { name: event_subscriber }
  7. new_relic_rpm.logger:
  8. class: Drupal\new_relic_rpm\Logger\NewRelicLogger
  9. arguments: ['@logger.log_message_parser', '@new_relic_rpm.adapter', '@config.factory']
  10. tags:
  11. - { name: logger }
  12. new_relic_rpm.request_subscriber:
  13. class: Drupal\new_relic_rpm\EventSubscriber\NewRelicRequestSubscriber
  14. arguments: ['@new_relic_rpm.adapter', '@path.matcher', '@config.factory', '@path.current', '@current_user']
  15. tags:
  16. - { name: event_subscriber }
  17. new_relic_rpm.router_subscriber:
  18. class: Drupal\new_relic_rpm\EventSubscriber\RoutingTransactionNameSubscriber
  19. tags:
  20. - { name: event_subscriber }
  21. new_relic_rpm.config_subscriber:
  22. class: Drupal\new_relic_rpm\EventSubscriber\NewRelicConfigSubscriber
  23. arguments: ['@new_relic_rpm.adapter', '@config.factory', '@current_user']
  24. tags:
  25. - { name: event_subscriber }
  26. newrelic.route_enhancer.transaction_name:
  27. class: Drupal\new_relic_rpm\RouteEnhancer\TransactionNameEnhancer
  28. arguments: ['@controller_resolver', '@http_kernel.controller.argument_resolver']
  29. tags:
  30. - { name: route_enhancer, priority: -500 }
  31. new_relic_rpm.adapter:
  32. class: Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface
  33. factory: Drupal\new_relic_rpm\ExtensionAdapter\AdapterFactory::getAdapter
  34. new_relic_rpm.client:
  35. class: Drupal\new_relic_rpm\Client\NewRelicApiClient
  36. arguments: ['@config.factory', '@http_client', '@serialization.json', '@logger.factory', '@string_translation']