Skip to content

Commit

Permalink
fix(ca): fix session correlation id unknown (webex#3900)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisadubois authored Oct 9, 2024
1 parent 3abb5c9 commit 4a00a43
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,14 @@ export default class CallDiagnosticMetrics extends StatelessWebexPlugin {
sessionCorrelationId,
} = options;
const identifiers: Event['event']['identifiers'] = {
correlationId: 'unknown',
sessionCorrelationId: 'unknown',
correlationId: 'unknown', // concerned with setting this to unknown. This will fail diagnostic events parsing because it's not a uuid pattern
};

if (meeting) {
identifiers.correlationId = meeting.correlationId;
identifiers.sessionCorrelationId = meeting.sessionCorrelationId;
if (meeting.sessionCorrelationId) {
identifiers.sessionCorrelationId = meeting.sessionCorrelationId;
}
}

if (sessionCorrelationId) {
Expand All @@ -306,6 +307,8 @@ export default class CallDiagnosticMetrics extends StatelessWebexPlugin {
identifiers.correlationId = correlationId;
}

// TODO: should we use patterns.uuid to validate correlationId and session correlation id? they will fail the diagnostic events validation pipeline if improperly formatted

if (this.device) {
const {device} = this;
const {installationId} = device?.config || {};
Expand Down
Loading

0 comments on commit 4a00a43

Please sign in to comment.