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 attach statsbeat dimensions #30522

Merged
merged 11 commits into from
Aug 16, 2022
Merged

Conversation

vishweshbankwar
Copy link
Contributor

Additional dimensions for Attach Statsbeat

rp: the name of a resource provider, e.g., appsvc, vm, functions, aks, and unknown,
rpId : the unique identifier of the resource provider,
attach: codeless or sdk (only sdk supported for now)
runtimeVersion: runtime version of a specific platform.
version: version of the application insights SDK/Agent

vishweshbankwar and others added 4 commits August 15, 2022 15:58
…/Statsbeat/Statsbeat.cs

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
…/Statsbeat/Statsbeat.cs

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
…/Statsbeat/Statsbeat.cs

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
@vishweshbankwar vishweshbankwar marked this pull request as ready for review August 15, 2022 23:57
@vishweshbankwar vishweshbankwar merged commit 4973d43 into main Aug 16, 2022
@vishweshbankwar vishweshbankwar deleted the vibankwa/add-statsbeat-dimensions branch August 16, 2022 18:58
new("rpId", s_resourceProviderId),
new("attach", "sdk"),
new("cikey", Customer_Ikey),
new("runtimeVersion", s_runtimeVersion),
Copy link
Contributor

Choose a reason for hiding this comment

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

is this .net runtime version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

return new(1, new("cikey", Customer_Ikey), new("language", "dotnet"));
if (s_resourceProvider == null)
{
SetResourceProviderDetails();
Copy link
Contributor

Choose a reason for hiding this comment

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

protect with try.catch.

sofiar-msft pushed a commit to sofiar-msft/azure-sdk-for-net that referenced this pull request Dec 7, 2022
* add attach statsbeat dimensions

* refactor

* Update sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>

* Update sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>

* rmv vmId

* Update sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>

* refactor

* refactor

* refactor

* resolve PR comments

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
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