add tracing tags

This commit is contained in:
Peter Maquiran
2024-07-31 09:35:35 +01:00
parent edcaf951c2
commit 2d2f00cb4c
9 changed files with 51 additions and 53 deletions
@@ -3,6 +3,7 @@ import { HttpService } from 'src/app/services/http.service';
import { environment } from 'src/environments/environment';
import { IProfilePictureInputDTO } from '../dto/profilePictureInputDTO';
import { HttpHeaders } from '@angular/common/http';
import { TracingType } from 'src/app/services/monitoring/opentelemetry/tracer';
@Injectable({
providedIn: 'root'
@@ -13,14 +14,14 @@ export class UserRemoteRepositoryService {
private httpService: HttpService
) { }
getUserProfilePhoto(guid: string) {
getUserProfilePhoto(guid: string, tracing?: TracingType) {
const geturl = environment.apiURL + 'UserAuthentication/GetPhoto';
const params = {
UserPhoto: guid
}
return this.httpService.get<string>(`${geturl}`, params);
return this.httpService.get<string>(`${geturl}`, params, tracing);
}
addUserProfilePhoto(data: IProfilePictureInputDTO) {
@@ -33,7 +34,7 @@ export class UserRemoteRepositoryService {
let options = {
headers: http
};
return this.httpService.post<string>(`${geturl}`, data, options);
}
}