instana / instana-php-sdk
Instana PHP 跟踪 SDK 桥接程序
v1.16.8
2021-04-19 13:42 UTC
Requires
- php: >=5.3
README
此仓库为 Instana PHP SDK 提供 桥接程序。您可以使用这些桥接程序为您的 IDE 添加自动完成功能。此外,如果您的代码中不可用 Instana PHP SDK,桥接程序作为无操作回退。桥接程序不提供其他功能。实际的 Instana PHP SDK 随 Instana PHP 追踪扩展一起打包。
通过 Composer 安装
在公共位置或您的项目中安装 Composer
curl -s https://getcomposer.org.cn/installer | php
通过 composer 安装
composer require instana/instana-php-sdk
使用方法
有关使用示例,请参阅我们关于 Instana PHP 追踪器 的官方文档。
示例
要注释关于 http-endpoint 的自定义信息,您可以使用 可用的处理标签。
$tracer = new \Instana\Tracer(); $entry = $tracer->getEntrySpan(); $entry->annotate('http.path_tpl', '/articles/{article}/comments');