Skip to content

Commit

Permalink
lmendoza/sep-24
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Sep 25, 2024
1 parent d080b14 commit d3dd2a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export class CustomEventService {
* @param attributes Additional attributes to store with the journey
*/
startJourney(journeyType: JourneyType, attributes: any = {}): void {


// Record the start time and initial attributes
this.journeys[journeyType] = {
startTime: Date.now(),
Expand All @@ -29,7 +27,7 @@ export class CustomEventService {

if (environment.debugger) {
console.debug(
`-> Journey "${journeyType}" started at ${this.journeys[journeyType].startTime}`
`-> Journey "${journeyType}" started at ${this.journeys[journeyType].startTime}`, attributes
)
}
}
Expand Down Expand Up @@ -66,9 +64,9 @@ export class CustomEventService {

if (environment.debugger) {
console.debug(
`-> Event "${eventName}" recorded for journey "${journeyType}" with elapsed time ${elapsedTime}ms`
`-> Event "${eventName}" recorded for journey "${journeyType}" with elapsed time ${elapsedTime}ms`,
eventAttributes
)
console.log(eventAttributes)
}
}

Expand Down Expand Up @@ -100,9 +98,8 @@ export class CustomEventService {
// Clean up the journey data
delete this.journeys[journeyType]

console.log(
`Journey "${journeyType}" finished with elapsed time ${elapsedTime}ms`,
console.log(finalAttributes)
console.debug(
`Journey "${journeyType}" finished with elapsed time ${elapsedTime}ms`, finalAttributes
)
}
}
3 changes: 0 additions & 3 deletions src/app/register2/register-observability.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ export class RegisterObservabilityService {
}

stepC2NextButtonClicked(form: UntypedFormGroup) {
console.log(form)

this._observability.recordEvent(
'orcid_registration',
'step-c2-next-button-clicked',
Expand All @@ -97,7 +95,6 @@ export class RegisterObservabilityService {
}

stepC2SkipButtonClicked(form: UntypedFormGroup) {
console.log(form)
this._observability.recordEvent(
'orcid_registration',
'step-c2-skip-button-clicked',
Expand Down

0 comments on commit d3dd2a6

Please sign in to comment.