mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
dont send logs on production
This commit is contained in:
@@ -2,6 +2,7 @@ import { Injectable } from "@angular/core";
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { WebSocketGraylogService } from "../socket/socket";
|
||||
import { Span } from "@opentelemetry/sdk-trace-web";
|
||||
import { environment } from "src/environments/environment";
|
||||
|
||||
|
||||
export class OpenTelemetryLogging {
|
||||
@@ -9,7 +10,11 @@ export class OpenTelemetryLogging {
|
||||
socket = new WebSocketGraylogService()
|
||||
|
||||
constructor() {
|
||||
this.socket.start()
|
||||
|
||||
if(environment.apiURL != 'https://gdqas-api.oapr.gov.ao/api/') {
|
||||
this.socket.start()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
send(data: Object & { type: string; payload: any, spanContext:any }): void {
|
||||
|
||||
Reference in New Issue
Block a user