We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9d5fc commit 472c5abCopy full SHA for 472c5ab
apps/server/src/observability/Metrics.ts
@@ -155,11 +155,11 @@ export const providerTurnMetricAttributes = (input: {
155
readonly provider: string;
156
readonly model: string | null | undefined;
157
readonly extra?: Readonly<Record<string, unknown>>;
158
-}) =>
159
- compactMetricAttributes({
+}) => {
+ const modelFamily = normalizeModelMetricLabel(input.model);
160
+ return compactMetricAttributes({
161
provider: input.provider,
- ...(normalizeModelMetricLabel(input.model)
162
- ? { modelFamily: normalizeModelMetricLabel(input.model) }
163
- : {}),
+ ...(modelFamily ? { modelFamily } : {}),
164
...input.extra,
165
});
+};
0 commit comments