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

Add int and double types. Small bugfixes. #30

Merged
merged 3 commits into from
Mar 16, 2021

Conversation

thisthat
Copy link
Member

@thisthat thisthat commented Feb 23, 2021

This PR fixes #13

FYI @anuraaga :)

Comment on lines 283 to 290
"string",
"string[]",
"number",
"number[]",
"int",
"int[]",
"double",
"double[]",
"boolean",
"boolean[]",
Copy link
Member

Choose a reason for hiding this comment

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

If you make the dictionary in type_mapper a (static) constant, you can just do if attr_type in that_dict (in checks the keys with a dictionary right-hand side)

@Oberon00
Copy link
Member

Oberon00 commented Mar 9, 2021

@open-telemetry/specs-approvers Can we merge this?

Copy link
Member

@arminru arminru left a comment

Choose a reason for hiding this comment

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

@thisthat I think this is our first breaking change with the generator. Could you please either add a changelog section in the README or a separate file for tracking these changes? Users will have to update their YAML files accordingly.

@@ -275,17 +282,21 @@ def is_simple_type(attr_type: str):
return attr_type in (
"string",
"string[]",
"number",
"number[]",
"int",
Copy link
Member

Choose a reason for hiding this comment

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

will it break all active PRs? Maybe keep number, than fix yamls and then remove number?

Copy link
Member Author

Choose a reason for hiding this comment

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

This won't break active PRs until we bump the tool version in the Github action

Copy link
Member

@arminru arminru left a comment

Choose a reason for hiding this comment

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

Thanks, Giovanni!

semantic-conventions/CHANGELOG.md Outdated Show resolved Hide resolved
@arminru arminru merged commit b4f8bdd into open-telemetry:main Mar 16, 2021
arminru added a commit to dynatrace-oss-contrib/opentelemetry-specification that referenced this pull request Mar 16, 2021
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.

SemConv generator should differentiate int and double type in YAML model and generated files
4 participants