New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: improve logging #1088
Conversation
private config: DspInstrumentationConfig = inject(DspInstrumentationToken); | ||
private session = inject(SessionService); | ||
constructor() { | ||
this.buildTag$.pipe(first()).subscribe((tag) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you unsubscribe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first does it automatically after the first value is received.
}); | ||
} | ||
// if session is valid: setActiveUser | ||
this.session.isSessionValid().subscribe((response: boolean) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you unsubscribe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nowhere. This is already existing code and out of scope for this round.
import { z } from 'zod'; | ||
import { inject } from '@angular/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { tap, map } from 'rxjs/operators'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you use "tap"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nowhere. will remove it.
private config: DspInstrumentationConfig = inject(DspInstrumentationToken); | ||
|
||
constructor() { | ||
this.buildTag$.pipe(first()).subscribe((tag) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you unsubscribe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small stuffs
Thanks for the review! |
resolves DEV-