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): allow event extraction from spans in spanlogs (grafana#2427) #2433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steve-hb
Copy link

PR Description

Which issue(s) this PR fixes

Fixes #2427

Notes to the Reviewer

I'm not sure whether config converter update is needed here.

PR Checklist

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

@steve-hb steve-hb requested review from clayton-cornell and a team as code owners January 16, 2025 23:11
@steve-hb steve-hb changed the title Spanlogs event feat(otelcol): allow event extraction from spans in spanlogs (grafana#2427) Jan 16, 2025
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.

Thanks! The code looks good, just two comments on changelog and doc

@@ -54,6 +54,8 @@ v1.6.0-rc.1

- Add a new `/-/healthy` endpoint which returns HTTP 500 if one or more components are unhealthy. (@ptodev)

- Add `otelcol.connector.spanlogs` allowing to export span events as logs. (@steve-hb)
Copy link
Contributor

Choose a reason for hiding this comment

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

this entry is in the wrong place, it should be in the Main (unreleased) area

| `span_attributes` | `list(string)` | Additional span attributes to log. | `[]` | no |
| `process_attributes` | `list(string)` | Additional process attributes to log. | `[]` | no |
| `event_attributes` | `list(string)` | Additional event attributes to log. | `[]` | no |
| `labels` | `list(string)` | A list of keys that will be logged as labels. | `[]` | no |

The values listed in `labels` should be the values of either span or process attributes.
Copy link
Contributor

Choose a reason for hiding this comment

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

there are a few areas like this one in this file that must be updated to include events attributes. If you could also update the example that would be awesome

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.

Extract log entries from events
2 participants