Skip to content

Commit

Permalink
[APM] transactions.kubernetes.pod can be undefined (#90044) (#90088)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Feb 2, 2021
1 parent 99ba9b1 commit 73b58c5
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,6 +5,6 @@
*/

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

0 comments on commit 73b58c5

Please sign in to comment.