-
Notifications
You must be signed in to change notification settings - Fork 946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[backend] use component name in traces and fix warn issue.(#8352)(#8310) #8625
Conversation
opencti-platform/opencti-graphql/src/manager/playbookManager.ts
Outdated
Show resolved
Hide resolved
opencti-platform/opencti-graphql/src/modules/playbook/playbook-domain.ts
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8625 +/- ##
==========================================
+ Coverage 65.93% 65.97% +0.03%
==========================================
Files 597 597
Lines 60694 60720 +26
Branches 6201 6229 +28
==========================================
+ Hits 40021 40057 +36
+ Misses 20673 20663 -10 ☔ View full report in Codecov by Sentry. |
@@ -110,7 +110,7 @@ const PLAYBOOK_LOGGER_COMPONENT_SCHEMA: JSONSchemaType<LoggerConfiguration> = { | |||
oneOf: [ | |||
{ const: 'debug', title: 'debug' }, | |||
{ const: 'info', title: 'info' }, | |||
{ const: 'warning', title: 'warning' }, | |||
{ const: 'warn', title: 'warn' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok but I don't know how to test this part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ok 👌
@@ -157,7 +157,7 @@ export const playbookExecutor = async ({ | |||
const durationDiff = end.diff(start); | |||
const duration = moment.duration(durationDiff); | |||
const observation: ObservationFn = { | |||
message: `${nextStep.component.name.trim()} successfully executed in ${duration.humanize()}`, | |||
message: `${nextStep.instance.name.trim()} successfully executed in ${duration.humanize()}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
locally tested ok 👌
Proposed changes
Related issues
Checklist
Further comments