Skip to content

Commit f3d4739

Browse files
committed
Add tags parameter to makeTelemetryDiagnostic
1 parent 8aa21b4 commit f3d4739

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

lib/entry-points.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/diagnostics.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ export function makeTelemetryDiagnostic(
272272
id: string,
273273
name: string,
274274
attributes: { [key: string]: any },
275+
tags?: DiagnosticTag[],
275276
): DiagnosticMessage {
276277
return makeDiagnostic(id, name, {
277278
attributes,
@@ -280,5 +281,8 @@ export function makeTelemetryDiagnostic(
280281
statusPage: false,
281282
telemetry: true,
282283
},
284+
source: {
285+
tags,
286+
},
283287
});
284288
}

0 commit comments

Comments
 (0)