From 22275ce5f340626461bbfb78b4c5cfb4ea481bdc Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Mon, 20 May 2024 13:45:44 +0530 Subject: [PATCH] Don't track `ip` label - Historically, this label has been source of the high cardinality data. - This is generally handled at the scraper level where instance or pod labels are automatically added. - With support for adding custom labels to every request, users can add `ip` whenever appropriate, it doesn't need to be done by default. --- src/OpenAPM.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OpenAPM.ts b/src/OpenAPM.ts index 82d93fd..0f9acda 100644 --- a/src/OpenAPM.ts +++ b/src/OpenAPM.ts @@ -35,7 +35,6 @@ export type ExtractFromParams = { export type DefaultLabels = | 'environment' | 'program' - | 'ip' | 'version' | 'host'; @@ -187,8 +186,7 @@ export class OpenAPM extends LevitateEvents { environment: this.environment, program: packageJson?.name ?? '', version: packageJson?.version ?? '', - host: os.hostname(), - ip: getHostIpAddress(), + host: os.hostname(), ...this.defaultLabels };