{"id":29437846,"url":"https://github.com/opentelemetry-php/contrib-detector-digitalocean","last_synced_at":"2025-07-13T08:02:13.990Z","repository":{"id":298520004,"uuid":"1000243102","full_name":"opentelemetry-php/contrib-detector-digitalocean","owner":"opentelemetry-php","description":"[READONLY] DigitalOcean detector","archived":false,"fork":false,"pushed_at":"2025-06-11T13:37:37.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-12T10:38:02.715Z","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,"zenodo":null}},"created_at":"2025-06-11T13:32:47.000Z","updated_at":"2025-06-23T23:35:49.000Z","dependencies_parsed_at":"2025-06-11T15:07:33.776Z","dependency_job_id":"fafe7d88-fc51-48c5-bdef-2c3728d8ab1d","html_url":"https://github.com/opentelemetry-php/contrib-detector-digitalocean","commit_stats":null,"previous_names":["opentelemetry-php/contrib-detector-digitalocean"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/opentelemetry-php/contrib-detector-digitalocean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-digitalocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-digitalocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-digitalocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-digitalocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentelemetry-php","download_url":"https://codeload.github.com/opentelemetry-php/contrib-detector-digitalocean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fcontrib-detector-digitalocean/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265108505,"owners_count":23712465,"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":"2025-07-13T08:00:50.497Z","updated_at":"2025-07-13T08:02:13.952Z","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-detector-digitalocean/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/ResourceDetectors/DigitalOcean)\n[![Mirror](https://img.shields.io/badge/mirror-opentelemetry--php--contrib-blue)](https://github.com/opentelemetry-php/contrib-detector-digitalocean)\n[![Latest Version](http://poser.pugx.org/open-telemetry/detector-digitalocean/v/unstable)](https://packagist.org/packages/open-telemetry/detector-digitalocean/)\n[![Stable](http://poser.pugx.org/open-telemetry/detector-digitalocean/v/stable)](https://packagist.org/packages/open-telemetry/detector-digitalocean/)\n\nThis is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.\n\n# OpenTelemetry DigitalOcean resource detector\n\nPlease see https://opentelemetry.io/docs/languages/php/resources/#custom-resource-detectors for installation and configuration.\n\n## Overview\n\nThis package provides an OpenTelemetry `ResourceDetector` which will detect\nresource attributes for DigitalOcean Droplets.\n\nThe following OpenTelemetry resource attributes will be detected:\n\n| Resource attribute        | Droplet                           |\n|---------------------------|-----------------------------------|\n| `cloud.account.id`        | auth[^1] (scope `account:read`)   |\n| `cloud.availability_zone` | _not applicable to DigitalOcean_  |\n| `cloud.platform`          | auto                              |\n| `cloud.provider`          | auto                              |\n| `cloud.region`            | auto                              |\n| `cloud.resource.id`       | auto                              |\n| `host.arch`               | static (`amd64`)                  |\n| `host.id`                 | auto                              |\n| `host.image.id`           | auth[^1] (scope `droplet:read`)   |\n| `host.image.name`         | auth[^1] (scope `droplet:read`)   |\n| `host.image.version`      | _not applicable to DigitalOcean_  |\n| `host.ip`                 | omitted[^2]                       |\n| `host.mac`                | omitted[^2]                       |\n| `host.name`               | auto                              |\n| `host.type`               | auth[^1] (scope `droplet:read`)   |\n| `os.name`[^3]             | auth[^1] (scope `droplet:read`)   |\n| `os.type`[^3]             | static (`linux`)                  |\n\n[^1]: If a DigitalOcean API personal access token, with the listed scope, is available to PHP via the `DIGITALOCEAN_ACCESS_TOKEN` environment variable, this resource detector will attempt to read the corresponding values from the API. This has no impact on the other attributes.\n[^2]: These attributes are marked as `Opt-In` within the OpenTelemetry semantic conventions, meaning they should _not_ be included unless the user configures the instrumentation to do so. It is a future todo for this library to support configuration.\n[^3]: These attributes should be combined with a resource detector that includes all of the `os` resource attributes, but if these attributes are known, they will be provided.\n\n## Configuration\n\nBy default, all installed resource detectors are used, and the attributes they detect will be added to the default resources associated with traces, metrics, and logs.\n\nYou can also provide a list of specific detectors via the `OTEL_PHP_DETECTORS` config (environment variable or `php.ini` setting):\n\n```shell\nOTEL_PHP_DETECTORS=\"host,process,digitalocean\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-detector-digitalocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentelemetry-php%2Fcontrib-detector-digitalocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fcontrib-detector-digitalocean/lists"}