open-telemetry/detector-azure
最新稳定版本:0.1.0
Composer 安装命令:
composer require open-telemetry/detector-azure
包简介
The Azure package for opentelemetry-php
README 文档
README
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry Azure Resource Detectors
This package provides OpenTelemetry ResourceDetectors which will detect
resource attributes for these Azure services:
- App Service
- Container Apps
- Virtual Machines
The following OpenTelemetry resource attributes will be detected:
| Resource attribute | VM | App Service | Containers |
|---|---|---|---|
| cloud.platform | azure_vm | azure_app_service | azure_container_apps |
| cloud.provider | azure | azure | azure |
| cloud.resource.id | auto | auto | |
| cloud.region | auto | auto | |
| deployment.environment | auto | ||
| host.id | auto | auto | |
| host.name | auto | ||
| host.type | auto | ||
| os.type | auto | ||
| os.version | auto | ||
| azure.vm.scaleset.name | auto | ||
| azure.vm.sku | auto | ||
| service.name | auto | auto | |
| service.version | auto | ||
| service.instance.id | auto | auto | |
| azure.app.service.stamp | auto |
Requirements
- OpenTelemetry SDK
Installation via composer
$ composer require open-telemetry/detector-azure
Usage
The detector will be automatically registered as part of composer autoloading.
By default, all built-in and registered custom resource detectors are used, and will be added to the default resources associated with traces, metrics, and logs.
You can also provide a list of detectors via the OTEL_PHP_DETECTORS config (environment variable or php.ini setting):
putenv('OTEL_PHP_DETECTORS=azure,env,os,<others>') var_dump(ResourceInfoFactory::defaultResource());
统计信息
- 总下载量: 1.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-04-22