n8n-nodes-databricks-api
Version:
Databricks node for n8n
20 lines • 741 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTracingConfig = getTracingConfig;
function getTracingConfig(context, config = {}) {
var _a;
const parentRunManager = context.getParentCallbackManager
? context.getParentCallbackManager()
: undefined;
return {
runName: `[${context.getWorkflow().name}] ${context.getNode().name}`,
metadata: {
execution_id: context.getExecutionId(),
workflow: context.getWorkflow(),
node: context.getNode().name,
...((_a = config.additionalMetadata) !== null && _a !== void 0 ? _a : {}),
},
callbacks: parentRunManager,
};
}
//# sourceMappingURL=tracing.js.map