Skip to content

Conversation

@nkomonen-amazon
Copy link
Contributor

@nkomonen-amazon nkomonen-amazon commented Feb 19, 2025

Problem:

The source value has become a common pattern in our telemetry which answers "who" caused the metric event. For example if we had a function() to open a menu, there could be many different entrypoints that could call it.

Right now we have to add source to each metric that uses it, but this usage has increased for a lot of metrics.

Solution:

  • source will be a part of all metrics as an optional field.
  • This has only been implemented for VSC.

TODO

The other IDEs should consider following this pattern if not already.
If all IDEs implement this then we can remove the explicit requirements of source in commonDefinitions.json

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@nkomonen-amazon nkomonen-amazon requested a review from a team as a code owner February 19, 2025 22:38
Problem:

The `source` value has become a common pattern in our telemetry which answers
"who" caused the metric event. For example if we had a function() to open
a menu, there could be many different entrypoints that could call it.

Solution:

`source` will answer "who" it was for that event. And now it will
be a part of all metrics as an optional field.

Note:

The other IDEs should consider following this pattern if not already.

Signed-off-by: nkomonen-amazon <[email protected]>
@awschristou
Copy link
Contributor

Can you add this to the C# generator too?

@justinmk3 justinmk3 changed the title vsc: add source to common fields telemetry: add source to common fields Feb 20, 2025
@nkomonen-amazon nkomonen-amazon enabled auto-merge (squash) February 21, 2025 17:49
@nkomonen-amazon nkomonen-amazon merged commit 0d5852a into aws:main Feb 21, 2025
10 checks passed
@nkomonen-amazon nkomonen-amazon deleted the sourceBase branch February 21, 2025 18:11
@nkomonen-amazon nkomonen-amazon changed the title telemetry: add source to common fields vsc: add source to common fields Feb 21, 2025
nkomonen-amazon added a commit that referenced this pull request Feb 21, 2025
Follow up to: #977 but for
VS/C#
<!---
    REMINDER:
    - Read CONTRIBUTING.md first.
    - Add test coverage for your changes.
    - Link to related issues/commits.
    - Testing: how did you test your changes?
    - Screenshots if applicable
-->

## License

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

---------

Signed-off-by: nkomonen-amazon <[email protected]>
Co-authored-by: Christopher Christou <[email protected]>
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.

4 participants