mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add opentelemetr logging
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user