PHPackages                             open-telemetry/detector-digitalocean - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. open-telemetry/detector-digitalocean

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

open-telemetry/detector-digitalocean
====================================

OpenTelemetry resource detector for DigitalOcean

0.2.0(1mo ago)1371Apache-2.0PHPPHP ^8.1

Since Jun 11Pushed 1mo agoCompare

[ Source](https://github.com/opentelemetry-php/contrib-detector-digitalocean)[ Packagist](https://packagist.org/packages/open-telemetry/detector-digitalocean)[ Docs](https://opentelemetry.io/docs/languages/php/)[ RSS](/packages/open-telemetry-detector-digitalocean/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (32)Versions (3)Used By (0)

[![Releases](https://camo.githubusercontent.com/46e38a504120203bf7615645011bcf2bb834e03e8eb0bc8e0f4864c729fd5baf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d707572706c65)](https://github.com/opentelemetry-php/contrib-detector-digitalocean/releases)[![Issues](https://camo.githubusercontent.com/b9b31135f113cdb6e2b662b4040276044ee0803567bc17688eaf4386f797ea50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6973737565732d70696e6b)](https://github.com/open-telemetry/opentelemetry-php/issues)[![Source](https://camo.githubusercontent.com/e27dd1126a60abf1c26521d893d9f235ef342a76231c2428ddbc4651185bd626/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d636f6e747269622d677265656e)](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/ResourceDetectors/DigitalOcean)[![Mirror](https://camo.githubusercontent.com/2f9050293ab0c0d9471e618215bc7417a63b6873c960e1605bddb69b1911fa4c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6972726f722d6f70656e74656c656d657472792d2d7068702d2d636f6e747269622d626c7565)](https://github.com/opentelemetry-php/contrib-detector-digitalocean)[![Latest Version](https://camo.githubusercontent.com/7e1c563b4c2c79d6c32c7e445c8f5347c4babe40b39a9b5596e82624aa820148/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6465746563746f722d6469676974616c6f6365616e2f762f756e737461626c65)](https://packagist.org/packages/open-telemetry/detector-digitalocean/)[![Stable](https://camo.githubusercontent.com/6e6f5a2c40f3dce97fc0617de3e62c8f778cf0662e246dbf843447e354fc4753/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6465746563746f722d6469676974616c6f6365616e2f762f737461626c65)](https://packagist.org/packages/open-telemetry/detector-digitalocean/)

This is a read-only subtree split of .

OpenTelemetry DigitalOcean resource detector
============================================

[](#opentelemetry-digitalocean-resource-detector)

Please see  for installation and configuration.

Overview
--------

[](#overview)

This package provides an OpenTelemetry `ResourceDetector` which will detect resource attributes for DigitalOcean Droplets.

The following OpenTelemetry resource attributes will be detected:

Resource attributeDroplet`cloud.account.id`auth[1](#user-content-fn-1-92bab56da83d6342feb0c3d4aca0a6ce) (scope `account:read`)`cloud.availability_zone`*not applicable to DigitalOcean*`cloud.platform`auto`cloud.provider`auto`cloud.region`auto`cloud.resource.id`auto`host.arch`static (`amd64`)`host.id`auto`host.image.id`auth[1](#user-content-fn-1-92bab56da83d6342feb0c3d4aca0a6ce) (scope `droplet:read`)`host.image.name`auth[1](#user-content-fn-1-92bab56da83d6342feb0c3d4aca0a6ce) (scope `droplet:read`)`host.image.version`*not applicable to DigitalOcean*`host.ip`omitted[2](#user-content-fn-2-92bab56da83d6342feb0c3d4aca0a6ce)`host.mac`omitted[2](#user-content-fn-2-92bab56da83d6342feb0c3d4aca0a6ce)`host.name`auto`host.type`auth[1](#user-content-fn-1-92bab56da83d6342feb0c3d4aca0a6ce) (scope `droplet:read`)`os.name`[3](#user-content-fn-3-92bab56da83d6342feb0c3d4aca0a6ce)auth[1](#user-content-fn-1-92bab56da83d6342feb0c3d4aca0a6ce) (scope `droplet:read`)`os.type`[3](#user-content-fn-3-92bab56da83d6342feb0c3d4aca0a6ce)static (`linux`)Configuration
-------------

[](#configuration)

By 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.

You can also provide a list of specific detectors via the `OTEL_PHP_DETECTORS` config (environment variable or `php.ini` setting):

```
OTEL_PHP_DETECTORS="host,process,digitalocean"
```

Footnotes
---------

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. [↩](#user-content-fnref-1-92bab56da83d6342feb0c3d4aca0a6ce) [↩2](#user-content-fnref-1-2-92bab56da83d6342feb0c3d4aca0a6ce) [↩3](#user-content-fnref-1-3-92bab56da83d6342feb0c3d4aca0a6ce) [↩4](#user-content-fnref-1-4-92bab56da83d6342feb0c3d4aca0a6ce) [↩5](#user-content-fnref-1-5-92bab56da83d6342feb0c3d4aca0a6ce)
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. [↩](#user-content-fnref-2-92bab56da83d6342feb0c3d4aca0a6ce) [↩2](#user-content-fnref-2-2-92bab56da83d6342feb0c3d4aca0a6ce)
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. [↩](#user-content-fnref-3-92bab56da83d6342feb0c3d4aca0a6ce) [↩2](#user-content-fnref-3-2-92bab56da83d6342feb0c3d4aca0a6ce)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~286 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4978962?v=4)[Brett McBride](/maintainers/brettmc)[@brettmc](https://github.com/brettmc)

![](https://avatars.githubusercontent.com/u/4099109?v=4)[Bob Strecansky](/maintainers/bobstrecansky)[@bobstrecansky](https://github.com/bobstrecansky)

---

Top Contributors

[![bobstrecansky](https://avatars.githubusercontent.com/u/4099109?v=4)](https://github.com/bobstrecansky "bobstrecansky (1 commits)")[![pieterocp](https://avatars.githubusercontent.com/u/68863060?v=4)](https://github.com/pieterocp "pieterocp (1 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")[![smaddock](https://avatars.githubusercontent.com/u/524425?v=4)](https://github.com/smaddock "smaddock (1 commits)")

---

Tags

tracingopentelemetryoteldetectoropen-telemetrydigitalocean

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/open-telemetry-detector-digitalocean/health.svg)

```
[![Health](https://phpackages.com/badges/open-telemetry-detector-digitalocean/health.svg)](https://phpackages.com/packages/open-telemetry-detector-digitalocean)
```

###  Alternatives

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

551.2M1](/packages/open-telemetry-opentelemetry-auto-symfony)[open-telemetry/opentelemetry-auto-pdo

OpenTelemetry auto-instrumentation for PDO

111.2M1](/packages/open-telemetry-opentelemetry-auto-pdo)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17166.0k](/packages/open-telemetry-opentelemetry-auto-wordpress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
