Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/commands/explore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,19 @@ export const exploreCommand = buildListCommand("explore", {
);

let dataset = flags.dataset;
const userSuppliedFields = flags.field && flags.field.length > 0;
const rawField = flags.field
? ([] as string[]).concat(flags.field)
: undefined;
const userSuppliedFields = rawField && rawField.length > 0;
let fieldList = [...defaultFieldsForDataset(dataset)];
if (userSuppliedFields) {
fieldList = flags.field;
fieldList = rawField;
}
const timeRange = flags.period;
const environment = parseReplayEnvironmentFilter(flags.environment);
const rawEnvironment = flags.environment
? ([] as string[]).concat(flags.environment)
: undefined;
const environment = parseReplayEnvironmentFilter(rawEnvironment);

// --metric auto mode: resolve metric name → tracemetrics aggregate
if (flags.metric) {
Expand Down
Loading