Skip to content

Commit

Permalink
disable defaults when loading config
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerTorres committed Jan 22, 2024
1 parent dc73214 commit 8fa44a5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/views/CHConfigEditorHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ export const useConfigDefaults = (options: DataSourceSettings<CHConfig>, onOptio
// TODO: Should OTel be enabled by default for new datasources?

if (!jsonData.logs) {
jsonData.logs = {
// defaultTable: latestOtelVersion.logsTable,
// otelEnabled: true,
// otelVersion: latestOtelVersion.version
};
// jsonData.logs = {
// defaultTable: latestOtelVersion.logsTable,
// otelEnabled: true,
// otelVersion: latestOtelVersion.version
// };
}

if (!jsonData.traces) {
jsonData.traces = {
// defaultTable: latestOtelVersion.traceTable,
// otelEnabled: true,
// otelVersion: latestOtelVersion.version
};
// jsonData.traces = {
// defaultTable: latestOtelVersion.traceTable,
// otelEnabled: true,
// otelVersion: latestOtelVersion.version
// };
}

onOptionsChange({
Expand Down

0 comments on commit 8fa44a5

Please sign in to comment.