Skip to content

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.

"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!

@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