Skip to content
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions cli/azd/internal/agent/copilot_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ func (a *CopilotAgent) Stop() error {
fields.CopilotConsentDeniedCount.Int(a.consentDeniedCount),
)
if a.sessionID != "" {
tracing.SetUsageAttributes(fields.StringHashed(fields.CopilotSessionId, a.sessionID))
tracing.SetUsageAttributes(fields.CopilotSessionId.String(a.sessionID))
}

tasks := a.cleanupTasks
Expand Down Expand Up @@ -598,7 +598,7 @@ func (a *CopilotAgent) ensureSession(ctx context.Context, resumeSessionID string
sessionID = resumeSessionID
}
if sessionID != "" {
span.SetAttributes(fields.StringHashed(fields.CopilotSessionId, sessionID))
span.SetAttributes(fields.CopilotSessionId.String(sessionID))
}
span.EndWithStatus(err)
}()
Expand Down
4 changes: 2 additions & 2 deletions cli/azd/internal/tracing/fields/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ var (

// Copilot agent session related fields
var (
// CopilotSessionId is the hashed session ID for correlation across messages.
// CopilotSessionId is the session ID for correlation across messages.
CopilotSessionId = AttributeKey{
Key: attribute.Key("copilot.session.id"),
Classification: EndUserPseudonymizedInformation,
Classification: SystemMetadata,
Purpose: FeatureInsight,
}
// CopilotSessionIsNew indicates whether this was a new session (true) or resumed (false).
Expand Down
Loading