{"id":21424800,"url":"https://github.com/opentelemetry-php/contrib-detector-azure","last_synced_at":"2025-07-14T08:31:56.717Z","repository":{"id":235038154,"uuid":"789203890","full_name":"opentelemetry-php/contrib-detector-azure","owner":"opentelemetry-php","description":"[READONLY] OpenTelemetry Azure detector","archived":false,"fork":false,"pushed_at":"2025-03-12T10:23:07.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-05T22:04:51.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opentelemetry-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T23:18:34.000Z","updated_at":"2025-06-24T00:00:39.000Z","dependencies_parsed_at":"2025-02-25T02:28:46.433Z","dependency_job_id":"41f85638-f8bc-4af0-8fa2-690959d2217a","html_url":"https://github.com/opentelemetry-php/contrib-detector-azure","commit_stats":null,"previous_names":["opentelemetry-php/contrib-detector-azure"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/opentelemetry-php/contrib-detector-azure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentelemetry-php","download_url":"https://codeload.github.com/opentelemetry-php/contrib-detector-azure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-azure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262625,"owners_count":23736433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T21:24:36.355Z","updated_at":"2025-07-14T08:31:55.461Z","avatar_url":"https://github.com/opentelemetry-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Releases](https://img.shields.io/badge/releases-purple)](https://github.com/opentelemetry-php/contrib-aws/releases)\n[![Issues](https://img.shields.io/badge/issues-pink)](https://github.com/open-telemetry/opentelemetry-php/issues)\n[![Source](https://img.shields.io/badge/source-contrib-green)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Azure)\n[![Mirror](https://img.shields.io/badge/mirror-opentelemetry--php--contrib-blue)](https://github.com/opentelemetry-php/detector-azure)\n[![Latest Version](http://poser.pugx.org/open-telemetry/detector-azure/v/unstable)](https://packagist.org/packages/open-telemetry/detector-azure/)\n[![Stable](http://poser.pugx.org/open-telemetry/detector-azure/v/stable)](https://packagist.org/packages/open-telemetry/detector-azure/)\n\nThis is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.\n\n# OpenTelemetry Azure Resource Detectors\n\nThis package provides OpenTelemetry `ResourceDetector`s which will detect \nresource attributes for these Azure services:\n* App Service\n* Container Apps\n* Virtual Machines\n\nThe following OpenTelemetry resource attributes will be detected:\n\n| Resource attribute      | VM       | App Service       | Containers           |\n| cloud.platform          | azure_vm | azure_app_service | azure_container_apps |\n| cloud.provider          | azure    | azure             | azure                |\n| cloud.resource.id       | auto     | auto              |                      |\n| cloud.region            | auto     | auto              |                      |\n| deployment.environment  |          | auto              |                      |\n| host.id                 | auto     | auto              |                      |\n| host.name               | auto     |                   |                      |\n| host.type               | auto     |                   |                      |\n| os.type                 | auto     |                   |                      |\n| os.version              | auto     |                   |                      |\n| azure.vm.scaleset.name  | auto     |                   |                      |\n| azure.vm.sku            | auto     |                   |                      |\n| service.name            |          | auto              | auto                 |\n| service.version         |          |                   | auto                 |\n| service.instance.id     |          | auto              | auto                 |\n| azure.app.service.stamp |          | auto              |                      |\n\n## Requirements\n\n* OpenTelemetry SDK\n\n## Installation via composer\n\n```bash\n$ composer require open-telemetry/detector-azure\n```\n\n## Usage\n\nThe detector will be automatically registered as part of composer autoloading.\n\nBy 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.\n\nYou can also provide a list of detectors via the `OTEL_PHP_DETECTORS` config (environment variable or php.ini setting):\n```php\nputenv('OTEL_PHP_DETECTORS=azure,env,os,\u003cothers\u003e')\n\nvar_dump(ResourceInfoFactory::defaultResource());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-detector-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentelemetry-php%2Fcontrib-detector-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-detector-azure/lists"}