add opentelemetr logging

This commit is contained in:
Peter Maquiran
2024-07-22 13:28:52 +01:00
parent cd1c61fe86
commit f4589aa96e
12 changed files with 243 additions and 55 deletions
@@ -22,12 +22,12 @@ export class MessageRepositoryService {
private messageLiveSignalRDataSourceService: SignalRService,
private messageLocalDataSourceService: MessageLocalDataSourceService
) {
this.messageLiveDataSourceService.socket.messages$.subscribe(({payload, requestId, type}) => {
// this.messageLiveDataSourceService.socket.messages$.subscribe(({payload, requestId, type}) => {
})
// })
}
@@ -44,10 +44,10 @@ export class MessageRepositoryService {
const localActionResult = await this.messageLocalDataSourceService.sendMessage(data)
this.messageLiveDataSourceService.sendMessage({
type: 'sendMessage',
payload: data
})
// this.messageLiveDataSourceService.sendMessage({
// type: 'sendMessage',
// payload: data
// })
if(localActionResult.isOk()) {
@@ -170,10 +170,10 @@ export class RoomRepositoryService {
if(result.isOk()) {
const result = await this.roomLocalDataSourceService.deleteRoomById(id)
this.messageLiveDataSourceService.sendMessage({
type: 'createRoom',
payload: {a: '5'}
})
// this.messageLiveDataSourceService.sendMessage({
// type: 'createRoom',
// payload: {a: '5'}
// })
return result
} else if (isHttpResponse(result.error)) {
@@ -216,10 +216,10 @@ export class RoomRepositoryService {
// this.roomMemoryDataSourceService.dispatch(addRoom(result.value))
const localResult = await this.roomLocalDataSourceService.createRoom(result.value.data)
this.messageLiveDataSourceService.sendMessage({
type: 'createRoom',
payload: {a: '5'}
})
// this.messageLiveDataSourceService.sendMessage({
// type: 'createRoom',
// payload: {a: '5'}
// })
return localResult.map(e => result.value)
}