-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
azuremonitorexporter assign wrong parentId to span events #27233
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The semantic conventions are a bit unclear here as there's no default attribute in a span event for parentID. I think your interpretation is fair in that it makes sense for the events of a span to be considered the children of the span itself. Wording it another way, the span can be considered a parent of all of its own events. @pcwiese may have different thoughts as code owner though, and this may also break some people's existing assumptions and queries in the backend. Relevant documentation: Semantic conventions |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This is solved as soon as #30659 is merged - so if anyone with rights to merge this PR reads this, please make progress at this point 📯 . |
…30659) **Description:** Corrected parent for exported span events. For details please take a look at the corresponding issue. I think the change is pretty straight forward - one line added. However I'm not a go-expert - so there might exist a more elegant implementation. **Link to tracking Issue:** #27233 **Testing:** Adapted existing units test. **Documentation:** n/a (fyi @pcwiese)
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Resolved by #30659 |
Component(s)
exporter/azuremonitor
What happened?
Description
azuremonitorexporter
seems to assign wrong parentId to span events. As the results, span events have the same parentId as the span, but should have spanId as the parentId IIUC.It looks like the issue is here
newEnvelope
implementation should be different for span events, setting parentId to the spanId instead of always setting parentId to the span's parent idSteps to Reproduce
Configure a collector with azuremonitor as an exported, set
spaneventsenabled: true
and ensure to send spans with events to the collector.Expected Result
Span events should have the spanId set as their parentId
Actual Result
Span events have the span's parentId set as their parentId
Collector version
0.85.0
Environment information
Environment
OS: macOS 13.6
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: