@respan/cli 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,19 @@
1
1
  /**
2
- * Frozen snapshot of the demo traces, supplied by the team as ready-to-POST OTLP v2
3
- * bodies (the `trace-bodies/` dataset: a 22-span, 6-LLM-call multi-agent AI Service
4
- * Desk run across two tenants). Source of truth for the traces portion of `respan demo`.
2
+ * Frozen snapshot of the demo traces as ready-to-POST OTLP v2 bodies: a multi-agent
3
+ * AI Service Desk run across two tenants, 17 spans each. Four agents (triage,
4
+ * identity, knowledge, notification) hand off to each other, each making one
5
+ * gpt-6.1-sol call and one tool call, plus a RAG embedding. Source of truth for the
6
+ * traces portion of `respan demo`.
5
7
  *
6
- * Each `body` is a complete OTLP/JSON payload for `POST /api/v2/traces`, captured
7
- * VERBATIM. The seeder (`seed-traces.ts`) re-stamps fresh trace/span ids and recent
8
+ * Span names follow the SDKs' semantic style (`llm.<model>`, `agent.<name>`,
9
+ * `tool.<name>`, `handoff.<from>_to_<to>`, `embedding`; see
10
+ * contribution/writing-instrumentations.md), and handoff spans carry
11
+ * `respan.entity.log_type: handoff`. Derived from the team's original
12
+ * `trace-bodies/` dataset by dropping the Vercel AI SDK wrapper spans
13
+ * (`ai.generateText`, `ai.embed`) and moving the LLM calls to gpt-6.1-sol.
14
+ *
15
+ * Each `body` is a complete OTLP/JSON payload for `POST /api/v2/traces`. The
16
+ * seeder (`seed-traces.ts`) re-stamps fresh trace/span ids and recent
8
17
  * timestamps on each fresh seed, and sets the root span's name to `workflow` (below)
9
18
  * so it shows in the dashboard Workflow column and is unique per trace — the dataset
10
19
  * repeats some scenarios with a byte-identical root span, and a unique root name keeps
@@ -19,61 +28,61 @@ export const DEMO_TRACES = [
19
28
  {
20
29
  name: "Northwind Bank \u00b7 vpn access (access-recovery)",
21
30
  workflow: "demo.northwind-vpn_access-01",
22
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "15cac46715431270", "parentSpanId": "03cca1576288c191", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817783294000000", "endTimeUnixNano": "1781817784354000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "109" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "26" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "135" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nI'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "03cca1576288c191", "parentSpanId": "9c27efe3135c757e", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817783292000000", "endTimeUnixNano": "1781817784354000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "3e25c3378a049a28", "parentSpanId": "9c27efe3135c757e", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817784355000000", "endTimeUnixNano": "1781817784416000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "9c27efe3135c757e", "parentSpanId": "4314d2ac5e0ed582", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817783290000000", "endTimeUnixNano": "1781817784416000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "d351ec8db510da5d", "parentSpanId": "4314d2ac5e0ed582", "name": "handoff: triage → identity", "kind": 1, "startTimeUnixNano": "1781817784417000000", "endTimeUnixNano": "1781817784417000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "530c68276feb8d36", "parentSpanId": "9148b1000d4514d9", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784422000000", "endTimeUnixNano": "1781817785762000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "117" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "41" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "158" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Northwind Bank. Require step-up verification (AD / Okta) before restoring access. Never reset access without a verified identity, and log every action for SOX audit." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage: Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "9148b1000d4514d9", "parentSpanId": "42a1358046be183f", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784420000000", "endTimeUnixNano": "1781817785762000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "78728b847db6c903", "parentSpanId": "42a1358046be183f", "name": "reset_access.tool", "kind": 1, "startTimeUnixNano": "1781817785763000000", "endTimeUnixNano": "1781817785904000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"ActiveDirectory\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "42a1358046be183f", "parentSpanId": "4314d2ac5e0ed582", "name": "identity-service.agent", "kind": 1, "startTimeUnixNano": "1781817784418000000", "endTimeUnixNano": "1781817785904000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "05dfcb23c8003311", "parentSpanId": "4314d2ac5e0ed582", "name": "handoff: identity → knowledge", "kind": 1, "startTimeUnixNano": "1781817785905000000", "endTimeUnixNano": "1781817785905000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "55d1c4b67fe16925", "parentSpanId": "a6b67679cbc4c70a", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785910000000", "endTimeUnixNano": "1781817786824000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "116" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "26" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "142" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "a6b67679cbc4c70a", "parentSpanId": "17458b9acf14b854", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785908000000", "endTimeUnixNano": "1781817786824000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "4516dd44c5d9d460", "parentSpanId": "e6304d2909073abf", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817786827000000", "endTimeUnixNano": "1781817787070000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "e6304d2909073abf", "parentSpanId": "17458b9acf14b854", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817786825000000", "endTimeUnixNano": "1781817787070000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "f230e039e6b388a5", "parentSpanId": "17458b9acf14b854", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787071000000", "endTimeUnixNano": "1781817787192000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "17458b9acf14b854", "parentSpanId": "4314d2ac5e0ed582", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817785906000000", "endTimeUnixNano": "1781817787192000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "12bf0368acddc694", "parentSpanId": "4314d2ac5e0ed582", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787193000000", "endTimeUnixNano": "1781817787194000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "271abc1eb52d8edc", "parentSpanId": "e951032646d1fe9a", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787199000000", "endTimeUnixNano": "1781817788181000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "101" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "120" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nTo recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "e951032646d1fe9a", "parentSpanId": "99c306aa2a29488b", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787197000000", "endTimeUnixNano": "1781817788181000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "123ac72a5c540c1a", "parentSpanId": "99c306aa2a29488b", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788182000000", "endTimeUnixNano": "1781817788252000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "99c306aa2a29488b", "parentSpanId": "4314d2ac5e0ed582", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787195000000", "endTimeUnixNano": "1781817788252000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "4314d2ac5e0ed582", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783288000000", "endTimeUnixNano": "1781817789088000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }] }] }] },
31
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "15cac46715431270", "parentSpanId": "9c27efe3135c757e", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817783294000000", "endTimeUnixNano": "1781817784354000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "109" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "26" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "135" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nI'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "3e25c3378a049a28", "parentSpanId": "9c27efe3135c757e", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817784355000000", "endTimeUnixNano": "1781817784416000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "9c27efe3135c757e", "parentSpanId": "4314d2ac5e0ed582", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817783290000000", "endTimeUnixNano": "1781817784416000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "d351ec8db510da5d", "parentSpanId": "4314d2ac5e0ed582", "name": "handoff.triage_to_identity", "kind": 1, "startTimeUnixNano": "1781817784417000000", "endTimeUnixNano": "1781817784417000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "530c68276feb8d36", "parentSpanId": "42a1358046be183f", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784422000000", "endTimeUnixNano": "1781817785762000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "117" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "41" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "158" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Northwind Bank. Require step-up verification (AD / Okta) before restoring access. Never reset access without a verified identity, and log every action for SOX audit." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage: Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "78728b847db6c903", "parentSpanId": "42a1358046be183f", "name": "tool.reset_access", "kind": 1, "startTimeUnixNano": "1781817785763000000", "endTimeUnixNano": "1781817785904000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"ActiveDirectory\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "reset_access" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "42a1358046be183f", "parentSpanId": "4314d2ac5e0ed582", "name": "agent.identity", "kind": 1, "startTimeUnixNano": "1781817784418000000", "endTimeUnixNano": "1781817785904000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "identity" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "05dfcb23c8003311", "parentSpanId": "4314d2ac5e0ed582", "name": "handoff.identity_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817785905000000", "endTimeUnixNano": "1781817785905000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "55d1c4b67fe16925", "parentSpanId": "17458b9acf14b854", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785910000000", "endTimeUnixNano": "1781817786824000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "116" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "26" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "142" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "4516dd44c5d9d460", "parentSpanId": "17458b9acf14b854", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817786827000000", "endTimeUnixNano": "1781817787070000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "f230e039e6b388a5", "parentSpanId": "17458b9acf14b854", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787071000000", "endTimeUnixNano": "1781817787192000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "17458b9acf14b854", "parentSpanId": "4314d2ac5e0ed582", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817785906000000", "endTimeUnixNano": "1781817787192000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "12bf0368acddc694", "parentSpanId": "4314d2ac5e0ed582", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787193000000", "endTimeUnixNano": "1781817787194000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "271abc1eb52d8edc", "parentSpanId": "99c306aa2a29488b", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787199000000", "endTimeUnixNano": "1781817788181000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "101" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "120" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nTo recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "123ac72a5c540c1a", "parentSpanId": "99c306aa2a29488b", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788182000000", "endTimeUnixNano": "1781817788252000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "99c306aa2a29488b", "parentSpanId": "4314d2ac5e0ed582", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787195000000", "endTimeUnixNano": "1781817788252000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "6393fdac53dad78e7cd8f8c04b1b2642", "spanId": "4314d2ac5e0ed582", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783288000000", "endTimeUnixNano": "1781817789088000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }] }] }] },
23
32
  },
24
33
  {
25
34
  name: "Meridian Health \u00b7 portal outage (incident-response)",
26
35
  workflow: "demo.meridian-portal_outage-02",
27
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "e43a285449b5e659", "parentSpanId": "e23d515a8ff91b1a", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784755000000", "endTimeUnixNano": "1781817785411000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "117" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "18" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "135" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "e23d515a8ff91b1a", "parentSpanId": "1b5bc83e1a4af7c9", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784753000000", "endTimeUnixNano": "1781817785411000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "4692c757d0849482", "parentSpanId": "1b5bc83e1a4af7c9", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785412000000", "endTimeUnixNano": "1781817785476000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "1b5bc83e1a4af7c9", "parentSpanId": "fe8cbb45af9b9804", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784751000000", "endTimeUnixNano": "1781817785476000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "eab2f51080c21528", "parentSpanId": "fe8cbb45af9b9804", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785477000000", "endTimeUnixNano": "1781817785477000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "5e4035b72aa814c8", "parentSpanId": "839942a795c449c7", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785482000000", "endTimeUnixNano": "1781817786193000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "121" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "47" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "168" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "839942a795c449c7", "parentSpanId": "46c63e626b65de69", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785480000000", "endTimeUnixNano": "1781817786193000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "b667780b44adea80", "parentSpanId": "46c63e626b65de69", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786194000000", "endTimeUnixNano": "1781817786355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "46c63e626b65de69", "parentSpanId": "fe8cbb45af9b9804", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785478000000", "endTimeUnixNano": "1781817786355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "30c100bd88340365", "parentSpanId": "fe8cbb45af9b9804", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786356000000", "endTimeUnixNano": "1781817786356000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "aa319023201946fa", "parentSpanId": "864731300cc50b55", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786361000000", "endTimeUnixNano": "1781817787051000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "107" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "38" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "145" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "864731300cc50b55", "parentSpanId": "9596bde20af4099b", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786359000000", "endTimeUnixNano": "1781817787051000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "2a64d56f985f41a6", "parentSpanId": "a7e52e8e3d7b7a72", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787054000000", "endTimeUnixNano": "1781817787500000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "a7e52e8e3d7b7a72", "parentSpanId": "9596bde20af4099b", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787052000000", "endTimeUnixNano": "1781817787500000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "bba9703b7962771b", "parentSpanId": "9596bde20af4099b", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787501000000", "endTimeUnixNano": "1781817787621000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "9596bde20af4099b", "parentSpanId": "fe8cbb45af9b9804", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786357000000", "endTimeUnixNano": "1781817787621000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "6a0b5ba50dfddc7f", "parentSpanId": "fe8cbb45af9b9804", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787622000000", "endTimeUnixNano": "1781817787623000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "3c344134d92a577a", "parentSpanId": "c0192bc100701ed0", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787628000000", "endTimeUnixNano": "1781817788169000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "99" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "120" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "c0192bc100701ed0", "parentSpanId": "111ceb5f2dc88ff7", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787626000000", "endTimeUnixNano": "1781817788169000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "cb5dd0dd5616ef47", "parentSpanId": "111ceb5f2dc88ff7", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788170000000", "endTimeUnixNano": "1781817788244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "111ceb5f2dc88ff7", "parentSpanId": "fe8cbb45af9b9804", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787624000000", "endTimeUnixNano": "1781817788244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "fe8cbb45af9b9804", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784749000000", "endTimeUnixNano": "1781817789109000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
36
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "e43a285449b5e659", "parentSpanId": "1b5bc83e1a4af7c9", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784755000000", "endTimeUnixNano": "1781817785411000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "117" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "18" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "135" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "4692c757d0849482", "parentSpanId": "1b5bc83e1a4af7c9", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785412000000", "endTimeUnixNano": "1781817785476000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "1b5bc83e1a4af7c9", "parentSpanId": "fe8cbb45af9b9804", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784751000000", "endTimeUnixNano": "1781817785476000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "eab2f51080c21528", "parentSpanId": "fe8cbb45af9b9804", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785477000000", "endTimeUnixNano": "1781817785477000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "5e4035b72aa814c8", "parentSpanId": "46c63e626b65de69", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785482000000", "endTimeUnixNano": "1781817786193000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "121" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "47" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "168" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "b667780b44adea80", "parentSpanId": "46c63e626b65de69", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786194000000", "endTimeUnixNano": "1781817786355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "46c63e626b65de69", "parentSpanId": "fe8cbb45af9b9804", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785478000000", "endTimeUnixNano": "1781817786355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "30c100bd88340365", "parentSpanId": "fe8cbb45af9b9804", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786356000000", "endTimeUnixNano": "1781817786356000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "aa319023201946fa", "parentSpanId": "9596bde20af4099b", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786361000000", "endTimeUnixNano": "1781817787051000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "107" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "38" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "145" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "2a64d56f985f41a6", "parentSpanId": "9596bde20af4099b", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787054000000", "endTimeUnixNano": "1781817787500000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "bba9703b7962771b", "parentSpanId": "9596bde20af4099b", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787501000000", "endTimeUnixNano": "1781817787621000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "9596bde20af4099b", "parentSpanId": "fe8cbb45af9b9804", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786357000000", "endTimeUnixNano": "1781817787621000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "6a0b5ba50dfddc7f", "parentSpanId": "fe8cbb45af9b9804", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787622000000", "endTimeUnixNano": "1781817787623000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "3c344134d92a577a", "parentSpanId": "111ceb5f2dc88ff7", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787628000000", "endTimeUnixNano": "1781817788169000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "99" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "120" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "cb5dd0dd5616ef47", "parentSpanId": "111ceb5f2dc88ff7", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788170000000", "endTimeUnixNano": "1781817788244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "111ceb5f2dc88ff7", "parentSpanId": "fe8cbb45af9b9804", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787624000000", "endTimeUnixNano": "1781817788244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "ad78d41511671dc3bb688f3b6f68973d", "spanId": "fe8cbb45af9b9804", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784749000000", "endTimeUnixNano": "1781817789109000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
28
37
  },
29
38
  {
30
39
  name: "Northwind Bank \u00b7 laptop down (incident-response)",
31
40
  workflow: "demo.northwind-laptop_down-03",
32
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "7bebb1ab38e524da", "parentSpanId": "3ee02be034a26e22", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784774000000", "endTimeUnixNano": "1781817785430000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "108" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "18" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "3ee02be034a26e22", "parentSpanId": "76adb722372d8b37", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784772000000", "endTimeUnixNano": "1781817785430000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "de1c5ebb4bf06b31", "parentSpanId": "76adb722372d8b37", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785431000000", "endTimeUnixNano": "1781817785495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "76adb722372d8b37", "parentSpanId": "fe3608fda1fbe3f3", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784770000000", "endTimeUnixNano": "1781817785495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "711a23c69b139596", "parentSpanId": "fe3608fda1fbe3f3", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785496000000", "endTimeUnixNano": "1781817785496000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "e09ce25272614912", "parentSpanId": "d8803b2378d59826", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785501000000", "endTimeUnixNano": "1781817786212000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "127" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "47" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "174" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Northwind Bank. Search the CMDB / ServiceNow for known incidents, open or update a ticket, and report a clear status with the ticket reference." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "d8803b2378d59826", "parentSpanId": "9f0768c286512657", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785499000000", "endTimeUnixNano": "1781817786212000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "601a80a33d718759", "parentSpanId": "9f0768c286512657", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786213000000", "endTimeUnixNano": "1781817786374000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"ServiceNow\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "9f0768c286512657", "parentSpanId": "fe3608fda1fbe3f3", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785497000000", "endTimeUnixNano": "1781817786374000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "cc6ae1b491a12ebc", "parentSpanId": "fe3608fda1fbe3f3", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786375000000", "endTimeUnixNano": "1781817786375000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "143b063a8560db8e", "parentSpanId": "972ef8c26102ce8d", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786380000000", "endTimeUnixNano": "1781817787070000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "113" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "148" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "972ef8c26102ce8d", "parentSpanId": "53178a5ca4b21d44", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786378000000", "endTimeUnixNano": "1781817787070000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "76f1fb7473edb0fc", "parentSpanId": "ff3477f813200092", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787073000000", "endTimeUnixNano": "1781817787519000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "ff3477f813200092", "parentSpanId": "53178a5ca4b21d44", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787071000000", "endTimeUnixNano": "1781817787519000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "ef9068690145af40", "parentSpanId": "53178a5ca4b21d44", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787520000000", "endTimeUnixNano": "1781817787640000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "53178a5ca4b21d44", "parentSpanId": "fe3608fda1fbe3f3", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786376000000", "endTimeUnixNano": "1781817787640000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "2547715bae994e4c", "parentSpanId": "fe3608fda1fbe3f3", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787641000000", "endTimeUnixNano": "1781817787642000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "dc377ce1514a763f", "parentSpanId": "f3a6c07d650015b8", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787647000000", "endTimeUnixNano": "1781817788188000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "97" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "118" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "f3a6c07d650015b8", "parentSpanId": "9118cae84ead4a19", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787645000000", "endTimeUnixNano": "1781817788188000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "68bc9b39a6a970e0", "parentSpanId": "9118cae84ead4a19", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788189000000", "endTimeUnixNano": "1781817788263000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "9118cae84ead4a19", "parentSpanId": "fe3608fda1fbe3f3", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787643000000", "endTimeUnixNano": "1781817788263000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "fe3608fda1fbe3f3", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784768000000", "endTimeUnixNano": "1781817789128000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
41
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "7bebb1ab38e524da", "parentSpanId": "76adb722372d8b37", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784774000000", "endTimeUnixNano": "1781817785430000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "108" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "18" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "de1c5ebb4bf06b31", "parentSpanId": "76adb722372d8b37", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785431000000", "endTimeUnixNano": "1781817785495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "76adb722372d8b37", "parentSpanId": "fe3608fda1fbe3f3", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784770000000", "endTimeUnixNano": "1781817785495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "711a23c69b139596", "parentSpanId": "fe3608fda1fbe3f3", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785496000000", "endTimeUnixNano": "1781817785496000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "e09ce25272614912", "parentSpanId": "9f0768c286512657", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785501000000", "endTimeUnixNano": "1781817786212000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "127" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "47" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "174" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Northwind Bank. Search the CMDB / ServiceNow for known incidents, open or update a ticket, and report a clear status with the ticket reference." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "601a80a33d718759", "parentSpanId": "9f0768c286512657", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786213000000", "endTimeUnixNano": "1781817786374000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"ServiceNow\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "9f0768c286512657", "parentSpanId": "fe3608fda1fbe3f3", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785497000000", "endTimeUnixNano": "1781817786374000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "cc6ae1b491a12ebc", "parentSpanId": "fe3608fda1fbe3f3", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786375000000", "endTimeUnixNano": "1781817786375000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "143b063a8560db8e", "parentSpanId": "53178a5ca4b21d44", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786380000000", "endTimeUnixNano": "1781817787070000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "113" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "148" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "76f1fb7473edb0fc", "parentSpanId": "53178a5ca4b21d44", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787073000000", "endTimeUnixNano": "1781817787519000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "ef9068690145af40", "parentSpanId": "53178a5ca4b21d44", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787520000000", "endTimeUnixNano": "1781817787640000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "53178a5ca4b21d44", "parentSpanId": "fe3608fda1fbe3f3", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786376000000", "endTimeUnixNano": "1781817787640000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "2547715bae994e4c", "parentSpanId": "fe3608fda1fbe3f3", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787641000000", "endTimeUnixNano": "1781817787642000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "dc377ce1514a763f", "parentSpanId": "9118cae84ead4a19", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787647000000", "endTimeUnixNano": "1781817788188000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "97" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "118" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "68bc9b39a6a970e0", "parentSpanId": "9118cae84ead4a19", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788189000000", "endTimeUnixNano": "1781817788263000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "9118cae84ead4a19", "parentSpanId": "fe3608fda1fbe3f3", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787643000000", "endTimeUnixNano": "1781817788263000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "8857fab8d4578c578bd29aa5788fc2f3", "spanId": "fe3608fda1fbe3f3", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784768000000", "endTimeUnixNano": "1781817789128000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
33
42
  },
34
43
  {
35
44
  name: "Meridian Health \u00b7 laptop down (incident-response)",
36
45
  workflow: "demo.meridian-laptop_down-04",
37
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "bca17c0c8d8197e8", "parentSpanId": "d604a49baf7d641b", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784794000000", "endTimeUnixNano": "1781817785450000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "111" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "130" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "d604a49baf7d641b", "parentSpanId": "18df4259515ad025", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784792000000", "endTimeUnixNano": "1781817785450000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "a0102e2cc1389244", "parentSpanId": "18df4259515ad025", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785451000000", "endTimeUnixNano": "1781817785515000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "18df4259515ad025", "parentSpanId": "1df587aaedd47ac3", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784790000000", "endTimeUnixNano": "1781817785515000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "975a316f02986b40", "parentSpanId": "1df587aaedd47ac3", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785516000000", "endTimeUnixNano": "1781817785516000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "224c061a9ee30846", "parentSpanId": "43ba58e64ecb452d", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785521000000", "endTimeUnixNano": "1781817786232000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "125" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "48" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "173" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "43ba58e64ecb452d", "parentSpanId": "4823982230f2ac25", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785519000000", "endTimeUnixNano": "1781817786232000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "ed13b5db231c3a15", "parentSpanId": "4823982230f2ac25", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786233000000", "endTimeUnixNano": "1781817786394000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "4823982230f2ac25", "parentSpanId": "1df587aaedd47ac3", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785517000000", "endTimeUnixNano": "1781817786394000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "e9c455954f881f43", "parentSpanId": "1df587aaedd47ac3", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786395000000", "endTimeUnixNano": "1781817786395000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "780cf2c19c35b742", "parentSpanId": "601fa6e7d060be3c", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786400000000", "endTimeUnixNano": "1781817787090000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "105" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "34" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "139" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "601fa6e7d060be3c", "parentSpanId": "dcaa141c920206c9", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786398000000", "endTimeUnixNano": "1781817787090000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "0f511d5848935686", "parentSpanId": "91343b6ad709119b", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787093000000", "endTimeUnixNano": "1781817787539000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "91343b6ad709119b", "parentSpanId": "dcaa141c920206c9", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787091000000", "endTimeUnixNano": "1781817787539000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "704d1beae68b9751", "parentSpanId": "dcaa141c920206c9", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787540000000", "endTimeUnixNano": "1781817787660000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "dcaa141c920206c9", "parentSpanId": "1df587aaedd47ac3", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786396000000", "endTimeUnixNano": "1781817787660000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "fe7aa731fa4e022f", "parentSpanId": "1df587aaedd47ac3", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787661000000", "endTimeUnixNano": "1781817787662000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "f3115a32e1a1c065", "parentSpanId": "17537bb29fbdf17e", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787667000000", "endTimeUnixNano": "1781817788208000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "102" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "22" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "124" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "17537bb29fbdf17e", "parentSpanId": "5b602832aaa6e97d", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787665000000", "endTimeUnixNano": "1781817788208000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "5cae0e4f69423094", "parentSpanId": "5b602832aaa6e97d", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788209000000", "endTimeUnixNano": "1781817788283000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "5b602832aaa6e97d", "parentSpanId": "1df587aaedd47ac3", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787663000000", "endTimeUnixNano": "1781817788283000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "1df587aaedd47ac3", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784788000000", "endTimeUnixNano": "1781817789148000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
46
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "bca17c0c8d8197e8", "parentSpanId": "18df4259515ad025", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784794000000", "endTimeUnixNano": "1781817785450000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "111" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "130" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "a0102e2cc1389244", "parentSpanId": "18df4259515ad025", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785451000000", "endTimeUnixNano": "1781817785515000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "18df4259515ad025", "parentSpanId": "1df587aaedd47ac3", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784790000000", "endTimeUnixNano": "1781817785515000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "975a316f02986b40", "parentSpanId": "1df587aaedd47ac3", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785516000000", "endTimeUnixNano": "1781817785516000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "224c061a9ee30846", "parentSpanId": "4823982230f2ac25", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785521000000", "endTimeUnixNano": "1781817786232000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "125" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "48" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "173" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "ed13b5db231c3a15", "parentSpanId": "4823982230f2ac25", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786233000000", "endTimeUnixNano": "1781817786394000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "4823982230f2ac25", "parentSpanId": "1df587aaedd47ac3", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785517000000", "endTimeUnixNano": "1781817786394000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "e9c455954f881f43", "parentSpanId": "1df587aaedd47ac3", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786395000000", "endTimeUnixNano": "1781817786395000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "780cf2c19c35b742", "parentSpanId": "dcaa141c920206c9", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786400000000", "endTimeUnixNano": "1781817787090000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "105" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "34" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "139" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "0f511d5848935686", "parentSpanId": "dcaa141c920206c9", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787093000000", "endTimeUnixNano": "1781817787539000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "704d1beae68b9751", "parentSpanId": "dcaa141c920206c9", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787540000000", "endTimeUnixNano": "1781817787660000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "dcaa141c920206c9", "parentSpanId": "1df587aaedd47ac3", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786396000000", "endTimeUnixNano": "1781817787660000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "fe7aa731fa4e022f", "parentSpanId": "1df587aaedd47ac3", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787661000000", "endTimeUnixNano": "1781817787662000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "f3115a32e1a1c065", "parentSpanId": "5b602832aaa6e97d", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787667000000", "endTimeUnixNano": "1781817788208000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "102" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "22" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "124" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "5cae0e4f69423094", "parentSpanId": "5b602832aaa6e97d", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788209000000", "endTimeUnixNano": "1781817788283000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "5b602832aaa6e97d", "parentSpanId": "1df587aaedd47ac3", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787663000000", "endTimeUnixNano": "1781817788283000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "9d70a6703ad298e49e1d4eec402c5d40", "spanId": "1df587aaedd47ac3", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784788000000", "endTimeUnixNano": "1781817789148000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
38
47
  },
39
48
  {
40
49
  name: "Northwind Bank \u00b7 mfa reset (access-recovery)",
41
50
  workflow: "demo.northwind-mfa_reset-05",
42
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "3f888445843ad518", "parentSpanId": "27f95235f90b6ff8", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817783373000000", "endTimeUnixNano": "1781817784433000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "111" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "28" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "139" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nLost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "27f95235f90b6ff8", "parentSpanId": "95cdea2ad3505bc4", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817783371000000", "endTimeUnixNano": "1781817784433000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "6923d64a4d123d27", "parentSpanId": "95cdea2ad3505bc4", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817784434000000", "endTimeUnixNano": "1781817784495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "95cdea2ad3505bc4", "parentSpanId": "88f1af3e4a1abe87", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817783369000000", "endTimeUnixNano": "1781817784495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "74afc724bce3342b", "parentSpanId": "88f1af3e4a1abe87", "name": "handoff: triage → identity", "kind": 1, "startTimeUnixNano": "1781817784496000000", "endTimeUnixNano": "1781817784496000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "f44df92e20649075", "parentSpanId": "6ab028714d80c70b", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784501000000", "endTimeUnixNano": "1781817785841000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "122" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "38" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "160" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Northwind Bank. Require step-up verification (AD / Okta) before restoring access. Never reset access without a verified identity, and log every action for SOX audit." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage: Category: Access Issue · Priority: High · Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "6ab028714d80c70b", "parentSpanId": "282f1e8092a48a9f", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784499000000", "endTimeUnixNano": "1781817785841000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "dabc351410a07157", "parentSpanId": "282f1e8092a48a9f", "name": "reset_access.tool", "kind": 1, "startTimeUnixNano": "1781817785842000000", "endTimeUnixNano": "1781817785983000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"ActiveDirectory\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "282f1e8092a48a9f", "parentSpanId": "88f1af3e4a1abe87", "name": "identity-service.agent", "kind": 1, "startTimeUnixNano": "1781817784497000000", "endTimeUnixNano": "1781817785983000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "e7941fe6d65a78c3", "parentSpanId": "88f1af3e4a1abe87", "name": "handoff: identity → knowledge", "kind": 1, "startTimeUnixNano": "1781817785984000000", "endTimeUnixNano": "1781817785984000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "c46a229f168e567b", "parentSpanId": "e3ab26c67bc1990c", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785989000000", "endTimeUnixNano": "1781817786903000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "114" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "27" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "141" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "e3ab26c67bc1990c", "parentSpanId": "10b0b56c2b21c79c", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785987000000", "endTimeUnixNano": "1781817786903000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "266c4bde710f38c1", "parentSpanId": "a8bde85568c3b365", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817786906000000", "endTimeUnixNano": "1781817787149000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "a8bde85568c3b365", "parentSpanId": "10b0b56c2b21c79c", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817786904000000", "endTimeUnixNano": "1781817787149000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "bbb5d4aaadf05003", "parentSpanId": "10b0b56c2b21c79c", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787150000000", "endTimeUnixNano": "1781817787271000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "10b0b56c2b21c79c", "parentSpanId": "88f1af3e4a1abe87", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817785985000000", "endTimeUnixNano": "1781817787271000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "95373e15780c3d6a", "parentSpanId": "88f1af3e4a1abe87", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787272000000", "endTimeUnixNano": "1781817787273000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "caf0c9062027cdd9", "parentSpanId": "4c011c6707dba177", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787278000000", "endTimeUnixNano": "1781817788260000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "102" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "20" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "122" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nVerify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "4c011c6707dba177", "parentSpanId": "0188091b6788bf1b", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787276000000", "endTimeUnixNano": "1781817788260000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "204aa84858aff254", "parentSpanId": "0188091b6788bf1b", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788261000000", "endTimeUnixNano": "1781817788331000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "0188091b6788bf1b", "parentSpanId": "88f1af3e4a1abe87", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787274000000", "endTimeUnixNano": "1781817788331000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "88f1af3e4a1abe87", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783367000000", "endTimeUnixNano": "1781817789167000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }] }] }] },
51
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "3f888445843ad518", "parentSpanId": "95cdea2ad3505bc4", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817783373000000", "endTimeUnixNano": "1781817784433000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "111" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "28" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "139" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nLost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "6923d64a4d123d27", "parentSpanId": "95cdea2ad3505bc4", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817784434000000", "endTimeUnixNano": "1781817784495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "95cdea2ad3505bc4", "parentSpanId": "88f1af3e4a1abe87", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817783369000000", "endTimeUnixNano": "1781817784495000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "74afc724bce3342b", "parentSpanId": "88f1af3e4a1abe87", "name": "handoff.triage_to_identity", "kind": 1, "startTimeUnixNano": "1781817784496000000", "endTimeUnixNano": "1781817784496000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "f44df92e20649075", "parentSpanId": "282f1e8092a48a9f", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784501000000", "endTimeUnixNano": "1781817785841000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "122" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "38" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "160" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Northwind Bank. Require step-up verification (AD / Okta) before restoring access. Never reset access without a verified identity, and log every action for SOX audit." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage: Category: Access Issue · Priority: High · Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "dabc351410a07157", "parentSpanId": "282f1e8092a48a9f", "name": "tool.reset_access", "kind": 1, "startTimeUnixNano": "1781817785842000000", "endTimeUnixNano": "1781817785983000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"ActiveDirectory\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "reset_access" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "282f1e8092a48a9f", "parentSpanId": "88f1af3e4a1abe87", "name": "agent.identity", "kind": 1, "startTimeUnixNano": "1781817784497000000", "endTimeUnixNano": "1781817785983000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "identity" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "e7941fe6d65a78c3", "parentSpanId": "88f1af3e4a1abe87", "name": "handoff.identity_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817785984000000", "endTimeUnixNano": "1781817785984000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "c46a229f168e567b", "parentSpanId": "10b0b56c2b21c79c", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785989000000", "endTimeUnixNano": "1781817786903000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "114" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "27" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "141" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "266c4bde710f38c1", "parentSpanId": "10b0b56c2b21c79c", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817786906000000", "endTimeUnixNano": "1781817787149000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "bbb5d4aaadf05003", "parentSpanId": "10b0b56c2b21c79c", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787150000000", "endTimeUnixNano": "1781817787271000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "10b0b56c2b21c79c", "parentSpanId": "88f1af3e4a1abe87", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817785985000000", "endTimeUnixNano": "1781817787271000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "95373e15780c3d6a", "parentSpanId": "88f1af3e4a1abe87", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787272000000", "endTimeUnixNano": "1781817787273000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "caf0c9062027cdd9", "parentSpanId": "0188091b6788bf1b", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787278000000", "endTimeUnixNano": "1781817788260000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "102" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "20" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "122" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nVerify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "204aa84858aff254", "parentSpanId": "0188091b6788bf1b", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788261000000", "endTimeUnixNano": "1781817788331000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "0188091b6788bf1b", "parentSpanId": "88f1af3e4a1abe87", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787274000000", "endTimeUnixNano": "1781817788331000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "9b70145661813593d4240032c1c8db44", "spanId": "88f1af3e4a1abe87", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783367000000", "endTimeUnixNano": "1781817789167000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }] }] }] },
43
52
  },
44
53
  {
45
54
  name: "Northwind Bank \u00b7 portal outage (incident-response)",
46
55
  workflow: "demo.northwind-portal_outage-06",
47
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "c3947b216bd1c575", "parentSpanId": "641a083529672746", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784836000000", "endTimeUnixNano": "1781817785492000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "119" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "138" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "641a083529672746", "parentSpanId": "3e8a4d7db2ed0cd4", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784834000000", "endTimeUnixNano": "1781817785492000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "b6a83974e5d51273", "parentSpanId": "3e8a4d7db2ed0cd4", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785493000000", "endTimeUnixNano": "1781817785557000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "3e8a4d7db2ed0cd4", "parentSpanId": "0e2b9ed54b597ca2", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784832000000", "endTimeUnixNano": "1781817785557000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "068b00328305dcb5", "parentSpanId": "0e2b9ed54b597ca2", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785558000000", "endTimeUnixNano": "1781817785558000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "9101065acadc66c8", "parentSpanId": "98fa6f7c73566c95", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785563000000", "endTimeUnixNano": "1781817786274000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "46" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "172" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Northwind Bank. Search the CMDB / ServiceNow for known incidents, open or update a ticket, and report a clear status with the ticket reference." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "98fa6f7c73566c95", "parentSpanId": "f1b3b4dcf39a94f5", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785561000000", "endTimeUnixNano": "1781817786274000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "a2bc19e6f873590b", "parentSpanId": "f1b3b4dcf39a94f5", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786275000000", "endTimeUnixNano": "1781817786436000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"ServiceNow\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "f1b3b4dcf39a94f5", "parentSpanId": "0e2b9ed54b597ca2", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785559000000", "endTimeUnixNano": "1781817786436000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "a24b554b3ff38341", "parentSpanId": "0e2b9ed54b597ca2", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786437000000", "endTimeUnixNano": "1781817786437000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "90bf63a4222fb629", "parentSpanId": "95c03e0de73b1f82", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786442000000", "endTimeUnixNano": "1781817787132000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "110" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "145" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "95c03e0de73b1f82", "parentSpanId": "45a82c854d175eeb", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786440000000", "endTimeUnixNano": "1781817787132000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "38c97097a56ce5e3", "parentSpanId": "a290afa0fa52670d", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787135000000", "endTimeUnixNano": "1781817787581000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "a290afa0fa52670d", "parentSpanId": "45a82c854d175eeb", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787133000000", "endTimeUnixNano": "1781817787581000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "5abe3fc984101d67", "parentSpanId": "45a82c854d175eeb", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787582000000", "endTimeUnixNano": "1781817787702000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "45a82c854d175eeb", "parentSpanId": "0e2b9ed54b597ca2", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786438000000", "endTimeUnixNano": "1781817787702000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "b60763ba3580fefc", "parentSpanId": "0e2b9ed54b597ca2", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787703000000", "endTimeUnixNano": "1781817787704000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "329d50634c9a8e90", "parentSpanId": "22d06147d4e40e40", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787709000000", "endTimeUnixNano": "1781817788250000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "105" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "22" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "127" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "22d06147d4e40e40", "parentSpanId": "25881c4d51a00ef6", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787707000000", "endTimeUnixNano": "1781817788250000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "ae6128021c6b16d6", "parentSpanId": "25881c4d51a00ef6", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788251000000", "endTimeUnixNano": "1781817788325000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "25881c4d51a00ef6", "parentSpanId": "0e2b9ed54b597ca2", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787705000000", "endTimeUnixNano": "1781817788325000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "0e2b9ed54b597ca2", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784830000000", "endTimeUnixNano": "1781817789190000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
56
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "c3947b216bd1c575", "parentSpanId": "3e8a4d7db2ed0cd4", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784836000000", "endTimeUnixNano": "1781817785492000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "119" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "138" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "b6a83974e5d51273", "parentSpanId": "3e8a4d7db2ed0cd4", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785493000000", "endTimeUnixNano": "1781817785557000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "3e8a4d7db2ed0cd4", "parentSpanId": "0e2b9ed54b597ca2", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784832000000", "endTimeUnixNano": "1781817785557000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "068b00328305dcb5", "parentSpanId": "0e2b9ed54b597ca2", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785558000000", "endTimeUnixNano": "1781817785558000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "9101065acadc66c8", "parentSpanId": "f1b3b4dcf39a94f5", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785563000000", "endTimeUnixNano": "1781817786274000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "46" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "172" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Northwind Bank. Search the CMDB / ServiceNow for known incidents, open or update a ticket, and report a clear status with the ticket reference." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "a2bc19e6f873590b", "parentSpanId": "f1b3b4dcf39a94f5", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786275000000", "endTimeUnixNano": "1781817786436000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"ServiceNow\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "f1b3b4dcf39a94f5", "parentSpanId": "0e2b9ed54b597ca2", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785559000000", "endTimeUnixNano": "1781817786436000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "a24b554b3ff38341", "parentSpanId": "0e2b9ed54b597ca2", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786437000000", "endTimeUnixNano": "1781817786437000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "90bf63a4222fb629", "parentSpanId": "45a82c854d175eeb", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786442000000", "endTimeUnixNano": "1781817787132000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "110" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "145" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "38c97097a56ce5e3", "parentSpanId": "45a82c854d175eeb", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787135000000", "endTimeUnixNano": "1781817787581000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "5abe3fc984101d67", "parentSpanId": "45a82c854d175eeb", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787582000000", "endTimeUnixNano": "1781817787702000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "45a82c854d175eeb", "parentSpanId": "0e2b9ed54b597ca2", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786438000000", "endTimeUnixNano": "1781817787702000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "b60763ba3580fefc", "parentSpanId": "0e2b9ed54b597ca2", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787703000000", "endTimeUnixNano": "1781817787704000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "329d50634c9a8e90", "parentSpanId": "25881c4d51a00ef6", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787709000000", "endTimeUnixNano": "1781817788250000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "105" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "22" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "127" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "ae6128021c6b16d6", "parentSpanId": "25881c4d51a00ef6", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788251000000", "endTimeUnixNano": "1781817788325000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "25881c4d51a00ef6", "parentSpanId": "0e2b9ed54b597ca2", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787705000000", "endTimeUnixNano": "1781817788325000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "105f20ee35cfb4f05c7f2fffae360076", "spanId": "0e2b9ed54b597ca2", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784830000000", "endTimeUnixNano": "1781817789190000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
48
57
  },
49
58
  {
50
59
  name: "Meridian Health \u00b7 portal outage (incident-response)",
51
60
  workflow: "demo.meridian-portal_outage-07",
52
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "96c74b9920166908", "parentSpanId": "b73999e139342626", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784855000000", "endTimeUnixNano": "1781817785511000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "120" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "137" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "b73999e139342626", "parentSpanId": "d946799fa660ab18", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784853000000", "endTimeUnixNano": "1781817785511000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "332e7aa118fb8905", "parentSpanId": "d946799fa660ab18", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785512000000", "endTimeUnixNano": "1781817785576000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "d946799fa660ab18", "parentSpanId": "6b57f922c33d417c", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784851000000", "endTimeUnixNano": "1781817785576000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "f913615faf5bd9eb", "parentSpanId": "6b57f922c33d417c", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785577000000", "endTimeUnixNano": "1781817785577000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "034b25a9a3e3c909", "parentSpanId": "27ac0dc27b3d8f18", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785582000000", "endTimeUnixNano": "1781817786293000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "125" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "46" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "171" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "27ac0dc27b3d8f18", "parentSpanId": "aa112db3616bf887", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785580000000", "endTimeUnixNano": "1781817786293000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "cc802dc9adb8c6d7", "parentSpanId": "aa112db3616bf887", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786294000000", "endTimeUnixNano": "1781817786455000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "aa112db3616bf887", "parentSpanId": "6b57f922c33d417c", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785578000000", "endTimeUnixNano": "1781817786455000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "d10926cc9875607e", "parentSpanId": "6b57f922c33d417c", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786456000000", "endTimeUnixNano": "1781817786456000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "41f3626f6e0e0e1c", "parentSpanId": "de271de16db6a65a", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786461000000", "endTimeUnixNano": "1781817787151000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "116" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "38" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "154" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "de271de16db6a65a", "parentSpanId": "ac8b68dd6eacf479", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786459000000", "endTimeUnixNano": "1781817787151000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "1e52d8072be22041", "parentSpanId": "fd06b3527efd40b3", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787154000000", "endTimeUnixNano": "1781817787600000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "fd06b3527efd40b3", "parentSpanId": "ac8b68dd6eacf479", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787152000000", "endTimeUnixNano": "1781817787600000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "3ca9f955c304d7c5", "parentSpanId": "ac8b68dd6eacf479", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787601000000", "endTimeUnixNano": "1781817787721000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "ac8b68dd6eacf479", "parentSpanId": "6b57f922c33d417c", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786457000000", "endTimeUnixNano": "1781817787721000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "e2903a8d975aac94", "parentSpanId": "6b57f922c33d417c", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787722000000", "endTimeUnixNano": "1781817787723000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "c85ccf4b7653129a", "parentSpanId": "61121ee546a22929", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787728000000", "endTimeUnixNano": "1781817788269000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "107" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "61121ee546a22929", "parentSpanId": "5ef57a880f0709c7", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787726000000", "endTimeUnixNano": "1781817788269000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "0cff4c870f0ef7ff", "parentSpanId": "5ef57a880f0709c7", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788270000000", "endTimeUnixNano": "1781817788344000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "5ef57a880f0709c7", "parentSpanId": "6b57f922c33d417c", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787724000000", "endTimeUnixNano": "1781817788344000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "6b57f922c33d417c", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784849000000", "endTimeUnixNano": "1781817789209000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
61
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "96c74b9920166908", "parentSpanId": "d946799fa660ab18", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784855000000", "endTimeUnixNano": "1781817785511000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "120" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "137" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "332e7aa118fb8905", "parentSpanId": "d946799fa660ab18", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785512000000", "endTimeUnixNano": "1781817785576000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "d946799fa660ab18", "parentSpanId": "6b57f922c33d417c", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784851000000", "endTimeUnixNano": "1781817785576000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "f913615faf5bd9eb", "parentSpanId": "6b57f922c33d417c", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785577000000", "endTimeUnixNano": "1781817785577000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "034b25a9a3e3c909", "parentSpanId": "aa112db3616bf887", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785582000000", "endTimeUnixNano": "1781817786293000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "125" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "46" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "171" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "cc802dc9adb8c6d7", "parentSpanId": "aa112db3616bf887", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786294000000", "endTimeUnixNano": "1781817786455000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "aa112db3616bf887", "parentSpanId": "6b57f922c33d417c", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785578000000", "endTimeUnixNano": "1781817786455000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "d10926cc9875607e", "parentSpanId": "6b57f922c33d417c", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786456000000", "endTimeUnixNano": "1781817786456000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "41f3626f6e0e0e1c", "parentSpanId": "ac8b68dd6eacf479", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786461000000", "endTimeUnixNano": "1781817787151000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "116" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "38" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "154" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "1e52d8072be22041", "parentSpanId": "ac8b68dd6eacf479", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787154000000", "endTimeUnixNano": "1781817787600000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "3ca9f955c304d7c5", "parentSpanId": "ac8b68dd6eacf479", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787601000000", "endTimeUnixNano": "1781817787721000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "ac8b68dd6eacf479", "parentSpanId": "6b57f922c33d417c", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786457000000", "endTimeUnixNano": "1781817787721000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "e2903a8d975aac94", "parentSpanId": "6b57f922c33d417c", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787722000000", "endTimeUnixNano": "1781817787723000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "c85ccf4b7653129a", "parentSpanId": "5ef57a880f0709c7", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787728000000", "endTimeUnixNano": "1781817788269000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "107" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "0cff4c870f0ef7ff", "parentSpanId": "5ef57a880f0709c7", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788270000000", "endTimeUnixNano": "1781817788344000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "5ef57a880f0709c7", "parentSpanId": "6b57f922c33d417c", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787724000000", "endTimeUnixNano": "1781817788344000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "f36f48ac6aadd105956996e3cbb38c30", "spanId": "6b57f922c33d417c", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784849000000", "endTimeUnixNano": "1781817789209000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
53
62
  },
54
63
  {
55
64
  name: "Northwind Bank \u00b7 laptop down (incident-response)",
56
65
  workflow: "demo.northwind-laptop_down-08",
57
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "cee4214738bb8a73", "parentSpanId": "42f944ba82a13453", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784873000000", "endTimeUnixNano": "1781817785529000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "111" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "42f944ba82a13453", "parentSpanId": "f936aee20680393c", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784871000000", "endTimeUnixNano": "1781817785529000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "4ae5eb0ac39226a3", "parentSpanId": "f936aee20680393c", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785530000000", "endTimeUnixNano": "1781817785594000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "f936aee20680393c", "parentSpanId": "ca37184e14016669", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784869000000", "endTimeUnixNano": "1781817785594000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "23e9f1b85e8f5caa", "parentSpanId": "ca37184e14016669", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785595000000", "endTimeUnixNano": "1781817785595000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "a052d926f233f353", "parentSpanId": "75f301dc19dc5281", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785600000000", "endTimeUnixNano": "1781817786311000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "129" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "46" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "175" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Northwind Bank. Search the CMDB / ServiceNow for known incidents, open or update a ticket, and report a clear status with the ticket reference." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "75f301dc19dc5281", "parentSpanId": "35f9dd7a7edf9691", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785598000000", "endTimeUnixNano": "1781817786311000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "cefec12dfd1b27f2", "parentSpanId": "35f9dd7a7edf9691", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786312000000", "endTimeUnixNano": "1781817786473000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"ServiceNow\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "35f9dd7a7edf9691", "parentSpanId": "ca37184e14016669", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785596000000", "endTimeUnixNano": "1781817786473000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "996e87a181935b0e", "parentSpanId": "ca37184e14016669", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786474000000", "endTimeUnixNano": "1781817786474000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "8c07695cd2eb7b8c", "parentSpanId": "aae5ca65d1c96fc7", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786479000000", "endTimeUnixNano": "1781817787169000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "115" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "34" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "149" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "aae5ca65d1c96fc7", "parentSpanId": "95de39f9277f3c18", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786477000000", "endTimeUnixNano": "1781817787169000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "9b54e569698fc656", "parentSpanId": "d88fd591a0f39c21", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787172000000", "endTimeUnixNano": "1781817787618000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "d88fd591a0f39c21", "parentSpanId": "95de39f9277f3c18", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787170000000", "endTimeUnixNano": "1781817787618000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "1800d46fff14ce14", "parentSpanId": "95de39f9277f3c18", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787619000000", "endTimeUnixNano": "1781817787739000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "95de39f9277f3c18", "parentSpanId": "ca37184e14016669", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786475000000", "endTimeUnixNano": "1781817787739000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "0506762e9dde8dd2", "parentSpanId": "ca37184e14016669", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787740000000", "endTimeUnixNano": "1781817787741000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "aa636e20c570fd24", "parentSpanId": "d61c84861eee9ec5", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787746000000", "endTimeUnixNano": "1781817788287000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "97" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "118" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "d61c84861eee9ec5", "parentSpanId": "2f03a7a283cb22e8", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787744000000", "endTimeUnixNano": "1781817788287000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "bc9f0a88312956af", "parentSpanId": "2f03a7a283cb22e8", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788288000000", "endTimeUnixNano": "1781817788362000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "2f03a7a283cb22e8", "parentSpanId": "ca37184e14016669", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787742000000", "endTimeUnixNano": "1781817788362000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "ca37184e14016669", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784867000000", "endTimeUnixNano": "1781817789227000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
66
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "cee4214738bb8a73", "parentSpanId": "f936aee20680393c", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784873000000", "endTimeUnixNano": "1781817785529000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "111" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "4ae5eb0ac39226a3", "parentSpanId": "f936aee20680393c", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785530000000", "endTimeUnixNano": "1781817785594000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "f936aee20680393c", "parentSpanId": "ca37184e14016669", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784869000000", "endTimeUnixNano": "1781817785594000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "23e9f1b85e8f5caa", "parentSpanId": "ca37184e14016669", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785595000000", "endTimeUnixNano": "1781817785595000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "a052d926f233f353", "parentSpanId": "35f9dd7a7edf9691", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785600000000", "endTimeUnixNano": "1781817786311000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "129" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "46" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "175" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Northwind Bank. Search the CMDB / ServiceNow for known incidents, open or update a ticket, and report a clear status with the ticket reference." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "cefec12dfd1b27f2", "parentSpanId": "35f9dd7a7edf9691", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786312000000", "endTimeUnixNano": "1781817786473000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"ServiceNow\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "35f9dd7a7edf9691", "parentSpanId": "ca37184e14016669", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785596000000", "endTimeUnixNano": "1781817786473000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "996e87a181935b0e", "parentSpanId": "ca37184e14016669", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786474000000", "endTimeUnixNano": "1781817786474000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "8c07695cd2eb7b8c", "parentSpanId": "95de39f9277f3c18", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786479000000", "endTimeUnixNano": "1781817787169000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "115" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "34" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "149" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "9b54e569698fc656", "parentSpanId": "95de39f9277f3c18", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787172000000", "endTimeUnixNano": "1781817787618000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "1800d46fff14ce14", "parentSpanId": "95de39f9277f3c18", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787619000000", "endTimeUnixNano": "1781817787739000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "95de39f9277f3c18", "parentSpanId": "ca37184e14016669", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786475000000", "endTimeUnixNano": "1781817787739000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "0506762e9dde8dd2", "parentSpanId": "ca37184e14016669", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787740000000", "endTimeUnixNano": "1781817787741000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "aa636e20c570fd24", "parentSpanId": "2f03a7a283cb22e8", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787746000000", "endTimeUnixNano": "1781817788287000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "97" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "118" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "bc9f0a88312956af", "parentSpanId": "2f03a7a283cb22e8", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788288000000", "endTimeUnixNano": "1781817788362000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "2f03a7a283cb22e8", "parentSpanId": "ca37184e14016669", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787742000000", "endTimeUnixNano": "1781817788362000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "3d95234fb8cafdd1be011909ca1ffec1", "spanId": "ca37184e14016669", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784867000000", "endTimeUnixNano": "1781817789227000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
58
67
  },
59
68
  {
60
69
  name: "Northwind Bank \u00b7 vpn access (access-recovery)",
61
70
  workflow: "demo.northwind-vpn_access-09",
62
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "3ff5c343a7e03583", "parentSpanId": "77604aa20aa7268e", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817783451000000", "endTimeUnixNano": "1781817784511000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "103" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "29" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "132" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nI'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "77604aa20aa7268e", "parentSpanId": "f8caa40911b7eabf", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817783449000000", "endTimeUnixNano": "1781817784511000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "332eccd51910be36", "parentSpanId": "f8caa40911b7eabf", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817784512000000", "endTimeUnixNano": "1781817784573000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "f8caa40911b7eabf", "parentSpanId": "5cdbf4b4017f8024", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817783447000000", "endTimeUnixNano": "1781817784573000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "38817a830432a6a0", "parentSpanId": "5cdbf4b4017f8024", "name": "handoff: triage → identity", "kind": 1, "startTimeUnixNano": "1781817784574000000", "endTimeUnixNano": "1781817784574000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "ad49328f7c01b82f", "parentSpanId": "908b9a49dc627d13", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784579000000", "endTimeUnixNano": "1781817785919000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "130" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "40" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "170" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Northwind Bank. Require step-up verification (AD / Okta) before restoring access. Never reset access without a verified identity, and log every action for SOX audit." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage: Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "908b9a49dc627d13", "parentSpanId": "9ec9648cc800c81f", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784577000000", "endTimeUnixNano": "1781817785919000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "b1f76c39f7349b9c", "parentSpanId": "9ec9648cc800c81f", "name": "reset_access.tool", "kind": 1, "startTimeUnixNano": "1781817785920000000", "endTimeUnixNano": "1781817786061000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"ActiveDirectory\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "9ec9648cc800c81f", "parentSpanId": "5cdbf4b4017f8024", "name": "identity-service.agent", "kind": 1, "startTimeUnixNano": "1781817784575000000", "endTimeUnixNano": "1781817786061000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "c7de85d6c60ca0dd", "parentSpanId": "5cdbf4b4017f8024", "name": "handoff: identity → knowledge", "kind": 1, "startTimeUnixNano": "1781817786062000000", "endTimeUnixNano": "1781817786062000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "394ade0fb816073c", "parentSpanId": "936447f616c79979", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786067000000", "endTimeUnixNano": "1781817786981000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "109" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "27" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "136" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "936447f616c79979", "parentSpanId": "0c050121bc1c23dc", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786065000000", "endTimeUnixNano": "1781817786981000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "a966157754270c0f", "parentSpanId": "0abb0423e96c040c", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817786984000000", "endTimeUnixNano": "1781817787227000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "0abb0423e96c040c", "parentSpanId": "0c050121bc1c23dc", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817786982000000", "endTimeUnixNano": "1781817787227000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "7752e121ca700e15", "parentSpanId": "0c050121bc1c23dc", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787228000000", "endTimeUnixNano": "1781817787349000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "0c050121bc1c23dc", "parentSpanId": "5cdbf4b4017f8024", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786063000000", "endTimeUnixNano": "1781817787349000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "2bc7f50fec7d3b34", "parentSpanId": "5cdbf4b4017f8024", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787350000000", "endTimeUnixNano": "1781817787351000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "ba8968a847a3579f", "parentSpanId": "e1c67c5f0133bdf3", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787356000000", "endTimeUnixNano": "1781817788338000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "107" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nTo recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "e1c67c5f0133bdf3", "parentSpanId": "181a07d907480cf7", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787354000000", "endTimeUnixNano": "1781817788338000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "05dea0686d8861d1", "parentSpanId": "181a07d907480cf7", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788339000000", "endTimeUnixNano": "1781817788409000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "181a07d907480cf7", "parentSpanId": "5cdbf4b4017f8024", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787352000000", "endTimeUnixNano": "1781817788409000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "5cdbf4b4017f8024", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783445000000", "endTimeUnixNano": "1781817789245000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }] }] }] },
71
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "3ff5c343a7e03583", "parentSpanId": "f8caa40911b7eabf", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817783451000000", "endTimeUnixNano": "1781817784511000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "103" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "29" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "132" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Northwind Bank, a financial-services IT service desk operating under SOX controls. Classify category and priority, flag anything touching financial systems or audit scope, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nI'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "332eccd51910be36", "parentSpanId": "f8caa40911b7eabf", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817784512000000", "endTimeUnixNano": "1781817784573000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "f8caa40911b7eabf", "parentSpanId": "5cdbf4b4017f8024", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817783447000000", "endTimeUnixNano": "1781817784573000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "38817a830432a6a0", "parentSpanId": "5cdbf4b4017f8024", "name": "handoff.triage_to_identity", "kind": 1, "startTimeUnixNano": "1781817784574000000", "endTimeUnixNano": "1781817784574000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "ad49328f7c01b82f", "parentSpanId": "9ec9648cc800c81f", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784579000000", "endTimeUnixNano": "1781817785919000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "130" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "40" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "170" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Northwind Bank. Require step-up verification (AD / Okta) before restoring access. Never reset access without a verified identity, and log every action for SOX audit." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nTriage: Category: Access Issue · Priority: High · Flagged: touches financial systems (month-end close). Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "b1f76c39f7349b9c", "parentSpanId": "9ec9648cc800c81f", "name": "tool.reset_access", "kind": 1, "startTimeUnixNano": "1781817785920000000", "endTimeUnixNano": "1781817786061000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"ActiveDirectory\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "reset_access" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "9ec9648cc800c81f", "parentSpanId": "5cdbf4b4017f8024", "name": "agent.identity", "kind": 1, "startTimeUnixNano": "1781817784575000000", "endTimeUnixNano": "1781817786061000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "To recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "identity" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "c7de85d6c60ca0dd", "parentSpanId": "5cdbf4b4017f8024", "name": "handoff.identity_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786062000000", "endTimeUnixNano": "1781817786062000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "394ade0fb816073c", "parentSpanId": "0c050121bc1c23dc", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786067000000", "endTimeUnixNano": "1781817786981000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "109" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "27" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "136" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Northwind Bank. Retrieve the answer from the tenant knowledge base and ground every claim in a cited source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "a966157754270c0f", "parentSpanId": "0c050121bc1c23dc", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817786984000000", "endTimeUnixNano": "1781817787227000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "7752e121ca700e15", "parentSpanId": "0c050121bc1c23dc", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787228000000", "endTimeUnixNano": "1781817787349000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "0c050121bc1c23dc", "parentSpanId": "5cdbf4b4017f8024", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786063000000", "endTimeUnixNano": "1781817787349000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the Identity specialist to expedite VPN access restoration; have your verification details ready." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "2bc7f50fec7d3b34", "parentSpanId": "5cdbf4b4017f8024", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787350000000", "endTimeUnixNano": "1781817787351000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "ba8968a847a3579f", "parentSpanId": "181a07d907480cf7", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787356000000", "endTimeUnixNano": "1781817788338000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "107" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "19" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Northwind Bank. Send the requester a concise, compliant status update and escalate when SLA is at risk." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nTo recover VPN access, complete step-up verification through a registered device. Access will be restored on success, ensuring compliance with security protocols.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "05dea0686d8861d1", "parentSpanId": "181a07d907480cf7", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788339000000", "endTimeUnixNano": "1781817788409000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"I'm locked out of the corporate VPN after the weekend password rotation and need\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "181a07d907480cf7", "parentSpanId": "5cdbf4b4017f8024", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787352000000", "endTimeUnixNano": "1781817788409000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "2036e528c1eed3e4bc023f02da694d61", "spanId": "5cdbf4b4017f8024", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783445000000", "endTimeUnixNano": "1781817789245000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_northwind_bank" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "I'm locked out of the corporate VPN after the weekend password rotation and need access restored to finish month-end close." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your VPN access request has been prioritized and forwarded to the Identity specialist for immediate attention." } }], "status": { "code": 1 } }] }] }] },
63
72
  },
64
73
  {
65
74
  name: "Meridian Health \u00b7 mfa reset (access-recovery)",
66
75
  workflow: "demo.meridian-mfa_reset-10",
67
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "12cf5b1761cfc83b", "parentSpanId": "32923c11b1d190a5", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817783468000000", "endTimeUnixNano": "1781817784528000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "101" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "27" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nLost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "32923c11b1d190a5", "parentSpanId": "4b04635dbcd57423", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817783466000000", "endTimeUnixNano": "1781817784528000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "9c20d472009dcbee", "parentSpanId": "4b04635dbcd57423", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817784529000000", "endTimeUnixNano": "1781817784590000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "4b04635dbcd57423", "parentSpanId": "8eac02ef0bf37bb1", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817783464000000", "endTimeUnixNano": "1781817784590000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "cc970f8cc9d87fe2", "parentSpanId": "8eac02ef0bf37bb1", "name": "handoff: triage → identity", "kind": 1, "startTimeUnixNano": "1781817784591000000", "endTimeUnixNano": "1781817784591000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "be2065e07b08342e", "parentSpanId": "1d1d78bdb45b902e", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784596000000", "endTimeUnixNano": "1781817785936000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "40" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "168" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Meridian Health. Verify the clinician's identity before any MFA / access reset, and never expose PHI during recovery." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage: Category: Access Issue · Priority: High · Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "1d1d78bdb45b902e", "parentSpanId": "edeb83180fd28000", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784594000000", "endTimeUnixNano": "1781817785936000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "5c520261a455aa9a", "parentSpanId": "edeb83180fd28000", "name": "reset_access.tool", "kind": 1, "startTimeUnixNano": "1781817785937000000", "endTimeUnixNano": "1781817786078000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"Okta\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "edeb83180fd28000", "parentSpanId": "8eac02ef0bf37bb1", "name": "identity-service.agent", "kind": 1, "startTimeUnixNano": "1781817784592000000", "endTimeUnixNano": "1781817786078000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "93cdcdcbb2463c6e", "parentSpanId": "8eac02ef0bf37bb1", "name": "handoff: identity → knowledge", "kind": 1, "startTimeUnixNano": "1781817786079000000", "endTimeUnixNano": "1781817786079000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "7e97a32bd619a79b", "parentSpanId": "ca6bb8a3b64ac0a7", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786084000000", "endTimeUnixNano": "1781817786998000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "115" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "25" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "140" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "ca6bb8a3b64ac0a7", "parentSpanId": "d1965d7960f00d0b", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786082000000", "endTimeUnixNano": "1781817786998000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "476c2c0cdb983f92", "parentSpanId": "c3127fe930be0409", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787001000000", "endTimeUnixNano": "1781817787244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "c3127fe930be0409", "parentSpanId": "d1965d7960f00d0b", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817786999000000", "endTimeUnixNano": "1781817787244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "4185dff4f4257875", "parentSpanId": "d1965d7960f00d0b", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787245000000", "endTimeUnixNano": "1781817787366000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "d1965d7960f00d0b", "parentSpanId": "8eac02ef0bf37bb1", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786080000000", "endTimeUnixNano": "1781817787366000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "f53fe8eb5e3482ba", "parentSpanId": "8eac02ef0bf37bb1", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787367000000", "endTimeUnixNano": "1781817787368000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "a8014265f1278c9d", "parentSpanId": "c98c27e428799974", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787373000000", "endTimeUnixNano": "1781817788355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "106" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "20" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nVerify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "c98c27e428799974", "parentSpanId": "df3dd4205aab0b14", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787371000000", "endTimeUnixNano": "1781817788355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "c16102dbe13e0dfa", "parentSpanId": "df3dd4205aab0b14", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788356000000", "endTimeUnixNano": "1781817788426000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "df3dd4205aab0b14", "parentSpanId": "8eac02ef0bf37bb1", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787369000000", "endTimeUnixNano": "1781817788426000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "8eac02ef0bf37bb1", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783462000000", "endTimeUnixNano": "1781817789262000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }] }] }] },
76
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "12cf5b1761cfc83b", "parentSpanId": "4b04635dbcd57423", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817783468000000", "endTimeUnixNano": "1781817784528000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "101" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "27" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nLost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "9c20d472009dcbee", "parentSpanId": "4b04635dbcd57423", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817784529000000", "endTimeUnixNano": "1781817784590000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "4b04635dbcd57423", "parentSpanId": "8eac02ef0bf37bb1", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817783464000000", "endTimeUnixNano": "1781817784590000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Access Issue · Priority: High · Owning specialist: Identity." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "cc970f8cc9d87fe2", "parentSpanId": "8eac02ef0bf37bb1", "name": "handoff.triage_to_identity", "kind": 1, "startTimeUnixNano": "1781817784591000000", "endTimeUnixNano": "1781817784591000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → identity" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "be2065e07b08342e", "parentSpanId": "edeb83180fd28000", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784596000000", "endTimeUnixNano": "1781817785936000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "128" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "40" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "168" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the identity service for Meridian Health. Verify the clinician's identity before any MFA / access reset, and never expose PHI during recovery." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nTriage: Category: Access Issue · Priority: High · Owning specialist: Identity." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "5c520261a455aa9a", "parentSpanId": "edeb83180fd28000", "name": "tool.reset_access", "kind": 1, "startTimeUnixNano": "1781817785937000000", "endTimeUnixNano": "1781817786078000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"ACC-DEMO\",\"directory\":\"Okta\",\"action\":\"credential_reset\",\"mfa_reenrolled\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "reset_access" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "edeb83180fd28000", "parentSpanId": "8eac02ef0bf37bb1", "name": "agent.identity", "kind": 1, "startTimeUnixNano": "1781817784592000000", "endTimeUnixNano": "1781817786078000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Verify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "identity" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "93cdcdcbb2463c6e", "parentSpanId": "8eac02ef0bf37bb1", "name": "handoff.identity_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786079000000", "endTimeUnixNano": "1781817786079000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "identity → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "7e97a32bd619a79b", "parentSpanId": "d1965d7960f00d0b", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786084000000", "endTimeUnixNano": "1781817786998000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "115" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "25" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "140" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "476c2c0cdb983f92", "parentSpanId": "d1965d7960f00d0b", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787001000000", "endTimeUnixNano": "1781817787244000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "4185dff4f4257875", "parentSpanId": "d1965d7960f00d0b", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787245000000", "endTimeUnixNano": "1781817787366000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "d1965d7960f00d0b", "parentSpanId": "8eac02ef0bf37bb1", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786080000000", "endTimeUnixNano": "1781817787366000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Reach the Identity specialist to re-enroll MFA; have an alternate verification method available." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "f53fe8eb5e3482ba", "parentSpanId": "8eac02ef0bf37bb1", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787367000000", "endTimeUnixNano": "1781817787368000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "a8014265f1278c9d", "parentSpanId": "df3dd4205aab0b14", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787373000000", "endTimeUnixNano": "1781817788355000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "106" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "20" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nVerify your identity via a backup factor; once confirmed we will re-enroll MFA without exposing any PHI.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "c16102dbe13e0dfa", "parentSpanId": "df3dd4205aab0b14", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788356000000", "endTimeUnixNano": "1781817788426000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"Lost my phone with the authenticator app. I need my MFA reset so I can log back \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "df3dd4205aab0b14", "parentSpanId": "8eac02ef0bf37bb1", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787369000000", "endTimeUnixNano": "1781817788426000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "2a525c0dfc5ca2a6627b821b8807f331", "spanId": "8eac02ef0bf37bb1", "name": "access-recovery.workflow", "kind": 1, "startTimeUnixNano": "1781817783462000000", "endTimeUnixNano": "1781817789262000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "access-recovery.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "Lost my phone with the authenticator app. I need my MFA reset so I can log back into the clinical scheduling system." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your MFA reset request has been routed to the Identity specialist." } }], "status": { "code": 1 } }] }] }] },
68
77
  },
69
78
  {
70
79
  name: "Meridian Health \u00b7 laptop down (incident-response)",
71
80
  workflow: "demo.meridian-laptop_down-11",
72
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "211d42835362a983", "parentSpanId": "935bdaa4c89a86ca", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784925000000", "endTimeUnixNano": "1781817785581000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "117" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "134" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "935bdaa4c89a86ca", "parentSpanId": "39f37b8622d6e6b3", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784923000000", "endTimeUnixNano": "1781817785581000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "98d60a772740a5cf", "parentSpanId": "39f37b8622d6e6b3", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785582000000", "endTimeUnixNano": "1781817785646000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "39f37b8622d6e6b3", "parentSpanId": "d3f091c747c60008", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784921000000", "endTimeUnixNano": "1781817785646000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "6e5f37cafffe6b01", "parentSpanId": "d3f091c747c60008", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785647000000", "endTimeUnixNano": "1781817785647000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "75ced0f152122a81", "parentSpanId": "570b311e4b3d00aa", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785652000000", "endTimeUnixNano": "1781817786363000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "116" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "51" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "167" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "570b311e4b3d00aa", "parentSpanId": "c1d142fa2b7b045b", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785650000000", "endTimeUnixNano": "1781817786363000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "bd194418b6bd11f6", "parentSpanId": "c1d142fa2b7b045b", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786364000000", "endTimeUnixNano": "1781817786525000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "c1d142fa2b7b045b", "parentSpanId": "d3f091c747c60008", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785648000000", "endTimeUnixNano": "1781817786525000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "122eca402165058a", "parentSpanId": "d3f091c747c60008", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786526000000", "endTimeUnixNano": "1781817786526000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "6e1d6dddc523b81a", "parentSpanId": "f4ba8c4ca0983c0e", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786531000000", "endTimeUnixNano": "1781817787221000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "106" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "141" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "f4ba8c4ca0983c0e", "parentSpanId": "4d3b72945fd98ff5", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786529000000", "endTimeUnixNano": "1781817787221000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "90387082b2232070", "parentSpanId": "2ba450c530452792", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787224000000", "endTimeUnixNano": "1781817787670000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "2ba450c530452792", "parentSpanId": "4d3b72945fd98ff5", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787222000000", "endTimeUnixNano": "1781817787670000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "cfbcdb0a2dac012c", "parentSpanId": "4d3b72945fd98ff5", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787671000000", "endTimeUnixNano": "1781817787791000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "4d3b72945fd98ff5", "parentSpanId": "d3f091c747c60008", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786527000000", "endTimeUnixNano": "1781817787791000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "46e8558befc8357f", "parentSpanId": "d3f091c747c60008", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787792000000", "endTimeUnixNano": "1781817787793000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "15608221dd0cdaa4", "parentSpanId": "c303e33306730772", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787798000000", "endTimeUnixNano": "1781817788339000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "104" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "125" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "c303e33306730772", "parentSpanId": "14f990cc60aefb0e", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787796000000", "endTimeUnixNano": "1781817788339000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "d1d75b0197fc7822", "parentSpanId": "14f990cc60aefb0e", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788340000000", "endTimeUnixNano": "1781817788414000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "14f990cc60aefb0e", "parentSpanId": "d3f091c747c60008", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787794000000", "endTimeUnixNano": "1781817788414000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "d3f091c747c60008", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784919000000", "endTimeUnixNano": "1781817789279000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
81
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "211d42835362a983", "parentSpanId": "39f37b8622d6e6b3", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784925000000", "endTimeUnixNano": "1781817785581000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "117" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "134" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nMy work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "98d60a772740a5cf", "parentSpanId": "39f37b8622d6e6b3", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785582000000", "endTimeUnixNano": "1781817785646000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "39f37b8622d6e6b3", "parentSpanId": "d3f091c747c60008", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784921000000", "endTimeUnixNano": "1781817785646000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "6e5f37cafffe6b01", "parentSpanId": "d3f091c747c60008", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785647000000", "endTimeUnixNano": "1781817785647000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "75ced0f152122a81", "parentSpanId": "c1d142fa2b7b045b", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785652000000", "endTimeUnixNano": "1781817786363000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "116" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "51" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "167" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nTriage: Category: Hardware Issue · Priority: High. Please route to the Incident specialist for immediate assistance." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "bd194418b6bd11f6", "parentSpanId": "c1d142fa2b7b045b", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786364000000", "endTimeUnixNano": "1781817786525000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "c1d142fa2b7b045b", "parentSpanId": "d3f091c747c60008", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785648000000", "endTimeUnixNano": "1781817786525000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Hardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "122eca402165058a", "parentSpanId": "d3f091c747c60008", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786526000000", "endTimeUnixNano": "1781817786526000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "6e1d6dddc523b81a", "parentSpanId": "4d3b72945fd98ff5", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786531000000", "endTimeUnixNano": "1781817787221000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "106" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "141" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner.\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "90387082b2232070", "parentSpanId": "4d3b72945fd98ff5", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787224000000", "endTimeUnixNano": "1781817787670000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "cfbcdb0a2dac012c", "parentSpanId": "4d3b72945fd98ff5", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787671000000", "endTimeUnixNano": "1781817787791000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "4d3b72945fd98ff5", "parentSpanId": "d3f091c747c60008", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786527000000", "endTimeUnixNano": "1781817787791000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Contact the IT helpdesk to report the issue and request a loaner laptop while the incident is investigated." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "46e8558befc8357f", "parentSpanId": "d3f091c747c60008", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787792000000", "endTimeUnixNano": "1781817787793000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "15608221dd0cdaa4", "parentSpanId": "14f990cc60aefb0e", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787798000000", "endTimeUnixNano": "1781817788339000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "104" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "125" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nHardware issue, high priority due to customer-facing impact. Searching ServiceNow for an existing incident, opening a ticket, and arranging a loaner.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "d1d75b0197fc7822", "parentSpanId": "14f990cc60aefb0e", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788340000000", "endTimeUnixNano": "1781817788414000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"My work laptop shows a blue screen on startup and won't load. I have a customer \"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "14f990cc60aefb0e", "parentSpanId": "d3f091c747c60008", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787794000000", "endTimeUnixNano": "1781817788414000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "76911a082b8afc4a7b8f11c522e19ffc", "spanId": "d3f091c747c60008", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784919000000", "endTimeUnixNano": "1781817789279000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "My work laptop shows a blue screen on startup and won't load. I have a customer review in two hours and need a fix or a loaner." } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Your hardware issue has been logged and prioritized; a loaner is being arranged ahead of your review." } }], "status": { "code": 1 } }] }] }] },
73
82
  },
74
83
  {
75
84
  name: "Meridian Health \u00b7 portal outage (incident-response)",
76
85
  workflow: "demo.meridian-portal_outage-12",
77
- body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "ea44d8f8d6ac0b78", "parentSpanId": "98c10c6e14e574b2", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817784943000000", "endTimeUnixNano": "1781817785599000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "109" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "98c10c6e14e574b2", "parentSpanId": "5c4967073d18656e", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817784941000000", "endTimeUnixNano": "1781817785599000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "17c51dbb2bef3527", "parentSpanId": "5c4967073d18656e", "name": "classify_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817785600000000", "endTimeUnixNano": "1781817785664000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "5c4967073d18656e", "parentSpanId": "db19f39b4da4cbc7", "name": "triage-service.agent", "kind": 1, "startTimeUnixNano": "1781817784939000000", "endTimeUnixNano": "1781817785664000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "bfb9d114a753409f", "parentSpanId": "db19f39b4da4cbc7", "name": "handoff: triage → incident", "kind": 1, "startTimeUnixNano": "1781817785665000000", "endTimeUnixNano": "1781817785665000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "0e6c7c85fe65994d", "parentSpanId": "77748716581ae6a0", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817785670000000", "endTimeUnixNano": "1781817786381000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "121" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "50" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "171" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "77748716581ae6a0", "parentSpanId": "9d458e49eae91c78", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817785668000000", "endTimeUnixNano": "1781817786381000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "a9adde68ae6fc9e4", "parentSpanId": "9d458e49eae91c78", "name": "upsert_ticket.tool", "kind": 1, "startTimeUnixNano": "1781817786382000000", "endTimeUnixNano": "1781817786543000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "9d458e49eae91c78", "parentSpanId": "db19f39b4da4cbc7", "name": "incident-service.agent", "kind": 1, "startTimeUnixNano": "1781817785666000000", "endTimeUnixNano": "1781817786543000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "259658057904adf2", "parentSpanId": "db19f39b4da4cbc7", "name": "handoff: incident → knowledge", "kind": 1, "startTimeUnixNano": "1781817786544000000", "endTimeUnixNano": "1781817786544000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "b953ed82534b5f0d", "parentSpanId": "06d903cd7d51f226", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817786549000000", "endTimeUnixNano": "1781817787239000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "114" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "149" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "06d903cd7d51f226", "parentSpanId": "4622bd29a8209c48", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817786547000000", "endTimeUnixNano": "1781817787239000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "0c40ae9655baa7ad", "parentSpanId": "543f5c44121c40df", "name": "ai.embed.doEmbed", "kind": 1, "startTimeUnixNano": "1781817787242000000", "endTimeUnixNano": "1781817787688000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "543f5c44121c40df", "parentSpanId": "4622bd29a8209c48", "name": "ai.embed", "kind": 1, "startTimeUnixNano": "1781817787240000000", "endTimeUnixNano": "1781817787688000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "16c6ab487bfd8560", "parentSpanId": "4622bd29a8209c48", "name": "rag_search.tool", "kind": 1, "startTimeUnixNano": "1781817787689000000", "endTimeUnixNano": "1781817787809000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "4622bd29a8209c48", "parentSpanId": "db19f39b4da4cbc7", "name": "knowledge-service.agent", "kind": 1, "startTimeUnixNano": "1781817786545000000", "endTimeUnixNano": "1781817787809000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "7b65665673c4828f", "parentSpanId": "db19f39b4da4cbc7", "name": "handoff: knowledge → notification", "kind": 1, "startTimeUnixNano": "1781817787810000000", "endTimeUnixNano": "1781817787811000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "87ce0988cfca4f10", "parentSpanId": "3fa4deff4da27f99", "name": "ai.generateText.doGenerate", "kind": 1, "startTimeUnixNano": "1781817787816000000", "endTimeUnixNano": "1781817788357000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-4o-mini" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "100" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "121" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "3fa4deff4da27f99", "parentSpanId": "83d27b2061d01800", "name": "ai.generateText", "kind": 1, "startTimeUnixNano": "1781817787814000000", "endTimeUnixNano": "1781817788357000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "task" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "5efc33865d018681", "parentSpanId": "83d27b2061d01800", "name": "send_notification.tool", "kind": 1, "startTimeUnixNano": "1781817788358000000", "endTimeUnixNano": "1781817788432000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "83d27b2061d01800", "parentSpanId": "db19f39b4da4cbc7", "name": "notification-service.agent", "kind": 1, "startTimeUnixNano": "1781817787812000000", "endTimeUnixNano": "1781817788432000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "db19f39b4da4cbc7", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784937000000", "endTimeUnixNano": "1781817789297000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
86
+ body: { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "ai-service-desk" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }] }, "scopeSpans": [{ "scope": { "name": "respan.ingestion-demo", "version": "1.0.0" }, "spans": [{ "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "ea44d8f8d6ac0b78", "parentSpanId": "5c4967073d18656e", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817784943000000", "endTimeUnixNano": "1781817785599000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "109" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "17" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "126" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the triage service for Meridian Health, a healthcare IT service desk under HIPAA. Classify category and priority, flag anything touching PHI or clinical systems, and name the owning specialist (Identity or Incident). Reply in 2 short sentences." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Incoming request:\nThe internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage note / prior context: (this is the triage step)" } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "17c51dbb2bef3527", "parentSpanId": "5c4967073d18656e", "name": "tool.classify_ticket", "kind": 1, "startTimeUnixNano": "1781817785600000000", "endTimeUnixNano": "1781817785664000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ok\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "classify_ticket" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "5c4967073d18656e", "parentSpanId": "db19f39b4da4cbc7", "name": "agent.triage", "kind": 1, "startTimeUnixNano": "1781817784939000000", "endTimeUnixNano": "1781817785664000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "triage" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "bfb9d114a753409f", "parentSpanId": "db19f39b4da4cbc7", "name": "handoff.triage_to_incident", "kind": 1, "startTimeUnixNano": "1781817785665000000", "endTimeUnixNano": "1781817785665000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "triage → incident" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "0e6c7c85fe65994d", "parentSpanId": "9d458e49eae91c78", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817785670000000", "endTimeUnixNano": "1781817786381000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "121" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "50" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "171" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the incident service for Meridian Health. Triage clinical-system outages, open or update the incident, and prioritize anything affecting patient care." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Request: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nTriage: Category: Service Outage · Priority: High. Owning specialist: Incident." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "a9adde68ae6fc9e4", "parentSpanId": "9d458e49eae91c78", "name": "tool.upsert_ticket", "kind": 1, "startTimeUnixNano": "1781817786382000000", "endTimeUnixNano": "1781817786543000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"ticket\":\"INC-DEMO\",\"system\":\"Jira SM\",\"status\":\"open\",\"assignment_group\":\"endpoint-support\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "upsert_ticket" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "9d458e49eae91c78", "parentSpanId": "db19f39b4da4cbc7", "name": "agent.incident", "kind": 1, "startTimeUnixNano": "1781817785666000000", "endTimeUnixNano": "1781817786543000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "Matched a known incident for the payments portal; updating the ticket and escalating to on-call." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "incident" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "259658057904adf2", "parentSpanId": "db19f39b4da4cbc7", "name": "handoff.incident_to_knowledge", "kind": 1, "startTimeUnixNano": "1781817786544000000", "endTimeUnixNano": "1781817786544000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "incident → knowledge" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "b953ed82534b5f0d", "parentSpanId": "4622bd29a8209c48", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817786549000000", "endTimeUnixNano": "1781817787239000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "114" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "35" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "149" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the knowledge service for Meridian Health. Retrieve the answer from the tenant knowledge base and ground every claim in a cited, HIPAA-safe source." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Question: The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?\n\nUse the tenant KB to ground the answer." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "0c40ae9655baa7ad", "parentSpanId": "4622bd29a8209c48", "name": "embedding", "kind": 1, "startTimeUnixNano": "1781817787242000000", "endTimeUnixNano": "1781817787688000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "llm.request.type", "value": { "stringValue": "embedding" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "text-embedding-3-small" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "16c6ab487bfd8560", "parentSpanId": "4622bd29a8209c48", "name": "tool.rag_search", "kind": 1, "startTimeUnixNano": "1781817787689000000", "endTimeUnixNano": "1781817787809000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"matches\":3,\"top_source\":\"kb/service-desk/runbook\"}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "rag_search" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "4622bd29a8209c48", "parentSpanId": "db19f39b4da4cbc7", "name": "agent.knowledge", "kind": 1, "startTimeUnixNano": "1781817786545000000", "endTimeUnixNano": "1781817787809000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "A known incident is open for the payments portal; status and ETA will be shared as it progresses." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "knowledge" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "7b65665673c4828f", "parentSpanId": "db19f39b4da4cbc7", "name": "handoff.knowledge_to_notification", "kind": 1, "startTimeUnixNano": "1781817787810000000", "endTimeUnixNano": "1781817787811000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "knowledge → notification" } }, { "key": "respan.entity.log_type", "value": { "stringValue": "handoff" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "87ce0988cfca4f10", "parentSpanId": "83d27b2061d01800", "name": "llm.gpt-6.1-sol", "kind": 1, "startTimeUnixNano": "1781817787816000000", "endTimeUnixNano": "1781817788357000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "chat" } }, { "key": "llm.request.type", "value": { "stringValue": "chat" } }, { "key": "gen_ai.system", "value": { "stringValue": "openai" } }, { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.response.model", "value": { "stringValue": "gpt-6.1-sol" } }, { "key": "gen_ai.usage.prompt_tokens", "value": { "intValue": "100" } }, { "key": "gen_ai.usage.completion_tokens", "value": { "intValue": "21" } }, { "key": "gen_ai.usage.total_tokens", "value": { "intValue": "121" } }, { "key": "gen_ai.prompt.0.role", "value": { "stringValue": "system" } }, { "key": "gen_ai.prompt.0.content", "value": { "stringValue": "You are the notification service for Meridian Health. Send the requester a concise status update with no PHI in the message body." } }, { "key": "gen_ai.prompt.1.role", "value": { "stringValue": "user" } }, { "key": "gen_ai.prompt.1.content", "value": { "stringValue": "Resolution so far:\nMatched a known incident for the payments portal; updating the ticket and escalating to on-call.\n\nNotify the requester." } }, { "key": "gen_ai.completion.0.role", "value": { "stringValue": "assistant" } }, { "key": "gen_ai.completion.0.content", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "5efc33865d018681", "parentSpanId": "83d27b2061d01800", "name": "tool.send_notification", "kind": 1, "startTimeUnixNano": "1781817788358000000", "endTimeUnixNano": "1781817788432000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "tool" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "{\"request\":\"The internal payments portal is returning 503 errors for our whole team since th\"}" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "{\"channel\":\"email\",\"delivered\":true}" } }, { "key": "traceloop.entity.name", "value": { "stringValue": "send_notification" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "83d27b2061d01800", "parentSpanId": "db19f39b4da4cbc7", "name": "agent.notification", "kind": 1, "startTimeUnixNano": "1781817787812000000", "endTimeUnixNano": "1781817788432000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "agent" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }, { "key": "traceloop.entity.name", "value": { "stringValue": "notification" } }], "status": { "code": 1 } }, { "traceId": "1edf34c43d692fb61b2e9021fe8e117e", "spanId": "db19f39b4da4cbc7", "name": "incident-response.workflow", "kind": 1, "startTimeUnixNano": "1781817784937000000", "endTimeUnixNano": "1781817789297000000", "attributes": [{ "key": "traceloop.workflow.name", "value": { "stringValue": "incident-response.workflow" } }, { "key": "respan.customer_params.customer_identifier", "value": { "stringValue": "tenant_meridian_health" } }, { "key": "respan.trace.trace_group_identifier", "value": { "stringValue": "incident-response.workflow" } }, { "key": "traceloop.span.kind", "value": { "stringValue": "workflow" } }, { "key": "traceloop.entity.input", "value": { "stringValue": "The internal payments portal is returning 503 errors for our whole team since this morning. Is there a known incident?" } }, { "key": "traceloop.entity.output", "value": { "stringValue": "We've confirmed a known incident for the payments portal and will notify you when service is restored." } }], "status": { "code": 1 } }] }] }] },
78
87
  },
79
88
  ];