Add tags parameter to makeTelemetryDiagnostic

This commit is contained in:
Michael B. Gale
2026-07-14 19:13:36 +01:00
parent 8aa21b44a3
commit f3d47397e8
2 changed files with 8 additions and 1 deletions

5
lib/entry-points.js generated
View File

@@ -147779,13 +147779,16 @@ function flushDiagnostics(config) {
unwrittenDiagnostics = [];
unwrittenDefaultLanguageDiagnostics = [];
}
function makeTelemetryDiagnostic(id, name, attributes) {
function makeTelemetryDiagnostic(id, name, attributes, tags) {
return makeDiagnostic(id, name, {
attributes,
visibility: {
cliSummaryTable: false,
statusPage: false,
telemetry: true
},
source: {
tags
}
});
}

View File

@@ -272,6 +272,7 @@ export function makeTelemetryDiagnostic(
id: string,
name: string,
attributes: { [key: string]: any },
tags?: DiagnosticTag[],
): DiagnosticMessage {
return makeDiagnostic(id, name, {
attributes,
@@ -280,5 +281,8 @@ export function makeTelemetryDiagnostic(
statusPage: false,
telemetry: true,
},
source: {
tags,
},
});
}