Skip to content

Add opamp client#2513

Merged
laurit merged 4 commits intosignalfx:mainfrom
laurit:opamp
Nov 5, 2025
Merged

Add opamp client#2513
laurit merged 4 commits intosignalfx:mainfrom
laurit:opamp

Conversation

@laurit
Copy link
Copy Markdown
Collaborator

@laurit laurit commented Oct 31, 2025

This pr adds an opamp client that just connects to the server and doesn't do anything else.

@laurit laurit requested review from a team as code owners October 31, 2025 08:14
if (serviceName != null) {
return serviceName;
}
return resource.getAttribute(ServiceAttributes.SERVICE_NAME);
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.

That's great that it will work with declarative config, however I have one doubt here. With current implementation if YAML contains:

resource:
  attributes:
    - name: service.name
      value: "Service 1"
instrumentation/development:
  java:
    otel:
      service:
        name: "Service 2"

then "Service 2" will be used, overriding content of node .resource.attributes (Service 1). Also results of detectors will be overridden I guess. If this is what we want then that's fine. If not, then resource.getAttribute(ServiceAttributes.SERVICE_NAME) should be checked first, before otel.service.name and otel.resource.attributes

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I copied from service name checker without thinking about it. I guess here we really don't need to do anything besides calling resource.getAttribute(ServiceAttributes.SERVICE_NAME)

@laurit laurit merged commit 35f740f into signalfx:main Nov 5, 2025
28 checks passed
@laurit laurit deleted the opamp branch November 5, 2025 13:12
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants