-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Outdated
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Outdated
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Outdated
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Show resolved
Hide resolved
…/Statsbeat/Statsbeat.cs Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
…/Statsbeat/Statsbeat.cs Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
…m/Azure/azure-sdk-for-net into vibankwa/add-statsbeat-dimensions
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Show resolved
Hide resolved
…/Statsbeat/Statsbeat.cs Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Outdated
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Outdated
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Outdated
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/VmMetadataResponse.cs
Show resolved
Hide resolved
sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/Statsbeat.cs
Show resolved
Hide resolved
new("rpId", s_resourceProviderId), | ||
new("attach", "sdk"), | ||
new("cikey", Customer_Ikey), | ||
new("runtimeVersion", s_runtimeVersion), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protect with try.catch.
* 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>
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