Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Observability FAQ

Answers to common questions about AI observability, session logs, and AI message history in DNotifier. Use this page to find the right flag (observability, logs, saveHistory) quickly.


How do I do AI observability?

Enable workflow observability so multi-agent runs appear in Dashboard → Workflows:

  1. Set observability: true on your Workflow

  2. Use transport: "http" and await connect()

  3. Call runWorkflow — read executionId from the result

  4. Open that execution in the dashboard

const workflow = new DNotifier.Workflow({
  name: "my-pipeline",
  observability: true,
  async entry(ctx) {
    return ctx.runAgent("drafter");
  },
});

const run = await notifier.runWorkflow({ workflow, input: "..." });
console.log(run.executionId);

→ Step-by-step: How to enable AI workflow observability


How do I enable logs?

Pass logs: true when you construct DNotifier:

Every subsequent sendAI records session start/complete (and model / tokens when available) under Dashboard → Logs.

You cannot toggle logging per sendAI call — it is constructor-level only.

→ Guide: How to enable session logs


How do I save AI message history?

On each sendAI, set saveHistory: true (this is the default):

Set saveHistory: false for internal/ephemeral prompts (for example intent classification inside a workflow).

→ Guide: How to save AI message history


What is the difference between logs, saveHistory, and observability?

Setting
Purpose
Where to look

logs: true

Ops telemetry for AI sessions

Dashboard Logs

saveHistory: true

Persist turns for your product

fetchAIHistory

observability: true

Trace workflow / agent steps

Dashboard Workflows

They are independent. Production AI products typically enable all three.

→ Overview: Observability overview


Why is my workflow not showing in the dashboard?

Usually observability is false (or omitted). With observability off, the SDK never registers the workflow or creates an execution.

Also check:

  • You called await notifier.connect() before runWorkflow

  • You are looking under Workflows, not Logs

  • The workflow name matches what you expect

→ AI workflow observability


Why are Logs empty after sendAI?

logs defaults to false. Set logs: true on the constructor, reconnect, and call sendAI again.

Also confirm you are viewing Logs for the same app (appId) you authenticated with.

→ Enable session logs


Does observability include provider and model?

Yes. On ctx.sendAI steps, observability records:

  1. provider / model from the call, else

  2. Agent defaults from defineAgent({ provider, model }), else

  3. For model, the project default from auth (current_model)

Session logs (logs: true) also store the effective model the same way.

→ Send a prompt — provider / model


Should workflow internal sendAI calls use saveHistory?

Usually saveHistory: false for routing/classification steps, and true for the user-visible assistant reply. That keeps fetchAIHistory clean for your UI while observability still records the internal steps when observability: true.


Can I use logs and observability together?

Yes. Recommended for production:


Is AI history the same as chat history?

No.

  • AI history — turns from sendAI (saveHistory)

  • Chat history — realtime user-to-user messages (send + fetchChatHistory)

→ AI history · Chat history


Last updated