Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions aitelemetry/telemetrywrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package aitelemetry

import (
"fmt"
"os"
"runtime"
"time"

Expand All @@ -24,6 +25,7 @@ const (
vmIDStr = "VMID"
versionStr = "AppVersion"
azurePublicCloudStr = "AzurePublicCloud"
hostNameKey = "hostname"
defaultTimeout = 10
defaultBatchIntervalInSecs = 15
defaultBatchSizeInBytes = 32768
Expand Down Expand Up @@ -207,6 +209,8 @@ func (th *telemetryHandle) TrackLog(report Report) {
trace.Tags.User().SetAuthUserId(runtime.GOOS)
trace.Tags.Operation().SetId(report.Context)
trace.Tags.Operation().SetParentId(th.appVersion)
trace.Tags.Application().SetVer(th.appVersion)
Copy link
Member

Choose a reason for hiding this comment

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

some fields are not exported to kusto. did you check if this visible in kusto? in that case we can remove trace.Tags.Operation().SetParentId(th.appVersion)

trace.Properties[hostNameKey], _ = os.Hostname()

// copy app specified custom dimension
for key, value := range report.CustomDimensions {
Expand Down