Using your existing observability setup

Since Inferable workflows execute in your own infrastructure, logging, tracing and monitoring is as easy as adding your existing observability tools into the workflow.

import { logger, span } from "./my-observability-library";

workflow.version(1).define(async (ctx, input) => {
  const value = ctx.llm.structured({ ... });

  // This will log to stdout
  console.log("Hello, world!");

  // This will log the value to your observability tool
  logger.info("And the value is", value);
});

Timeline View

Inferable app provides a near real-time view of the workflow timeline, as it happens.

Logger Utility

Inferable also provides a ctx.log function that can be used to send arbitrary messages and data to the workflow timeline.

workflow.version(1).define(async (ctx, input) => {
  await ctx.log("info", {
    message: "Starting workflow",
  });
});

You can also send arbitrary data to the workflow timeline.

await ctx.log("info", {
  message: "My API call Result",
  data: {
    value: apiResult.data,
  },
});