Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions packages/init/src/SliceMachineInitProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export class SliceMachineInitProcess {
await this.manager.telemetry.track({
event: "command:init:start",
repository: this.options.repository,
starter: this.options.starter,
});

await this.detectEnvironment();
Expand Down Expand Up @@ -202,6 +203,7 @@ export class SliceMachineInitProcess {
event: "command:init:end",
framework: this.context.framework.sliceMachineTelemetryID,
repository: this.context.repository.domain,
starter: this.options.starter,
success: true,
});

Expand Down Expand Up @@ -300,6 +302,7 @@ Continue with next steps in Slice Machine.
event: "command:init:end",
framework: this.context.framework?.sliceMachineTelemetryID ?? "unknown",
repository: this.context.repository?.domain || "",
starter: this.options.starter,
success: false,
error: safeError,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"file-type": "^18.2.1",
"fp-ts": "^2.13.1",
"get-port": "^6.1.2",
"h3": "^1.15.5",
"h3": "^1.15.6",
"io-ts": "^2.2.20",
"io-ts-reporters": "^2.0.1",
"io-ts-types": "^0.5.19",
Expand Down
5 changes: 3 additions & 2 deletions packages/manager/src/managers/telemetry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ type SegmentEvent<
} & TProperties;

type CommandInitStartSegmentEvent = SegmentEvent<
typeof SegmentEventType.command_init_start
typeof SegmentEventType.command_init_start,
{ starter?: string }
>;

// This event feels off, we have a dedicated `identify` method...
Expand All @@ -177,7 +178,7 @@ type CommandInitIdentifySegmentEvent = SegmentEvent<

type CommandInitEndSegmentEvent = SegmentEvent<
typeof SegmentEventType.command_init_end,
{ framework: string; success: boolean; error?: string }
{ framework: string; success: boolean; starter?: string; error?: string }
>;

type SliceSimulatorOpenSegmentEvent = SegmentEvent<
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11027,7 +11027,7 @@ __metadata:
file-type: ^18.2.1
fp-ts: ^2.13.1
get-port: ^6.1.2
h3: ^1.15.5
h3: ^1.15.6
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to update this for the CI audit to pass.

hook-std: 3.0.0
io-ts: ^2.2.20
io-ts-reporters: ^2.0.1
Expand Down Expand Up @@ -22855,9 +22855,9 @@ __metadata:
languageName: node
linkType: hard

"h3@npm:^1.12.0, h3@npm:^1.15.1, h3@npm:^1.15.2, h3@npm:^1.15.3, h3@npm:^1.15.5":
version: 1.15.5
resolution: "h3@npm:1.15.5"
"h3@npm:^1.12.0, h3@npm:^1.15.1, h3@npm:^1.15.2, h3@npm:^1.15.3, h3@npm:^1.15.6":
version: 1.15.10
resolution: "h3@npm:1.15.10"
dependencies:
cookie-es: ^1.2.2
crossws: ^0.3.5
Expand All @@ -22868,7 +22868,7 @@ __metadata:
radix3: ^1.1.2
ufo: ^1.6.3
uncrypto: ^0.1.3
checksum: 455f58681de2b789b39af45067db8dde35234c18d86ec5068687300aae3c0225f85edcd110906493e087407e2caaa1f292352769c484284e72558d7677c29899
checksum: b7fb212acc20dca36b892af710beee2294bb3cf4c6f03445435bbbc791ec28903f18bd64cb526e4e62a4ee80658be4039639ca5fb0d67b3486dcbd4c83e92f15
languageName: node
linkType: hard

Expand Down
Loading