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

Replace string values with constants. #1468

Conversation

vadeg
Copy link
Contributor

@vadeg vadeg commented Oct 23, 2020

This is a second PR after #1459 to replace string values with respective constants.

This PR covers the following groups:

  • http.*
  • peer.*
  • message.*
  • db.*
  • messaging.*
  • exception.*
  • faas.*

Fixes: #1458

Replace `http.*`, `peer.*`, `message.*`, `db.*`, `messaging.*`, `exception.*` and `faas.*` string values with constants from Instrumentation API.

Fixes: open-telemetry#1458
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

👍

@iNikem
Copy link
Contributor

iNikem commented Oct 24, 2020

If I am not mistaken, typedSpans package contains auto-generated files. Am I correct @thisthat ?

@thisthat
Copy link
Member

If I am not mistaken, typedSpans package contains auto-generated files. Am I correct @thisthat ?

You are indeed correct! The code that generates those is available at https://gist.github.com/thisthat/7e34742f4a7f1b5df57118f859a19c3b

@thisthat
Copy link
Member

Would you like a PR (similar to open-telemetry/opentelemetry-java#1846) that introduces a script to generate them from the YAML definitions?

@trask
Copy link
Member

trask commented Nov 19, 2020

thanks for the PR @vadeg! we ended up removing these files since we aren't using them currently #1696

@trask trask closed this Nov 19, 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.

Replace hardcoded strings with API constants
4 participants