定制 vanta/temporal-sentry 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vanta/temporal-sentry

最新稳定版本:0.2

Composer 安装命令:

composer require vanta/temporal-sentry

包简介

Integration temporal with sentry

README 文档

README

Temporal is the simple, scalable open source way to write and run reliable cloud applications.

Introduction

Sentry SDK for temporalio/sdk-php

Installation

composer require vanta/temporal-sentry

Usage

<?php

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;

require_once __DIR__ . '/vendor/autoload.php';

init(['dsn' => 'https://1a36864711324ed8a04ba0fa2c89ac5a@sentry.temporal.local/52']);

$hub     = SentrySdk::getCurrentHub();
$client  = $hub->getClient() ?? throw new \RuntimeException('Not Found client');
$factory = WorkerFactory::create();

$worker = $factory->newWorker(
    interceptorProvider: new SimplePipelineProvider([
        new SentryActivityInboundInterceptor($hub, $client->getStacktraceBuilder()),
        new SentryWorkflowOutboundCallsInterceptor($hub, $client->getStacktraceBuilder()),
    ])
);

统计信息

  • 总下载量: 21.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-21