PHP code example of vanta / temporal-sentry

1. Go to this page and download the library: Download vanta/temporal-sentry library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vanta / temporal-sentry example snippets




declare(strict_types=1);

use Sentry\SentrySdk;
use Temporal\Interceptor\SimplePipelineProvider;
use Temporal\WorkerFactory;
use Vanta\Integration\Temporal\Sentry\SentryActivityInboundInterceptor;
use Vanta\Integration\Temporal\Sentry\SentryWorkflowOutboundCallsInterceptor;
use function Sentry\init;

plePipelineProvider([
        new SentryActivityInboundInterceptor($hub, $client->getStacktraceBuilder()),
        new SentryWorkflowOutboundCallsInterceptor($hub, $client->getStacktraceBuilder()),
    ])
);