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

processor/otel: handle net.host.* as span attributes #5719

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

axw
Copy link
Member

@axw axw commented Jul 15, 2021

Motivation/summary

We were mistakenly handling the new net.host.* attributes as resource attributes, whereas they should be span attributes. These fields describe a network connection which will be specific to an operation (span), and not the service (resource) performing that operation.

net.host.connection_type has been updated to net.host.connection.type, per the spec change.

Checklist

- [ ] Update CHANGELOG.asciidoc
- [ ] Documentation has been updated

How to test these changes

When elastic/apm-agent-ios#46 lands, run a program instrumented with the iOS agent, and check that the information is indexed into network.* fields and not as labels. The only field that should show up as a label is net.host.connection.subtype, which is not yet mapped.

Related issues

#5436

We were mistakenly handling the new net.host
attributes as resource attributes, whereas they
should be span attributes; these fields describe
a network connection, which will be specific to
an operation (span), and not the service (resource)
performing that operation.

`net.host.connection_type` has been updated to
`net.host.connection.type`, per the spec change.
@axw axw added v7.14.0 v7.15.0 backport-7.14 Backport PR to the 7.14 branch backport-7.x labels Jul 15, 2021
@axw axw changed the title processor/otel: handle net.host span attributes processor/otel: handle net.host.* as span attributes Jul 15, 2021
@apmmachine
Copy link
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-07-15T04:12:56.470+0000

  • Duration: 37 min 11 sec

  • Commit: cb307d3

Test stats 🧪

Test Results
Failed 0
Passed 5712
Skipped 13
Total 5725

Trends 🧪

Image of Build Times

Image of Tests

@axw axw added test-plan and removed v7.15.0 labels Jul 15, 2021
@axw axw marked this pull request as ready for review July 15, 2021 05:04
@axw axw requested a review from a team July 15, 2021 05:04
@axw axw merged commit 61bf74d into elastic:master Jul 15, 2021
@axw axw deleted the otel-carrier-span-attributes branch July 15, 2021 05:48
mergify bot pushed a commit that referenced this pull request Jul 15, 2021
We were mistakenly handling the new net.host
attributes as resource attributes, whereas they
should be span attributes; these fields describe
a network connection, which will be specific to
an operation (span), and not the service (resource)
performing that operation.

`net.host.connection_type` has been updated to
`net.host.connection.type`, per the spec change.

(cherry picked from commit 61bf74d)
mergify bot pushed a commit that referenced this pull request Jul 15, 2021
We were mistakenly handling the new net.host
attributes as resource attributes, whereas they
should be span attributes; these fields describe
a network connection, which will be specific to
an operation (span), and not the service (resource)
performing that operation.

`net.host.connection_type` has been updated to
`net.host.connection.type`, per the spec change.

(cherry picked from commit 61bf74d)
axw added a commit that referenced this pull request Jul 15, 2021
We were mistakenly handling the new net.host
attributes as resource attributes, whereas they
should be span attributes; these fields describe
a network connection, which will be specific to
an operation (span), and not the service (resource)
performing that operation.

`net.host.connection_type` has been updated to
`net.host.connection.type`, per the spec change.

(cherry picked from commit 61bf74d)

Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
axw added a commit that referenced this pull request Jul 15, 2021
We were mistakenly handling the new net.host
attributes as resource attributes, whereas they
should be span attributes; these fields describe
a network connection, which will be specific to
an operation (span), and not the service (resource)
performing that operation.

`net.host.connection_type` has been updated to
`net.host.connection.type`, per the spec change.

(cherry picked from commit 61bf74d)

Co-authored-by: Andrew Wilkins <[email protected]>
@simitt
Copy link
Contributor

simitt commented Jul 16, 2021

Running from the latest 7.14 branch but still seeing the labels
Screenshot 2021-07-16 at 14 38 26

@axw
Copy link
Member Author

axw commented Jul 19, 2021

Probably because elastic/apm-agent-ios#46 hasn't landed yet. I think we should just follow up on this in 7.15, seeing as there's more to do anyway.

@stuartnelson3 stuartnelson3 mentioned this pull request Jul 19, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants