diff --git a/src/app/services/monitoring/opentelemetry/opentelemetry.ts b/src/app/services/monitoring/opentelemetry/opentelemetry.ts index 78ceb77bc..766504b2b 100644 --- a/src/app/services/monitoring/opentelemetry/opentelemetry.ts +++ b/src/app/services/monitoring/opentelemetry/opentelemetry.ts @@ -13,7 +13,7 @@ function createProvider(serviceName) { provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter())); provider.addSpanProcessor(new SimpleSpanProcessor(new ZipkinExporter({ - url: 'http://5.180.182.151:9411/api/v2/spans', + url: 'https://5-180-182-151.cloud-xip.com:85/zipkin-endpoint/api/v2/spans', serviceName: serviceName, // Uncomment and customize the following if needed // getExportRequestHeaders: () => { diff --git a/src/app/services/monitoring/opentelemetry/tracer.ts b/src/app/services/monitoring/opentelemetry/tracer.ts index ab8176062..9322de5df 100644 --- a/src/app/services/monitoring/opentelemetry/tracer.ts +++ b/src/app/services/monitoring/opentelemetry/tracer.ts @@ -95,19 +95,11 @@ export function XTracerAsync({ name, bugPrint, module = null, autoFinish = true try { const result = await originalMethod.apply(this, args); - if(!window.location.origin.includes('https')) { - if(autoFinish) { - tracing.finish() - } - } + tracing.finish() return result } catch (e) { - - if(!window.location.origin.includes('https')) { - if(autoFinish) { - tracing.finish() - } - } + tracing.setAttribute('catch', 'true') + tracing.finish() console.error(e); return false } @@ -135,15 +127,12 @@ export function XTracer({ name, bugPrint, module, autoFinish = true }) { try { const result = originalMethod.apply(this, args); - if(!window.location.origin.includes('https')) { - tracing.finish() - } + tracing.finish() return result } catch (e) { - if(!window.location.origin.includes('https')) { - tracing.finish() - } + tracing.setAttribute('catch', 'true') + tracing.finish() console.error(e); return false } diff --git a/src/app/shared/agenda/edit-event/edit-event.page.html b/src/app/shared/agenda/edit-event/edit-event.page.html index ac1456ca1..9ce9c679a 100644 --- a/src/app/shared/agenda/edit-event/edit-event.page.html +++ b/src/app/shared/agenda/edit-event/edit-event.page.html @@ -408,7 +408,6 @@

- {{ document | json }} {{document.subject || document.sourceName || document.SourceName || 'Sem título'}} Correspondencia AccoesPresidenciais