mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve open telemetry tracing
This commit is contained in:
@@ -906,4 +906,4 @@
|
||||
[style.display]="showDiplomasGerar ? 'flex' : 'none'"></app-diplomas-gerars>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-content>
|
||||
|
||||
@@ -59,6 +59,10 @@ const createTracingInstance = ({bugPrint, name, module, autoFinish}): TracingTyp
|
||||
setAttribute: (key: string, value: string) => {
|
||||
data.tags[key] = value;
|
||||
span.setAttribute(key, value);
|
||||
|
||||
if(key =='outcome' && value == 'failed') {
|
||||
span.setAttribute('error', 'true')
|
||||
}
|
||||
},
|
||||
getAttribute: (key: string) => {
|
||||
return data.tags[key]
|
||||
|
||||
@@ -504,7 +504,6 @@ export class NotificationsService {
|
||||
if(!validationError.success) {
|
||||
const errors: z.ZodError<any> = (validationError as any).error;
|
||||
console.log("Validation errors:", errors.issues);
|
||||
tracing.setAttribute('parameters', JSON.stringify(notification))
|
||||
tracing.setAttribute('validation.errors', JSON.stringify(errors.issues))
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
export let versionData = {
|
||||
"shortSHA": "36bf94866",
|
||||
"SHA": "36bf948660c744b25a4eb62bdcf584049f26965b",
|
||||
"shortSHA": "23cf0fc4c",
|
||||
"SHA": "23cf0fc4cbaa27c66e763f32c2c0533cce6a4442",
|
||||
"branch": "feature/agenda-api-peter",
|
||||
"lastCommitAuthor": "'Peter Maquiran'",
|
||||
"lastCommitTime": "'Mon Jul 15 14:27:17 2024 +0100'",
|
||||
"lastCommitMessage": "add attendies",
|
||||
"lastCommitNumber": "5868",
|
||||
"changeStatus": "On branch feature/agenda-api-peter\nYour branch is ahead of 'origin/feature/agenda-api-peter' by 1 commit.\n (use \"git push\" to publish your local commits)\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/guards/auth.guard.ts\n\tmodified: src/app/guards/inactivity.guard.ts\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n\tmodified: src/app/pages/agenda/agenda.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts\n\tmodified: src/app/pages/inactivity/inactivity.page.ts\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/services/events.service.ts\n\tmodified: src/app/services/first-enter.service.ts\n\tmodified: version/git-version.ts",
|
||||
"lastCommitTime": "'Mon Jul 15 15:11:29 2024 +0100'",
|
||||
"lastCommitMessage": "remove alert",
|
||||
"lastCommitNumber": "5869",
|
||||
"changeStatus": "On branch feature/agenda-api-peter\nYour branch is up to date with 'origin/feature/agenda-api-peter'.\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/services/monitoring/opentelemetry/tracer.ts\n\tmodified: src/app/services/notifications.service.ts\n\tmodified: version/git-version.ts\n\nChanges not staged for commit:\n (use \"git add <file>...\" to update what will be committed)\n (use \"git restore <file>...\" to discard changes in working directory)\n\tmodified: src/app/services/monitoring/opentelemetry/opentelemetry.ts\n\tmodified: version/git-version.ts",
|
||||
"changeAuthor": "peter.maquiran"
|
||||
}
|
||||
Reference in New Issue
Block a user