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

Flatten Swift telemetry dictionary #27

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Conversation

thomasameisel
Copy link
Collaborator

Flatten the Swift telemetry dictionary in the telemetryDictionary function as opposed to within the host app

} else if (type->is_struct()) {
out << ".dictionary(" << property_name << ".telemetryDictionary())";
out << indent() << "telemetryData.merge(" << property_name << ".telemetryDictionary()) { _, child in child }";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think we should be warning consumers in the case of a conflict?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have a lint rule here to check for members in sub-structs and maps with enum keys. We're not able to check at compile-time for maps with string keys. Do you have ideas for how we would warn consumers? FWIW we didn't have any logs for this even in Outlook

@thomasameisel thomasameisel merged commit f2f1ced into ms-master Apr 24, 2024
1 check passed
@thomasameisel thomasameisel deleted the thmeisel/Swift-Flatten branch April 24, 2024 17:35
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.

2 participants