mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
change ZipkinExporter port
This commit is contained in:
@@ -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: () => {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -408,7 +408,6 @@
|
||||
<ion-item class="width-100">
|
||||
<ion-label class="width-100">
|
||||
<p class="d-flex ion-justify-content-between">
|
||||
{{ document | json }}
|
||||
<span class="attach-title-item">{{document.subject || document.sourceName || document.SourceName || 'Sem título'}}</span>
|
||||
<span class="app-name" *ngIf="document.applicationId == 8 || document.ApplicationId == 8"> Correspondencia </span>
|
||||
<span class="app-name" *ngIf="document.applicationId == 386 || document.ApplicationId == 386"> AccoesPresidenciais </span>
|
||||
|
||||
Reference in New Issue
Block a user