Skip to content

Commit

Permalink
fix: opentelemetry generation not working
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Mar 14, 2024
1 parent f8d7d33 commit 3e1fe99
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
1 change: 0 additions & 1 deletion helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { isHavingPoetryLockFile, tryPoetryRun } from "./poetry";
import { installPythonTemplate } from "./python";
import { downloadAndExtractRepo } from "./repo";
import {
CommunityProjectConfig,
FileSourceConfig,
InstallTemplateArgs,
TemplateDataSource,
Expand Down
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ async function run(): Promise<void> {
postInstallAction: program.postInstallAction,
dataSource: program.dataSource,
tools: program.tools,
observability: program.observability,
});
conf.set("preferences", preferences);

Expand Down
31 changes: 17 additions & 14 deletions questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,21 +434,24 @@ export const askQuestions = async (
if (!program.observability) {
if (ciInfo.isCI) {
program.observability = getPrefOrDefault("observability");
}
} else {
const { observability } = await prompts({
type: "select",
name: "observability",
message: "Would you like to set up observability?",
choices: [
{ title: "No", value: "none" },
{ title: "OpenTelemetry", value: "opentelemetry" },
],
initial: 0,
});
} else {
const { observability } = await prompts(
{
type: "select",
name: "observability",
message: "Would you like to set up observability?",
choices: [
{ title: "No", value: "none" },
{ title: "OpenTelemetry", value: "opentelemetry" },
],
initial: 0,
},
handlers,
);

program.observability = observability;
preferences.observability = observability;
program.observability = observability;
preferences.observability = observability;
}
}
}

Expand Down

0 comments on commit 3e1fe99

Please sign in to comment.