Skip to content

Commit

Permalink
[APM] transactions.kubernetes.pod can be undefined (#90044)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Feb 2, 2021
1 parent 10e1f1c commit 43faa76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const getSections = ({
urlParams: IUrlParams;
}) => {
const hostName = transaction.host?.hostname;
const podId = transaction.kubernetes?.pod.uid;
const podId = transaction.kubernetes?.pod?.uid;
const containerId = transaction.container?.id;

const time = Math.round(transaction.timestamp.us / 1000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

export interface Kubernetes {
pod: { uid: string; [key: string]: unknown };
pod?: { uid: string; [key: string]: unknown };
}

0 comments on commit 43faa76

Please sign in to comment.