Skip to content

Fix - disable ServiceInstanceIdResourceProvider - #679

Merged
cleverchuk merged 1 commit into
mainfrom
cc/NH-155616
Nov 16, 2026
Merged

cleverchuk merged 1 commit into
mainfrom
cc/NH-155616

Conversation

@cleverchuk

Copy link
Copy Markdown
Contributor

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 ServiceInstanceIdResourceProvider to prevent entity reference creation.

Resource Attribution Updates:

  • ApmResourceProvider.java: Adds a unique service.instance.id attribute to the resource using a randomly generated UUID. Added due to disabling of the default one.
  • ApmResourceProvider.java: Imports ServiceAttributes and UUID to support the new attribute.

Configuration Changes:

Test services data

  1. e-1712644058766987264
  2. e-1712643928659124224
  3. e-1742334541200846848
  4. e-1777406072376840192

@cleverchuk
cleverchuk requested review from a team as code owners November 16, 2026 20:09
Copilot AI balanced review requested due to automatic review settings November 16, 2026 20:09
@cleverchuk

Copy link
Copy Markdown
Contributor Author

Before and after

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.id resource attribute.
  • Disables the default ServiceInstanceIdResourceProvider.
  • Bumps the agent version from 3.3.0 to 3.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

@cheempz cheempz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as temp workaround

@jerrytfleung jerrytfleung left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cleverchuk
cleverchuk merged commit 0b6a32d into main Nov 16, 2026
17 checks passed
@cleverchuk
cleverchuk deleted the cc/NH-155616 branch November 16, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants