定制 google/cloud-error-reporting 二次开发

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

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

google/cloud-error-reporting

最新稳定版本:v0.25.1

Composer 安装命令:

composer require google/cloud-error-reporting

包简介

Stackdriver Error Reporting Client for PHP

README 文档

README

Idiomatic PHP client for Stackdriver Error Reporting.

Latest Stable Version Packagist

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project.

Stackdriver Error Reporting counts, analyzes and aggregates the crashes in your running cloud services.

Installation

To begin, install the preferred dependency manager for PHP, Composer.

Now install this component:

$ composer require google/cloud-error-reporting

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods) please see our gRPC installation guide.

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests.

Sample

use Google\ApiCore\ApiException;
use Google\Cloud\ErrorReporting\V1beta1\Client\ErrorGroupServiceClient;
use Google\Cloud\ErrorReporting\V1beta1\ErrorGroup;
use Google\Cloud\ErrorReporting\V1beta1\GetGroupRequest;

// Create a client.
$errorGroupServiceClient = new ErrorGroupServiceClient();

// Prepare the request message.
$request = (new GetGroupRequest())
    ->setGroupName($formattedGroupName);

// Call the API and handle any network failures.
try {
    /** @var ErrorGroup $response */
    $response = $errorGroupServiceClient->getGroup($request);
    printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
    printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}

Debugging

Please see our Debugging guide for more information about the debugging tools.

Version

This component is considered beta. As such, it should be expected to be mostly stable and we're working towards a release candidate. We will address issues and requests with a higher priority.

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

统计信息

  • 总下载量: 4M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 1
  • 依赖项目数: 24
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 51
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-03-10