[processor/resourcedetection] Add support for DigitalOcean#42804
Merged
Conversation
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
This was referenced Sep 21, 2025
atoulme
reviewed
Sep 22, 2025
| The list of the populated resource attributes can be found at [Scaleway Detector Resource Attributes](./internal/akamai/documentation.md). | ||
|
|
||
| Akamai custom configuration example: | ||
| Scaleway custom configuration example: |
Contributor
There was a problem hiding this comment.
is this change intended for this PR or should it land on its own?
Member
Author
There was a problem hiding this comment.
I will move to a dedicated one 🙏
atoulme
approved these changes
Sep 22, 2025
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
dashpole
approved these changes
Sep 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for resource detection in DigitalOcean.
I'm proposing to be a code owner for this detector 🙌
Semantic Conventions PR: open-telemetry/semantic-conventions#2790
Link to tracking issue
Fixes #42803
Testing
Tests added and also tested on a DigitalOcean instance, as we can see the output below.
2025-09-21T22:29:33.140Z info service@v0.135.1-0.20250918163459-ba0b327d5fe9/service.go:239 Starting otelcontribcol... {"resource": {"service.instance.id": "e21da881-08da-47bf-b07a-ac501803050d", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "Version": "0.135.0-dev", "NumCPU": 1} 2025-09-21T22:29:33.140Z info extensions/extensions.go:41 Starting extensions... {"resource": {"service.instance.id": "e21da881-08da-47bf-b07a-ac501803050d", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}} 2025-09-21T22:29:33.141Z info internal/resourcedetection.go:137 began detecting resource information {"resource": {"service.instance.id": "e21da881-08da-47bf-b07a-ac501803050d", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "otelcol.component.id": "resourcedetection", "otelcol.component.kind": "processor", "otelcol.pipeline.id": "metrics", "otelcol.signal": "metrics"} 2025-09-21T22:29:33.178Z info internal/resourcedetection.go:188 detected resource information {"resource": {"service.instance.id": "e21da881-08da-47bf-b07a-ac501803050d", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "otelcol.component.id": "resourcedetection", "otelcol.component.kind": "processor", "otelcol.pipeline.id": "metrics", "otelcol.signal": "metrics", "resource": {"cloud.provider":"digitalocean","cloud.region":"fra1","host.id":"520038265","host.name":"ubuntu-s-1vcpu-1gb-fra1-01"}} 2025-09-21T22:29:33.178Z info service@v0.135.1-0.20250918163459-ba0b327d5fe9/service.go:262 Everything is ready. Begin running and processing data. {"resource": {"service.instance.id": "e21da881-08da-47bf-b07a-ac501803050d", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}} 2025-09-21T22:29:34.181Z info Metrics {"resource": {"service.instance.id": "e21da881-08da-47bf-b07a-ac501803050d", "service.name": "otelcontribcol", "service.version": "0.135.0-dev"}, "otelcol.component.id": "debug", "otelcol.component.kind": "exporter", "otelcol.signal": "metrics", "resource metrics": 3, "metrics": 5, "data points": 17} 2025-09-21T22:29:34.182Z info ResourceMetrics #0 Resource SchemaURL: https://opentelemetry.io/schemas/1.9.0 Resource attributes: -> cloud.provider: Str(digitalocean) -> host.id: Str(520038265) -> host.name: Str(ubuntu-s-1vcpu-1gb-fra1-01) -> cloud.region: Str(fra1)Documentation
Updated the README.md with this new detector.