Repository navigation
Fix - disable ServiceInstanceIdResourceProvider - #679
Merged
Merged
Conversation
Contributor
Author
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The tests do not verify that service.instance.id is present and parses as a UUID, leaving a regression unguarded now that the upstream provider is disabled.
1 open issue
What changed in this PR
This PR replaces OpenTelemetry’s default service instance ID provider with UUID generation in the shared SolarWinds resource provider, aiming to prevent entity reference creation while retaining an instance identifier.
Changes:
- Adds a UUID-based
service.instance.idresource attribute. - Disables the default
ServiceInstanceIdResourceProvider. - Bumps the agent version from
3.3.0to3.3.1.
| File | Description |
|---|---|
libs/shared/src/main/java/com/solarwinds/opentelemetry/extensions/ApmResourceProvider.java |
Generates the service instance ID resource attribute. |
custom/src/main/java/com/solarwinds/opentelemetry/extensions/SolarwindsPropertiesSupplier.java |
Disables the default instance ID provider. |
build.gradle.kts |
Updates the agent version to 3.3.1. |
Review effort: Balanced
…y ref computation
cleverchuk
force-pushed
the
cc/NH-155616
branch
from
November 16, 2026 20:15
88265b2 to
e5a067b
Compare
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.

This pull request updates the resource attribution and configuration for OpenTelemetry integration. The main changes are the addition of a unique service instance identifier to the resource attributes and the disabling of a default
ServiceInstanceIdResourceProviderto prevent entity reference creation.Resource Attribution Updates:
ApmResourceProvider.java: Adds a uniqueservice.instance.idattribute to the resource using a randomly generated UUID. Added due to disabling of the default one.ApmResourceProvider.java: ImportsServiceAttributesandUUIDto support the new attribute.Configuration Changes:
SolarwindsPropertiesSupplier.java: Disables the defaultServiceInstanceIdResourceProviderby setting theotel.java.disabled.resource.providersproperty.Test services data