diff --git a/public/app/core/logsModel.ts b/public/app/core/logsModel.ts index 888b292d8e8..a642e4e239d 100644 --- a/public/app/core/logsModel.ts +++ b/public/app/core/logsModel.ts @@ -40,7 +40,7 @@ import { BarAlignment, GraphDrawStyle, StackingMode } from '@grafana/schema'; import { ansicolor, colors } from '@grafana/ui'; import { getThemeColor } from 'app/core/utils/colors'; -import { Attributes, LogsFrame, parseLogsFrame } from '../features/logs/logsFrame'; +import { LogsFrame, parseLogsFrame } from '../features/logs/logsFrame'; import { getLogLevel, getLogLevelFromKey, sortInAscendingOrder } from '../features/logs/utils'; export const LIMIT_LABEL = 'Line limit'; @@ -316,16 +316,6 @@ interface LogInfo { frameLabels?: Labels[]; } -export function attributesToLabels(attributes: Attributes): Labels { - const result: Labels = {}; - - Object.entries(attributes).forEach(([k, v]) => { - result[k] = typeof v === 'string' ? v : JSON.stringify(v); - }); - - return result; -} - /** * Converts dataFrames into LogsModel. This involves merging them into one list, sorting them and computing metadata * like common labels.