Skip to content

Commit

Permalink
core-4452 refactored to Service
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed Jul 25, 2018
1 parent 1ead337 commit dab7668
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace Spryker\Shared\MonitoringExtension;
namespace Spryker\Service\MonitoringExtension\Dependency\Plugin;

interface MonitoringInterface
interface MonitoringExtensionPluginInterface
{
/**
* @api
*
* @param string $message
* @param \Exception|\Throwable $exception
*
Expand All @@ -20,6 +22,8 @@ public function setError(string $message, $exception): void;
/**
* Sets the name of the application, the current store and the environment.
*
* @api
*
* @param string|null $application
* @param string|null $store
* @param string|null $environment
Expand All @@ -31,6 +35,8 @@ public function setApplicationName(?string $application = null, ?string $store =
/**
* Name of the transaction (e.g. module/controller/action).
*
* @api
*
* @param string $name
*
* @return void
Expand All @@ -40,6 +46,8 @@ public function setTransactionName(string $name): void;
/**
* Start recording of the current transaction.
*
* @api
*
* @return void
*/
public function markStartTransaction(): void;
Expand All @@ -48,6 +56,8 @@ public function markStartTransaction(): void;
* Stop recording the web transaction. This can be used to exclude time consuming operations that happen after
* the request is completed.
*
* @api
*
* @return void
*/
public function markEndOfTransaction(): void;
Expand All @@ -56,18 +66,24 @@ public function markEndOfTransaction(): void;
* Do not generate metrics for this transaction. This can be used for operations that are not relevant for the
* statistics (e.g. to exclude the load balancer heartbeat check or very time consuming operations).
*
* @api
*
* @return void
*/
public function markIgnoreTransaction(): void;

/**
* Marks this transaction as a console command (e.g. for cronjobs)
*
* @api
*
* @return void
*/
public function markAsConsoleCommand(): void;

/**
* @api
*
* @param string $key
* @param mixed $value
*
Expand All @@ -76,6 +92,8 @@ public function markAsConsoleCommand(): void;
public function addCustomParameter(string $key, $value): void;

/**
* @api
*
* @param string $tracer classname::function_name.
*
* @return void
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit dab7668

Please sign in to comment.