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

Rename "host.port" attribute to "net.host.port" #242

Merged
merged 7 commits into from Dec 11, 2020

Conversation

malafeev
Copy link

@malafeev malafeev commented Dec 9, 2020

Description

According to Semantic Conventions https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/metrics/semantic_conventions/http-metrics.md
attribute "net.host.port" should be used instead of "host.port"

Fixes #240

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox -e test-instrumentation-wsgi
  • tox -e test-instrumentation-pyramid
  • tox -e test-instrumentation-flask
  • tox -e test-instrumentation-falcon
  • tox -e test-instrumentation-asgi

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
@malafeev malafeev requested a review from a team as a code owner December 9, 2020 12:52
@malafeev malafeev requested review from codeboten and ocelotl and removed request for a team December 9, 2020 12:52
@malafeev malafeev changed the title #240 Rename "host.port" attribute to "net.host.port" Rename "host.port" attribute to "net.host.port" Dec 9, 2020
Sergei Malafeev added 2 commits December 9, 2020 21:23
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Minor change to the changelog, otherwise the PR looks great!

CHANGELOG.md Outdated
@@ -307,6 +309,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- `opentelemetry-ext-http-requests` Rename package to opentelemetry-ext-requests
([#619](https://github.com/open-telemetry/opentelemetry-python/pull/619))
- - `opentelemetry-ext-http-requests` Rename package to opentelemetry-ext-requests
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like a copy and paste typo?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

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

Thanks, @malafeev 👍

Sergei Malafeev added 2 commits December 11, 2020 14:25
@malafeev
Copy link
Author

can anybody merge this PR?

@lzchen lzchen merged commit 11a06db into open-telemetry:master Dec 11, 2020
NathanielRN pushed a commit to NathanielRN/opentelemetry-python-contrib-1 that referenced this pull request Dec 11, 2020
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.

Rename "host.port" attribute to "net.host.port"
4 participants