Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(otelcol/connector/servicegraph): add virtual_node_peer_attributes setting to the component #879

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hainenber
Copy link
Contributor

@hainenber hainenber commented May 16, 2024

PR Description

Add the virtual_node_peer_attributes setting to otelcol.connector.servicegraph. Thanks @erikbaranowski for creating the foundation already!

The default attributes are reduced to be identical to upstream

Which issue(s) this PR fixes

Closes #861

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

…es` setting to the component

Signed-off-by: hainenber <dotronghai96@gmail.com>
CHANGELOG.md Outdated Show resolved Hide resolved
hainenber and others added 2 commits May 22, 2024 22:51
Co-authored-by: William Dumont <william.dumont@grafana.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Copy link
Contributor

@wildum wildum left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@wildum
Copy link
Contributor

wildum commented May 23, 2024

waiting for @clayton-cornell feedback on the doc before merging it

CHANGELOG.md Outdated Show resolved Hide resolved
hainenber and others added 5 commits May 28, 2024 22:06
Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Copy link
Contributor

@ptodev ptodev left a comment

Choose a reason for hiding this comment

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

I opened a PR upstream for this config option to be changed upstream. It would be better to update Alloy straight to the new config, so let's put the PR on hold for now to see if the upstream PR gets accepted.

@hainenber
Copy link
Contributor Author

All fine by me :D

@hainenber hainenber marked this pull request as draft May 29, 2024 16:40
Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

Still in passive voice, but leaving it as it gets the technical point across.

@@ -107,6 +108,19 @@ Additional labels can be included using the `dimensions` configuration option:

When `metrics_flush_interval` is set to `0s`, metrics will be flushed on every received batch of traces.

`virtual_node_peer_attributes` is useful when an OTel-instrumented client sends a request to a service which is not OTel-instrumented.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`virtual_node_peer_attributes` is useful when an OTel-instrumented client sends a request to a service which is not OTel-instrumented.
`virtual_node_peer_attributes` is useful when an OTel-instrumented client sends a request to a service that is not OTel-instrumented.


If no client span is found and `virtual_node_peer_attributes` is not an empty list,
then the service span will be paired with a virtual node called `client="user"`.
This can be useful when a client which is not OTel-instrumented (like a web browser) sends a request to an OTel-instrumented service.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This can be useful when a client which is not OTel-instrumented (like a web browser) sends a request to an OTel-instrumented service.
This can be useful when a client that is not OTel-instrumented (like a web browser) sends a request to an OTel-instrumented service.

@@ -107,6 +108,19 @@ Additional labels can be included using the `dimensions` configuration option:

When `metrics_flush_interval` is set to `0s`, metrics will be flushed on every received batch of traces.

`virtual_node_peer_attributes` is useful when an OTel-instrumented client sends a request to a service which is not OTel-instrumented.
Normally, `otelcol.connector.servicegraph` wouldn't be able to pair the client span with a service span,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Normally, `otelcol.connector.servicegraph` wouldn't be able to pair the client span with a service span,
Normally, `otelcol.connector.servicegraph` wouldn't be able to pair the client span with a service span

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the virtual_node_peer_attributes setting to otelcol.connector.servicegraph
5 participants