/obstudio:otel-auditfrom Splunk Observability Studio
Scans a codebase for existing OpenTelemetry instrumentation and reports observability coverage gaps. Writes audit artifacts under .observe/ without modifying service code.
Ships in Splunk Observability Studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Scan a service repository to detect its language, framework, dependencies,
and existing OpenTelemetry instrumentation. Report what is instrumented,
what is missing, and any anti-patterns. This skill is read-only for application
code: it writes .observe/otel-audit.json and .observe/otel.html but does
not modify service code, dependencies, configuration, or tests.
An existing audit is a baseline to reconcile, not a completed new scan. On a new audit request, inspect the current entrypoints and their reachable source before reusing its classifications. Successful rendering, recent timestamps, and unchanged source bytes do not prove that an earlier semantic decision was correct. Preserve stable finding IDs and existing selections/overlays; record new or corrected source findings in the audit rather than rebinding old proof.
Resolve every reference and script path from the directory containing the
loaded otel-audit/SKILL.md. Here, ../references/<file> means the shared
sibling under the parent skills directory, while references/<file> and
scripts/<file> are local to otel-audit. Never probe the service root or
repository root for these paths.
Before writing the report artifacts, read
../references/report-flow-contract.md and follow the Audit Contract plus the
Reader-First Report Order.
Before classifying any local OTLP endpoint, read
../references/local-otlp-receiver.md. Treat Splunk Observability Studio as a
configurable local receiver and optional cloud-compatible AO gateway. Receiver
receipt alone is not project/stream configuration or cloud delivery evidence.
Scan the repository to determine language, framework, and existing instrumentation.
go.modrequirements.txt, pyproject.toml, setup.pypackage.jsonpom.xml, build.gradleCargo.toml*.csproj, *.slnmain, cmd/, app.py, index.ts, etc.)GET /tasks, POST /tasks, GET /tasks/{id}). List them explicitly in the report.../references/incident-readiness.md. When incidents, postmortems, tickets,
alerts, or failure examples are supplied, use its Incident-Evidence Mode and
map each failure mechanism to its owning code or platform surface before
scoring coverage.../references/genai-readiness.md.
Follow its GenAI Semconv Source Contract before scoring GenAI coverage:
reconcile detected AI surfaces with official semconv docs when available,
record live-or-snapshot provenance, and build a semconv closure matrix.
Apply GenAI Instrumentation Selection and the Required GenAI Coverage
Profile: only a runtime with no existing telemetry instrumentation and a
compatible supported AO SDK for its language defaults to Splunk AO span
creation. When no compatible AO SDK is available, plan that language's native
OTel libraries and the same applicable GenAI/vendor coverage; record the
current support evidence and actionable native gaps rather than blocking
instrumentation on AO SDK availability. Preserve and enrich existing OTel/Galileo/AO
producers, providers and exporters, including generic spans, metrics-only
and logs-only pipelines. Missing GenAI coverage does not make them fresh. Read
../references/splunk-agent-observability.md for fresh-agent SDK APIs and
current official examples when the fresh or existing AO producer path applies.
Before prescribing creators on that Python Splunk AO path,
complete its mandatory per-function producer decision gate for every actual
agent/model/tool/retrieval function. Keep native SDK @log versus justified
application-owned function-decorator choices consistent across findings;
record proposed patterns and probe acceptance without executing them.
In correlation proposals, keep absent optional IDs absent. Distinguish a
source-backed application execution ID from a provider-supplied tool-call ID;
do not propose telemetry-only IDs or retrofit them into an earlier provider
response to make a join pass. Include
the intended Splunk AO runtime in the AO assessment below when that default
producer is selected; absence of an installed SDK does not exclude its
source-backed project, Agent Stream, or routing configuration gaps. Include
applicable redacted inputs/outputs and vendor fields in executable findings,
acceptance and expected telemetry; published Opt-In does not make them
optional for this profile. Record the actual producer and field availability.
When GenAI incidents, postmortems, alerts, tickets, or failure examples are
part of the request, use GenAI incident-evidence mode and map each failure
as incident class -> failure mechanism -> repo/service owner -> code surface ->
required signal before scoring whether instrumentation is MTTD-improving or
localization-only. Map each failure
mechanism to provider/model gateway, workflow, tool/function execution or
AI-owned session/stream including MCP when present, retrieval/RAG, streaming,
token/context, prompt/response parser, safety/policy, AI-derived data,
model/config rollout, or AI-owned cache/session evidence.
For every source-owned agent runtime, read
../references/splunk-agent-observability.md and assess project, dedicated
stream and routing even with existing native OTel, Galileo or an unavailable
AO SDK. Also read it when the user asks about AO coverage, routing, or
product resources, or the repository contains Agent Observability project,
Agent Stream, dataset, prompt, annotation, evaluator, integration, routing
configuration, or any splunk_ao dependency/import, also read
../references/splunk-agent-observability.md.
Apply the Splunk AO Runtime Coverage Contract below to every in-scope agent
runtime, not only to files that import the SDK. An evaluation-only import
must not hide an interactive runtime from this assessment.
Before scoring AO routing, record a source-backed compatibility decision in
canonical Audit Evidence and the affected runtime readiness/finding rows:
classify the selected resource API/authentication and existing exporter's
per-request trace routing separately as supported,
unsupported (name the missing contract), or unverified (name the exact
package/runtime evidence unavailable after inspection). Do not defer this
classification to a future acceptance test. Separately classify fresh cloud
Agent Stream receipt; source capability, local receipt, and an upstream
acknowledgement do not prove it. If no local gateway was inspected, name
Splunk Observability Studio as the preferred local AO gateway candidate and
mark both its availability and concrete endpoint unverified; never invent
an address. Preserve an explicit operator or direct-cloud destination. When
AO settings are absent, keep the routing gap independent of an existing
ordinary OTLP endpoint and put the required exclusive Studio profile in the
AO routing finding's required_fix and acceptance criteria: a
.env.studio.example or repository-native named profile filled from an
actually discovered same-namespace loopback API origin during instrumentation.
For existing native OTel applications without Galileo, plan SDK-free resource resolution and merge
the target-supported project/stream headers into the existing trace exporter;
preserve its endpoint/protocol and unrelated headers. Current Studio uses
projectid/logstreamid; public standalone AO docs use
projectid/agentstreamid. Do not prescribe a new SDK or second AO exporter.
For Galileo, assess its native project/log-stream clients and export settings;
do not propose a Studio route or Splunk AO dependency by default.
Require the AO SDK API/console/auth profile only when that SDK path is selected;
isolate its inherited direct-cloud settings in that profile. Require real
project/stream resolution before export. Describe missing wiring even when the gateway is currently
unavailable; mark endpoint and delivery proof unverified instead of filling
a guessed port or claiming it works.go.mod, package.json, pyproject.toml, pom.xml, etc.main.go, cmd/.../main.go, app.py, app.js, TasksApplication.java, etc.TaskController.java, app.py, app.js, or kvstore/http.go.load_demo.py,
smoke.py, scripts/check-*, or tests/e2e/*.Dockerfile, docker-compose.yml, Makefile, package.json scripts, launch configs, worker files.
Use complete repository-relative paths with an optional :line,
:start-end, or comma-separated line selector. The HTML renderer links only
exact existing in-repository files; do not shorten citations to basenames,
use globs, or guess paths when the owning file can be named precisely.mvnw, gradlew, Make, package scripts,
tox/nox, Cargo, or solution test projectsYes when any provider/model, agent/workflow, tool/MCP, retrieval/RAG,
memory/context, evaluation, prompt/response, model/config, token usage, or
other AI-path surface is owned by the repository.No only when the dependency and source scan finds none of those surfaces.
Record the decision both as **GenAI ownership detected:** Yes|No near the
report status and as an exact GenAI ownership row in ## Audit Evidence.
The two values must match.Check for existing OTel instrumentation and identify gaps. Inventory every signal by type so the report can list them explicitly.
SDK and configuration -- search for:
otel_setup.py, instrumentation.ts, otel.go, etc.)opentelemetry, otel, otlp, go.opentelemetry.io)OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_ENDPOINT in env files or configsgrpc with the gRPC receiver, or http/protobuf with /v1/<signal>), not
just a host or port. A configured endpoint with an incompatible protocol is
a required exporter gap.4317 and 4318 only as conventional
fallbacks when no endpoint is configured or discoverable; flag startup code
that calls Obstudio, MCP, or its REST API to discover the endpoint at
application runtime.otlp
exporter is instead an operator-owned boundary conflict. Represent it as an
external follow-up that requires the named operator to remove the non-local
endpoint or replace it with the exact detected local Splunk Observability Studio endpoint, plus
a dependent required/default local-log finding. The
dependency keeps the executable finding locked until the operator resolves
the conflict; do not classify the conflict as a scan blocker or authorize
the provider/bridge early. Preserve none and other
non-OTLP exporter branches without validating their endpoint. Flag any cloud
log endpoint, credential/header, exporter, or forwarding flag introduced by
Splunk Observability Studio instrumentation as a required boundary violation.OTEL_EXPORTER_OTLP_HEADERS as unsafe for an
Splunk Observability Studio-owned local log path, even when
OTEL_EXPORTER_OTLP_LOGS_HEADERS is also set. SDKs may merge generic and
signal-specific headers. Require the generic value to be moved to
trace/metric signal variables and removed before local log export is enabled.Provider/exporter topology -- build this per target process and per signal; do not infer it only from the launch command or installed packages.
TracerProvider, MeterProvider, and
LoggerProvider construction, global set_*_provider calls, no-op provider
branches, exporter construction, resource creation, flush/shutdown, and
helpers that initialize providers on first instrument access.source-active, externally bootstrapped, source-defined but inactive, or
no provider; none of these classifications is runtime emission proof.opentelemetry-instrument.scripts/scan_python_otel_topology.py <service-root> before reporting. The
scanner finds candidates; reconcile every hit with target-process
reachability before using it as evidence.OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES, app defaults, detector
output, and any merge that overwrites service.name, environment, or
version. Preserve operator values and classify hard-coded overwrite as a
required resource-identity gap.Spans inventory -- build a list of every span source:
otelgrpc on a server with methods GetUser and ListUsers produces spans
/UserService/GetUser and /UserService/ListUsers -- list each as its own
row.tracer.Start / span.End (Go),
tracer.start_as_current_span / tracer.start_span (Python),
tracer.startActiveSpan / tracer.startSpan (Node.js),
@WithSpan / Span.current() (Java).
Record the span name and source file with line number.Metrics inventory -- build a list of every metric source:
otelgrpc emits rpc.server.call.duration (or the legacy rpc.server.duration
on older SDK versions), rpc.server.request.size, rpc.server.response.size,
rpc.server.requests_per_rpc, and rpc.server.responses_per_rpc -- list each
as its own row. Similarly,
runtime.Start() emits process.runtime.go.goroutines,
process.runtime.go.mem.heap_alloc, process.runtime.go.gc.count, etc. --
list each individually.meter.Int64Counter, meter.Float64Histogram,
meter.Int64ObservableGauge, meter.Int64UpDownCounter (Go);
meter.create_counter, meter.create_histogram,
meter.create_observable_gauge (Python);
meter.createCounter, meter.createHistogram,
meter.createObservableGauge (Node.js).
Record the metric name and source file with line number.Logs inventory -- build a list of OTel log integrations:
opentelemetry-instrumentation-logging for current Python releases, with
the SDK LoggingHandler only when the installed bridge/API capability
requires that compatibility path;
@opentelemetry/instrumentation-console,
@opentelemetry/instrumentation-winston, or
@opentelemetry/instrumentation-pino for Node.js; the Java agent's detected
Logback/Log4j appender; and the matching
go.opentelemetry.io/contrib/bridges package for Go).LoggerProvider, batch log record processor, OTLP log exporter,
signal-specific logs endpoint, global registration, and shutdown/flush.trace_id, span_id fields).span.AddEvent() / span.add_event() calls used as structured log events.local-otlp-default, explicitly-disabled,
operator-owned, correlation-only, unsupported-stack, or not configured. Trace/MDC fields in stdout are not an OTLP log pipeline.
OTEL_LOGS_EXPORTER=none is an explicit opt-out, while an absent exporter on
a supported Python, Node.js, Java, or Go application logging stack requires a
default local Splunk Observability Studio OTLP pipeline only when the logs endpoint is absent or
matches the detected local Splunk Observability Studio receiver. Preserve any other explicit
exporter as operator-owned without validating or supplementing its endpoint.
For an absent/otlp exporter with an explicit non-local endpoint, record an
external operator prerequisite and a dependent default local-log finding;
do not classify it as working or select that implementation until the
dependency is resolved. If none is set
while an existing bridge still exports application records, report the
ineffective opt-out as a required ownership gap.Audit document contract -- the audit is a current-state baseline source
scan. Describe the instrumentation and gaps established by current repository
evidence. Implementation changes belong in .observe/otel-instrumentation.md.
Verification plan -- derive deterministic inputs for later instrumentation and verification. This is source-derived planning, not runtime proof.
http.search.success,
http.search.failure, runtime.startup, or worker.batch.failure.focused call-site,
full runtime, or either. Use full runtime when proof depends on agent or
preload startup, framework-resolved route names, automatic metrics,
runtime-installed log export, or absence of duplicate automatic spans.OTEL_LOGS_EXPORTER=none producing no OTLP record. When cloud trace/metric
export or forwarding exists, also prove the application record remains
visible in local Splunk Observability Studio without any cloud log path.OTEL_LOGS_EXPORTER=otlp, the resolved local Studio logs endpoint and its
matching protocol alongside trace and metric settings. An absent logs bridge
or an unrequested generated none setting is a log coverage gap, even when
traces and metrics work. Keep a real explicit user/operator logs opt-out as
separate scope; do not recommend none as the normal launch default. SDK
@log spans and stdout correlation are not received OTLP LogRecords.rg -n or a language-aware index. Never hand off a guessed or stale
symbol name. Never invoke rg with --pre or --pre-glob; those flags run
an arbitrary external command against matched files rather than only
searching them. Use plain search flags only (for example -n, -l, -i).Dependencies without instrumentation -- for each dependency detected in Step 1:
Operational signal assessment -- express rate, error, latency, and
saturation coverage as ordinary entries in ## Current Instrumentation,
## Gaps, or ## Verification Plan with exact source paths and signal names.
Incident readiness assessment -- when the repository owns incident-relevant
surfaces or the user asks for faster detection/localization, use
../references/incident-readiness.md to assess API/workflow and customer
impact, dependencies, input complexity, freshness, backpressure,
synthetic/canary checks, auth/edge, capacity, and release/config context. For
incident evidence, classify each proposed signal as MTTD-improving only when
it can support a detector before or at first customer impact,
localization-only when it mainly narrows an already-detected fault,
provider/platform-owned, or unknown owner.
Record current readiness as ### Incident Readiness under
## Current Instrumentation; do not add another top-level report section.
Readiness rows are audit context first. Promote a missing or partial readiness
surface into the single prioritized ## Gaps table only when the repository
owns a concrete OTel closure gap: a span, metric, log, provider/exporter,
resource, semantic attribute, correlation, cardinality, or runtime lifecycle
change that can be implemented without changing the product/runtime contract.
The prioritized gap row and its mapped acceptance scenarios form the closure
contract for $otel-instrument and $splunk-configure:
Area is the stable human-readable gap identity used downstream.Required fix names every required signal or exact owner mapping; it must not
use a vague label such as add observability.Instrument mode records whether safe app-owned work is default, broader
safe work is fix all, or an external/unsafe choice is manual decision.Split a gap when required signals have different owners, instrument modes, or
acceptance criteria. Do not promote service behavior choices, health endpoint
semantics, readiness/liveness contracts, capacity policy, release policy, or
general operational observations into findings unless the user explicitly asks
for that domain and the row names concrete service-owned OTel telemetry to add
or repair. When an external owner must supply telemetry, record the owner and
requirement in the readiness row and summary by default; create an
external follow-up finding only when it blocks an in-scope service-owned OTel
finding. Do not mark a partial surface covered because one span or metric
exists, and do not imply that detector configuration can compensate for an
absent detector-critical metric.
GenAI readiness assessment -- when GenAI/LLM evidence exists, use
../references/genai-readiness.md to check baseline trace continuity,
OpenTelemetry GenAI spans, semconv completeness, GenAI metrics, and
privacy/cardinality controls. Add or update ## GenAI Readiness rows for
missing workflow, provider/model gateway, model/config rollout,
model/config compatibility, expected-vs-running model/config state,
tool/function execution or AI-owned session/stream lifecycle including MCP when
present, token/context pressure, retrieval/RAG, streaming response lifecycle,
fallback/failover, prompt/response assembly, safety/policy outcome,
AI-derived data freshness, memory/context, evaluation quality, framework bridge
coverage, content governance, cost ownership, or AI-owned cache/session state
signals. For each telemetry-distinct owned surface, write one separate
readiness row with its complete required signals. Keep workflow, provider/model,
tool/function, token/context, stream/session, retrieval, evaluation/data export,
and other distinct surfaces independently actionable for instrumentation
closure. For code-owned GenAI pathway gaps, explicitly check for token/context
pressure,
response parse failure, AI-derived data freshness, prompt/tool schema version,
LLM-call count, tool-call count, authentication/authorization result,
invalid-token or permission failure outcome, active AI-owned streams or
sessions, close reason family, stream duration/outcome, send/write failure,
memory hit/miss or stale/missing context, gen_ai.evaluation.result coverage,
evaluation score distribution, content capture mode/redaction/access owner, and
app-owned cost or owner-mapped billing source when those values are observable.
Classify these rows before creating findings:
## GenAI Readiness unless the user
explicitly asks for that audit domain. Redaction/retention/access ownership,
safety/refusal policy, evaluation explanation policy, model rollout policy,
and cost/billing ownership are not default service instrumentation findings.
Missing source-backed GenAI content attributes are telemetry gaps, not
governance-only rows. Add each applicable attribute named in the shared
Content Capture Governance Contract to the owning model, retrieval, or tool
readiness row and existing selectable finding's expected_telemetry; give
that finding a redacted-content verification scenario. Do not create one
finding per attribute or omit an applicable attribute solely because its
value is sensitive. Do not require a second content-capture approval after
the finding is selected. Do not propose fields the application cannot observe.
Before finalize-audit, reconcile every app-owned model, retrieval, and tool
boundary with all eight attributes in that contract: gen_ai.input.messages,
gen_ai.output.messages, gen_ai.system_instructions,
gen_ai.retrieval.documents, gen_ai.retrieval.query.text,
gen_ai.tool.definitions, gen_ai.tool.call.arguments, and
gen_ai.tool.call.result. Inspect the actual provider-bound input and
returned output, observable instructions and tool definitions, retrieval
query and documents, and tool-call arguments and result. Put each applicable
missing attribute literally in the owning finding's expected_telemetry
and require an assertion on its completed model, retrieval, or tool span in
the verification scenario. Metadata-only spans or prose about privacy and
capture mode do not close source-backed content coverage. If safe emission
is not feasible, retain the unresolved finding and name the blocker instead
of marking it covered.
Assess successful null results separately from calls that produced no result.
When the verified tool schema cannot represent null in
gen_ai.tool.call.result, recognize a truthful captured OpenInference
output.value="null" as the supported alternative. Require removal of a
schema-invalid native result and retain the remaining same-tool-span content
requirements. A failed call with no result must not gain successful output.
Supplied helper captures establish that case's capability, not live app or
exporter coverage; bind unproved application behavior to a local scenario.
Require evidence of the actual value crossing its owning boundary before
classifying a content attribute as applicable: a tool name or handler source
is not a model-bound gen_ai.tool.definitions payload. A prompt passed to
a search-like tool is not gen_ai.retrieval.query.text unless the tool
consumes that value as its search or lookup input; a prompt used only to
simulate an error is not a retrieval query. Counts or scores without
returned document objects are not gen_ai.retrieval.documents. Keep
observable tool-call arguments and results in the tool finding rather than
promoting an unused parameter to retrieval content.LLM Inference Lifecycle Contract:
audit the real lifecycle hook or client call site, not only the outer workflow
and final usage aggregation. In LangChain, LangGraph, DeepAgents, callback, or
event-stream based systems, look for on_chat_model_start,
on_chat_model_end, on_chat_model_error, or an equivalent model-call
callback. In direct provider SDK or model-gateway code, look for a span wrapping
the provider request or streaming generator. If token/model attributes are
present only on a workflow span, final usage event, turn-finalization path, or
other workflow-level token accounting, but no chat, generate_content,
text_completion, or equivalent inference span exists with
gen_ai.operation.name, gen_ai.request.model, and gen_ai.response.model
when known, mark trace and semconv coverage partial; do not mark LLM coverage
as covered. Keep the missing model-call lifecycle span and attributes in
remaining_signals.
Apply Retrieval detection inside tools independently of tool-call coverage.
Inspect each code-owned tool body and its reachable helpers for semantic,
vector, corpus, document, index, knowledge-base, or embedding search whose
results become model context. A name such as search_docs is useful evidence
but is not sufficient by itself; corroborate it with the implementation,
dependency calls, returned matches/documents/scores, or the caller's use of the
results. Match counts or scores may justify a retrieval-like operation but do
not prove query text or document bodies. Follow dataflow through the tool:
require a value actually consumed by its search/lookup path before adding
gen_ai.retrieval.query.text, and returned document objects before adding
gen_ai.retrieval.documents. An unused prompt parameter, including one read
only for a simulated error, is not query evidence. When a tool performs such a
retrieval-like operation, a generic tool span is not complete retrieval
coverage. Before finalizing the audit, compare
each confirmed retrieval call site against its tool span and check the JSON for
two distinct items: a retrieval-specific readiness row and a selectable
retrieval finding with its own ID. A combined "tool and retrieval" row or
finding does not satisfy this check. Preserve the execute_tool operation,
then require the nested retrieval span with
gen_ai.operation.name=retrieval and a stable low-cardinality data-source
identifier. Add an explicit retrieval verification scenario that proves its
parentage under the tool span, proves any selected source-backed content fields
only after redaction and truncation, and never records raw documents, query
text, embeddings, or other sensitive/high-cardinality values.
Apply the Single-Source GenAI Span Contract from the GenAI readiness
reference before deciding trace coverage. Inventory framework/vendor bridges,
provider SDK hooks, callbacks, middleware, and auto-instrumentors that can emit
GenAI spans, then compare them with app-owned spans for the same logical
workflow, agent, chat/model call, tool call, retrieval, memory, or evaluation
operation. Mark trace and semconv coverage partial when a representative
trace or source proof shows both framework/vendor and app-owned spans for the
same logical operation, wrapper spans such as middleware or step execution being
counted as tools, duplicate model/tool call counts, divergent parentage, or
aggregate attributes written to the wrong canonical span. Required closure
evidence is one canonical GenAI span source per logical operation. A
representative trace must show one GenAI node per logical operation, expected
LLM and tool counts, stable model/tool names, correct workflow/agent parent
shape, and no wrapper-only spans counted as GenAI work.
Classify each orchestration boundary from source before choosing its operation.
Recognize a custom agent without requiring an agent framework: when a model
selects actions/tools, the application dispatches them, feeds their results
back into the model, and continues until a terminal answer, the owning turn is
an agent invocation. Trace the actual offered tools, dispatch and feedback
edges; a file name, tool declaration, retry loop or single model call alone is
insufficient. A fixed application-defined sequence of dependent stages can be
a workflow; a single inference facade is neither an agent nor a separate
workflow merely because it wraps a model request.
Record a GenAI operation roles Audit Evidence row mapping each actual
orchestration entrypoint to its behavioral evidence, source-backed identity,
semantic role, existing creator/label and covered-or-repair decision. Keep the
role assessment separate from the current instrumentation inventory. Existing
invoke_workflow, span names, comments, tests and prior audit prose can be
wrong: preserving their producer does not establish semantic correctness.
When a covering creator labels an agent as a workflow, retain that creator
and author a selectable same-span operation/agent-identity repair, its consumer
compatibility plan and agent lifecycle/duration acceptance. Do not add a second
agent wrapper to keep a misleading workflow node. Carry the agent role through
readiness, expected telemetry, scenarios and summary, including no-tool and
failure turns; inventory the current incorrect label truthfully until repaired.
Do not require both invoke_workflow and invoke_agent for one standalone
agent invocation merely because it calls models or tools. A separate workflow
requires evidence of an application-defined coordinated process at its own
boundary; HTTP/SSE wrappers and internal runner details do not establish one.
Bind each proposed orchestration node to that distinct source operation.
For Python with Splunk AO, make that inventory explicit. Search for
from splunk_ao import log, @log, span_type="tool",
span_type="retriever", SplunkAOLogger, SplunkAOCallback, supported model
or framework wrappers, add_splunk_ao_span_processor,
configure_distributed_tracing, and instrument_distributed_tracing. Classify
each path using the shared Splunk AO compatibility guidance as span creation,
export-only, transport-only, combined setup, or resource management. Record
the actual provider/export lifecycle and content-capture mode. Never infer workflow, model, tool, or
retrieval coverage from an export-only processor, and never infer generic HTTP,
metric, or log coverage merely from @log. When decorators, handlers, or
wrappers overlap app-owned OTel spans, mark coverage partial until one canonical
producer, safe content behavior, lifecycle, parentage, and duplicate absence are
proven.
For each span-producing Splunk AO callback, inspect its registration and the
owning workflow for a second callback, @log decorator, framework auto hook,
or app-owned OTel span on the same logical operation. Record source-backed
negative evidence when each overlap is absent, including the searched call
sites; do not infer absence from one file or from a clean example trace.
Where overlap exists, name the canonical producer and the duplicate-prevention
change. A local scenario must verify one correctly parented span per logical
workflow, model, and tool operation and no duplicate counts.
Audit teardown for every detected Splunk AO span source as an independent
outcome. Record a distinct current-state lifecycle assessment even when
teardown is present: cite the source of logger or provider creation and its
matching teardown, classify the path as source-covered when proven, and keep
this assessment separate from trace-capture inventory and any future
verification scenario. A separate Audit Evidence row or covered GenAI Readiness
surface can carry that result; source coverage alone is not runtime flush
proof. When an SDK-owned logger or sink lacks source proof of
logger.terminate() or another supported process teardown, create a separate
selectable lifecycle finding; do not hide it inside privacy, span-coverage, or
export findings and do not omit it merely because the process is short-lived.
For a caller-owned provider, require source proof of provider.shutdown() in
the same way. Keep each lifecycle row unresolved until the matching teardown is
proved by source and a focused local scenario.
Audit workflow naming as part of this proof. GenAI workflow names must preserve
the application's stable business workflow identity from constants, handlers,
workflow registrations, telemetry event names, docs, or prior trace names. Mark
workflow coverage partial when instrumentation invents names from HTTP
routes, request resources, session/storage concepts, or transport labels. For
example, assistant_v3_turn must not become assistant_v3_session_turn or
POST /v2/assistant/sessions.
Do not invent names from HTTP routes or session-derived labels.
Audit agent naming with the same rule. GenAI agent names must preserve the
application's stable agent identity from framework agent names, agent factory
names, classes, registration names, callback owner names, docs, or prior trace
names. Mark agent coverage partial when instrumentation invents generic
service-derived names. For example, a DeepAgents-backed agent should be
deepagents, not assistant_v3_agent, assistant, or agent.
Keep duplicate-span remediation in remaining_signals until the audit names
the existing canonical producer and proves no duplicate operation. Preserve
existing framework/vendor or app-owned coverage; a newly proposed app span is
not permission to disable the original bridge. An existing ownership conflict
or unsupported safe enrichment requires a precise manual decision.
When app-owned spans are canonical and the process uses preload, agent,
opentelemetry-instrument, NODE_OPTIONS --require, or another
auto-instrumentation bootstrap, audit the launch environment and startup
surfaces that run before the bootstrap. Mark duplicate-span remediation
partial if the only proof is App module code that mutates environment
variables after import, because that is not sufficient proof and framework
hooks may already be registered. Accept proof from Makefile
targets, service runner scripts, Docker or Helm env, VS Code launch configs,
procfiles, systemd units, shell env generators, or the exact documented run
command. Also accept generated env scripts when they are sourced before the
bootstrap.
Also audit parent-context proof for event-derived spans. In representative trace
evidence or tests, chat/model and tool spans must preserve the owning workflow/agent context
and prove a trace shape such as workflow -> chat, workflow -> execute_tool,
and follow-up workflow -> chat or agent -> chat edges. If they appear as
siblings of the workflow under a generic HTTP root span or generic server span,
mark the trace shape partial and keep parent-context propagation in
remaining_signals. Also check long-lived helper/setup spans such as memory
store, checkpointer, database session, stream-writer, or resource setup spans.
If callback-created chat/tool spans are parented to those helper spans instead
of the owning workflow/agent span, mark the trace shape partial; the
instrumentation must capture/re-enter the workflow/agent context before opening
helper spans and must not rely on whichever current span is active during
callback cleanup. Use this rule for memory store, checkpointer, database
session, stream-writer, or resource setup paths: helper spans must not become
the parent; capture the workflow/agent context before opening helper spans,
start event-derived chat and execute_tool spans with that captured context,
and write aggregate counters to the workflow span, not to whichever current span
is active. For async generator, SSE, WebSocket, ping-loop, or timeout
wrapper paths, check whether the stream is advanced with create_task, wait,
anext, or equivalent task handoff. If an OpenTelemetry current-span context
manager is kept open across those yield/task boundaries, mark the trace shape
partial; require an explicit workflow span/context handle that is passed into
the callback/event translator and ended manually. Also check whether that
workflow/agent context is carried through a request, turn input, event payload,
callback state, or config object that may be immutable/frozen. If the
instrumentation does not prove that app code will avoid mutating immutable,
frozen, or framework-owned carriers, keep parent-context propagation partial;
do not mutate those carriers in place. Treat a carrier as immutable/frozen when
source evidence shows frozen or readonly declarations, record/value types, no
mutation API, framework request immutability patterns, or existing code
constructs new copies instead of mutating.
Accept app-idiomatic copy/replacement proof such as Python
dataclasses.replace, attrs.evolve, pydantic model_copy(update=...) or
copy(update=...) as supported by the installed carrier API; Java records,
builders, or copy constructors; TypeScript
object spread, explicit Readonly<T> replacements, or structuredClone only
for plain-data carriers and never for live OTel Context or Span handles; Go
value copies with explicit field replacement; or the framework's request
clone/with-context API. If no safe copy path exists, require a separate
invocation-scoped sidecar context: a local object, context variable,
request-scoped map, or callback state keyed to the invocation lifecycle and
cleared after cleanup. Do not key sidecar context by raw user, tenant, session,
request, or trace IDs. Require a test or explicit static proof that the parent context is
passed downstream and the original immutable input remains unchanged; Python
tests should guard against FrozenInstanceError where frozen dataclasses or
models exist. Audit aggregate placement separately: if
gen_ai.usage.input_tokens, gen_ai.usage.output_tokens,
an application/vendor-owned derived total, assistant.llm.calls, or
assistant.tool.calls
are written only to a generic HTTP root span, report misplaced aggregate GenAI
attributes and require moving them to the workflow span or most specific owning GenAI span.
A generic HTTP root span should not be the evidence for a GenAI flow card unless
it has an explicit GenAI workflow operation.
If incident evidence depends on missed, flapping, auto-resolved, or no-data alerts, record detector reliability evidence
as a $splunk-configure handoff instead of an app-owned GenAI instrumentation
prerequisite.For GenAI services and demos, distinguish demo-only environment hints from
complete telemetry wiring. If a Makefile, README, script, or example command
sets only OTEL_SERVICE_NAME or OTEL_EXPORTER_OTLP_ENDPOINT, but the service
has no SDK setup, exporter setup, resource attributes, or framework
instrumentation, report that as incomplete resource/exporter configuration
rather than covered setup.
GenAI readiness contract -- the ## GenAI Readiness table is the complete
GenAI observability ledger. Only telemetry closure rows from that ledger become
instrumentation findings; governance, product, cost, policy, and external-owner
rows remain context unless the user explicitly asks for that audit domain. For
every GenAI readiness gap, create or update a structured surface row with:
surface, evidence, current_status, required_signals,
owner/source_files, and acceptance_criteria. If an existing audit already
has extra metadata columns, keep the surface name as the human-facing
identifier in summaries and closure handoffs. Split a surface when required
signals have different owners or acceptance criteria. Required
signals must be concrete signal names or signal intents, not vague area labels.
Use owner values that map directly to instrumentation outcomes: App-owned + patchable, App-owned but unsafe/too large, Provider/platform-owned, or
Already covered.
Status must be computed against every required signal:
| Ledger result | Rule |
|---|---|
covered | Every required GenAI signal is proven existing with source path and signal name. |
partial | Some required GenAI signals exist, but remaining required signals are named. |
missing | No required app-owned GenAI signal exists. |
owner-mapped | The repo cannot accurately observe the signal and the provider/platform/deployment owner plus exact missing source is named. |
Do not collapse a partial GenAI gap into covered because one metric or span
exists. The GenAI Readiness surface row is the source of truth for deciding
whether a selectable $otel-instrument finding is warranted.
GenAI metric applicability inventory -- assess every metric in the reviewed
current official tables relevant to the detected operations, including metrics
not chosen for implementation. Put one row per metric in canonical Audit
Evidence (evidence[]): check names the instrument; finding records its
official level, type/unit, actual source boundary and value availability,
applicability, disposition and reason; source cites the table/revision/date
and application source. Distinguish applicable, N/A and source unknown
from required, recommended, optional and deferred decisions. Assess
token distributions separately from usage totals, and non-inference duration
scopes separately from inference exclusions. An applicable optional metric may
remain recommended or deferred with a reason and its remaining capability
explicit; do not force every optional metric to emit or label it covered by an
instrument with different semantics. Required missing metrics must remain in
their owning executable findings' required_fix, expected_telemetry,
acceptance and verification scenarios; an official optional level cannot
downgrade a required skill/vendor or selected contract. A supplemental matrix
does not replace this canonical inventory, and a short list of chosen metrics
does not assess the rest. Preserve existing metric producers and consumer
contracts when proposing any transition.
Before handoff, apply the per-tool vendor content contract in
../references/genai-readiness.md to every actual tool boundary. For the GenAI
path, list gen_ai.tool.call.arguments plus gen_ai.input.messages for its
arguments, and gen_ai.tool.call.result plus gen_ai.output.messages for any
produced result, on that tool's canonical expected_telemetry. Bind missing
mappings in required_fix, acceptance and its verification scenario; preserve
an explicitly supported OpenInference alternative when that producer uses it.
Parent/model messages and an arguments/results-only tool span do not cover
these fields. Correct a canonical omission before rendering or handoff rather
than leaving the requirement only in supplemental prose.
Make each selected GenAI contract concrete and consistent across readiness
required_signals, finding required_fix, expected_telemetry, acceptance and
verification scenarios. Name the actual existing producer or the proposed SDK
creation API and matching official example path/revision/version, not only
'logger/schema helpers'. Enumerate applicable input/output message fields,
instructions/tool definitions, arguments/results, known parameters/response/
usage/stream fields and opaque correlation. Include the vendor-required agent
provider and tool input/output message mappings separately from their official
OTel levels. Require current typed-parts schema/value/redaction proof and actual
success/error/cancel parentage with no duplicate nodes; a generic 'GenAI
semconv' requirement cannot stand in for missing field acceptance.
For each producer path, place the concrete capture policy in the canonical finding and acceptance scenario: preserve a known stricter policy, otherwise propose redacted capture with 16 messages, 64 parts per message and 8192 UTF-8 bytes per content attribute. Name the actual or proposed file/function hook that sanitizes before SDK capture and every export sink. Unknown existing settings stay unproven; a proposed policy must still specify those limits, valid typed-parts truncation and native-record/OTLP sentinel-absence tests. Do not let a supplemental statement of 'bounded/redacted' replace this selected finding contract.
Compute each GenAI surface independently. Generic HTTP/database/runtime or
infrastructure metrics do not improve a GenAI surface status unless they
satisfy that row's required workflow, model, tool, token, memory, evaluation,
or AI-path signals. Use missing when none of the required GenAI signals
exists, even if unrelated OTel metrics are source-active.
For multiple modes or supplied source cases, derive a separate operation and
signal ownership ledger from each reachable branch before composing reports.
A metrics/logs-only branch has no trace producer to preserve: propose its
missing trace capability while retaining its actual metric/log provider.
Reconcile each ledger with findings, excluded work and provider-binding text;
an operation cannot be both absent and excluded as already instrumented.
Bind support receipts to that case's language, runtime and package; Python
exporter evidence cannot establish a Go implementation. Carry a source-backed
N/A decision through every resource, header, Studio-state and acceptance row
for a non-agent control; do not leave mandatory AO work in a reused template.
Generate field and lifecycle rows from the same case's operation ledger too.
Before finalizing, check every proposed operation and parent against that
ledger or its explicit N/A scope. A single-inference facade has a model
lifecycle; an unscoped "agent with model/tool children" rule invents operations
even when its separate project/routing rows correctly say N/A. Exercise this
consistency check with a report copy containing an absent operation/parent.
Include current versus proposed providers, exporters and destinations in that
ledger, with a source registration for each claimed existing component. Bind
each operation's pattern and runtime/version receipt to those same component
IDs and their current/proposed phase; render the narrative from those facts.
An empty current inventory cannot yield a preserve-current provider or installed
runtime claim in an operation row. Apply this closure to resource-client support
too: distinguish a captured language-neutral HTTP method/auth/schema contract
from language-specific SDK/client support. A Python SDK class name alone cannot
establish a Go client or its compatibility; absent wire/runtime evidence remains
an explicit gap. Exercise mutations that keep the correct inventory but add a
current-owner claim in an operation row, or unqualified foreign-client support
in a resource receipt. Derive routing/profile text from those facts too. With no existing exporter, propose
the selected SDK's new sink or a supported native exporter setup; do not tell
the app to preserve, enrich or merge headers into a nonexistent exporter.
Keep an unselected native/SDK alternative explicitly conditional rather than
presenting both as current topology. Add an absent-exporter routing mutation
to the same report consistency check.
Build each case's active acceptance from its applicable obligations and
selected capability owners before rendering text. Do not copy a shared list of
alternative SDK/native lifecycle calls into every row. Reconcile each active
acceptance item, nested state clause and dereferenced shared scenario with the
same role, language, destination and operation ledger as its required_fix.
Record the checked JSON paths and owners in the consistency receipt; checking
only status fields, required_fix or the injected examples leaves the actual
acceptance unproven. An AO N/A decision removes resource lookup/binding
activation requirements from active acceptance while retaining ordinary OTel
startup, emission and drain proof. Unknown lifecycle APIs remain exact support
gaps instead of foreign SDK alternatives. Exercise report-copy mutations that
leave the header/provider/fix correct but add a foreign lifecycle API to active
acceptance, or mandatory AO resource activation beneath an N/A decision; reject
both. For a selected Studio
native binding, apply the shared Names-only running process controls,
including retry-work bounds and shutdown. Galileo acceptance uses its supported
native resource/configuration/export path and preserves separate operator sinks.
Scope inherited scenarios and shared acceptance references to that destination
too; a correct provider table cannot excuse active Studio UUID-header/Resource
requirements in a Galileo row. Exercise the consistency check with that
destination-mismatch mutation and reject it before finalizing.
Splunk AO Runtime Coverage Contract -- assess every source-owned agent
runtime by default, plus other GenAI runtimes with detected or requested AO
integration. A bare audit request is sufficient for an agent's project, stream
and routing assessment; native OTel, Galileo, missing SDK imports and absent
cloud credentials do not exclude it. Respect explicit user exclusions.
Assess every in-scope GenAI runtime independently. Enumerate interactive/API, worker, and evaluation/test entry points from the
source scan. For each, record runtime-specific canonical genai_readiness
surfaces and an Audit Evidence row naming the entry point and reachable AO setup (or
the searched registration/configuration call sites when no setup is reachable).
Assess project binding, dedicated Agent Stream binding, configured runtime routing,
span producer, content behavior, and matching teardown for that runtime.
Apply the shared AO reference's AO-Compatible Trace Root contract to each assessed runtime. Trace the real entrypoint and transport ancestors as well as the GenAI operations; identify whether the intended AO representation retains the root and connecting parents. Record a source-backed root-compatibility gap in the canonical ledger when needed, with a truthful operation mapping and local/cloud acceptance. Routing IDs, accepted leaf spans or a root marker alone do not close it. Keep unavailable target-contract or cloud evidence unverified; audit does not modify the application or fabricate a workflow to close the gap. Read that entire shared section and record the physical root separately from the outermost GenAI operation. A generic HTTP parent needs its own root finding or compatibility blocker; resource/routing findings alone cannot stand in for it. Inspect conversation state and commit/rollback ownership before calling a single-agent HTTP controller transport-only; apply the shared controller case.
A logger, callback, project, Agent Stream, or terminate() path reachable only
from an evaluation, test, experiment, or demo runner does not cover a separate
interactive runtime. Likewise, a repository dependency, dormant helper,
generic OTLP endpoint, or collector receipt is not runtime routing evidence.
Preserve source-covered evaluation integration without inventing duplicate
resource or lifecycle work, but never let it close or replace the live-runtime
assessment. Search the actual live callback registration and startup/shutdown
paths, not merely the files containing AO imports.
For an in-scope live agent runtime without source-configured product bindings,
record its missing project binding, dedicated runtime Agent Stream binding,
and runtime route as separate readiness surfaces with distinct surface names.
Promote source-backed application/deployment configuration gaps to distinct
selectable finding_group: splunk-agent-observability findings, with the
project -> Agent Stream ->
routing prerequisite chain described below. Existing evaluation
resources may be reused only when source proves their intended live binding;
do not claim they are absent globally or force duplicate resources. Use
instrument_mode: default for safe source-backed project, stream and routing
gaps for every agent, including fresh AO, native OTel fallback, existing native
OTel, Galileo and existing AO runtimes. Do not hide them in fix all or omit
them because the prompt contains only the skill command. A compatible fresh
agent uses AO SDK creators; native OTel retains its creators and gains supported
trace routing; Galileo retains native project/log-stream APIs and export.
Record covered bindings with exact runtime evidence instead of inventing new
work. Missing secret values do not erase configuration gaps; state the exact
live-proof prerequisite. Non-agent applications with neither existing/intended
AO nor a user AO request retain ordinary OTel scope. A default resource plan is
not evidence that any cloud resource already exists or is globally absent.
Keep missing ordinary workflow/model/tool OTel signals untagged and separate;
content capture and lifecycle findings require their own source-backed gaps.
An AO routing finding's transitive dependency closure must support its own
acceptance criteria. If those criteria require canonical workflow, agent,
model, tool, or nested retrieval spans, include every unresolved producer and
semantic-continuity finding needed for those operations, not only exporter and
workflow setup. Cross-check each required live GenAI readiness surface and
its verification scenario against the routing finding's dependency closure:
when a tool such as search_docs performs a distinct retrieval operation,
its retrieval finding must be included separately from the tool finding.
Alternatively, explicitly narrow routing proof to the already covered
operations; do not silently promise unselected instrumentation work.
For a new live AO sink, include any unresolved ordinary provider-lifecycle
finding needed by that route. Author a local proof scenario for the exact
live entry point and attach it to the AO routing finding or its selected
provider-lifecycle prerequisite. Use fake or in-memory application and AO
sinks without cloud credentials: reuse the existing provider and compatible
exporter with routed trace headers (or the already selected SDK sink), emit one
canonical workflow/model/tool span per logical
operation, inspect every active sink, and prove at most one export to the same
AO destination. Exercise force_flush and shutdown on owned providers or
supported AO logger termination; assert completed pending spans drain and
owned resources close. Keep fresh cloud receipt as a separate scenario. An
evaluation logger's teardown does not prove a new live sink's lifecycle.
Keep ordinary producer/lifecycle findings untagged rather than duplicating
them as AO findings.
Before finalize-audit, apply this AO acceptance gate to each live-routing
finding, not only to a generic provider finding:
unverified and do not invent a host or port.
For an existing non-AO path, inspect its actual resource API origin,
selectors, resolved trace-header configuration and supported existing
exporter. Do not require SDK variables or a new AO SDK dependency.
For an SDK-owned Python Studio gateway path, inspect populated SPLUNK_AO_API_URL,
SPLUNK_AO_CONSOLE_URL, and the public SPLUNK_AO_API_KEY=local-gateway
marker in the actual loaded profile and any generated env, not only key
allowlists or examples. Missing values require a selected configuration
fix and a profile-to-process acceptance scenario; audit does not write the
env file. Missing application cloud credentials do not establish that this
gateway path is unavailable.supported, unsupported with the exact missing contract, or unverified
with the exact unavailable package/runtime evidence decisions in canonical
evidence and AO runtime rows; do not defer them to the acceptance scenario.
Generic "cloud-compatible" wording is not a compatibility assessment.force_flush/shutdown or supported logger termination path, inspect
both outputs, prove pending completed spans drained and resources closed,
assert one canonical workflow/model/tool operation tree, and rule out
duplicate export to the same AO destination. A separate generic provider
shutdown scenario or a vague "no duplicates" sentence is insufficient.
Keep fresh cloud receipt as a distinct optional proof.Before finalize-audit, reconcile every enumerated runtime with its readiness
row and source evidence. Every missing or partial app-owned AO configuration
row must map to an unresolved AO-group finding with the same area; a covered
row must cite reachable setup for that exact runtime. If any runtime was
omitted, repair the canonical JSON before rendering. Never patch HTML or add
empty AO cards just to make the subsection appear.
Deterministic gap section contract -- the canonical audit has exactly one
actionable gap source: findings. Record GenAI detail in canonical
genai_readiness rows, promote service-owned OTel telemetry closure rows into
findings, and keep the HTML decision view focused on those findings. For every
source-owned agent, or when other Splunk Agent Observability work is in scope, follow
../references/splunk-agent-observability.md and put source-backed actionable
product or routing gaps in the same findings array with
finding_group: splunk-agent-observability. Never add a top-level
splunk_agent_observability object or a peer report section.
Treat a source-proven Splunk AO SDK content-capture boundary as AO-specific
work too: if SplunkAOCallback captures raw caller content contrary to the
application's documented metadata-only behavior, create a distinct selectable
finding for the app-owned guard before callback construction and set
finding_group: splunk-agent-observability. Keep general content policy and
governance questions as context; ordinary missing GenAI content attributes
belong in their owning selectable OTel findings without an AO finding group.
For a source-backed project/Agent Stream/routing gap that can be closed by
application or deployment configuration, author selectable project configuration
and selectable Agent Stream configuration findings with executable modes and
their dependency edges. Set ao_target_scope: resource-routing on these
resource and runtime-routing configuration findings; do not mark AO callback
content boundaries or unrelated configuration as resource-target eligible.
Preserve the shared reference's unmarked legacy resource/routing findings.
A target ID or credential may be supplied at the
selected instrumentation/deployment step; missing audit-time credentials alone do not make an AO finding external.
When all three gaps exist, create separate selectable AO findings for project, Agent Stream, and runtime routing
rather than collapsing them into one card. The Agent Stream depends on project;
runtime routing depends on project, Agent Stream, and OTel export. Keep a
project finding scoped to resolving or creating the product resource, a stream
finding scoped to its own resource, and a routing finding scoped to durable
application/deployment configuration. A user can then select a downstream
finding and see its distinct prerequisites auto-included. Do not split a
single already-working resource just to increase the finding count.
Apply the shared AO reference's Project And Agent Stream Inputs and Idempotent
Resource Provisioning contracts to these findings. State explicitly that
instrumentation resolves existing resources and creates missing selected,
named resources, rather than weakening the fix to "configure existing names."
Show Project and Agent Stream controls first in the Splunk Agent Observability
subsection, before its cards. Both are required whenever any AO instrumentation
is selected, including callback/content findings and dependency-selected work.
Use two name fields, explicit required labels and field-scoped errors, with no
selector dropdowns or reuse-only checkbox; blank names must block the generated command. Preserve
entered values through disclosure and selection updates. Existing configured
names or stable service-derived names may be shown as suggestions, but do
not silently supply or approve them. Keep these values in the bound selection's
ao_target, not in an unvalidated report note. Bind the shared provisioning
contract to canonical resource acceptance and mapped scenarios: reuse both
existing resources without creates; create conclusively missing selected names
in project-before-stream order; handle mixed state and repeated-run reuse;
recover duplicate conflicts and uncertain create outcomes with bounded exact
relookup; treat supplied IDs as lookup-only with no create on an unresolved ID;
validate ownership and stream/project association; and never treat auth,
transport, or 5xx failures as absence. Failure must not suppress ordinary OTel.
The routing scenario must prove the named launch profile is loaded before
exporter initialization (and SDK import on an SDK-owned path), not just that
an env file contains the right keys. Existing non-AO apps use supported
resource APIs and trace-specific headers on the existing exporter without a
new SDK dependency.
A read-only audit
does not create resources or claim that an unqueried resource is absent.
For the resource plan, inventory the actual application launch profile and
its supported loader. Record native selector aliases and whether that exact
runtime consumes the standard SDK selectors SPLUNK_AO_PROJECT /
SPLUNK_AO_PROJECT_ID and SPLUNK_AO_AGENT_STREAM /
SPLUNK_AO_AGENT_STREAM_ID; evaluation-only selectors do not establish a live
application binding. Disclose existing selectors and stable service-derived
suggestions, and name the profile and runner that instrumentation should
update/load. Missing required user inputs trigger the generic instrumentation
preflight prompt; a suggestion or blank field is not an accepted target. Record
missing or unsupported profile wiring as a gap. Audit remains read-only for env files and cloud resources.
Distinguish ordinary local OTLP receipt from AO resource and delivery evidence.
For existing native OTel, assess the shared reference's Native trace binding
and recovery contract. User-selected existing resource names still need real
IDs; inspect whether normal startup/runtime resolves them and configures both
UUID trace headers and splunk_ao.project.id / splunk_ao.logstream.id trace
Resource fields. Flag startup-only or manual-only setup, permanent header
stripping after 503, and absent payload binding. Author a names-only,
existing-resources, same-PID disconnected-to-connected recovery scenario with
zero creates and exact cloud trace readback; do not claim unqueried IDs exist.
For non-Galileo AO routes without destination settings, an available cloud-compatible Studio
gateway is the default local destination. Its absence must not block source
instrumentation or credential-free tests. An existing direct-cloud route
remains valid. Assess normal SDK resource calls, supported per-request
project/stream binding, gateway compatibility, and cloud
receipt separately. Preserve explicit operator/direct-cloud destinations.
Do not propose a Studio-specific application adapter or global route
registration. If the SDK or gateway cannot implement the standard API/ingest
contract, record that exact compatibility gap rather than claiming that a
connection alone provisions resources or proves delivery. Local OTel receiver
configuration remains ordinary OTel work; AO project/stream/routing remains
distinct configuration work under the same findings ledger.
Do not claim a product resource or routed trace is Working until it is
resolved and verified. In contrast, reserve external follow-up for a source-proven outside owner
who must perform a prerequisite action outside the selected application's
configuration or supported product API path. Do not make an executable Agent
Stream or routing finding depend on a non-executable external item merely
because the read-only audit cannot call Lab0.
Populate canonical findings so the shared renderer can project the single
grouped, priority-ordered finding list; do not hand-author its layout. Use only required,
recommended, or deferred priorities and only default, fix all, manual decision, or external follow-up instrument modes. Put baseline correctness,
trace continuity, error attribution, exporter/resource identity, cardinality
safety, and duplicate signal ownership in required. Put safe deeper
diagnostics and business metrics in recommended unless the request already
makes them mandatory. For a detected supported application logging stack, put
a missing local Splunk Observability Studio provider/exporter/bridge in required with
instrument_mode: default; this makes it part of implicit broad/default
Splunk Observability Studio instrumentation. Do not create that finding when logs are explicitly
disabled or a non-OTLP operator-owned exporter is already configured. When an
absent/otlp exporter is paired with an explicit non-local logs endpoint,
create an external follow-up whose exact required_fix and
external_requirement name the operator-owned configuration change, then
create the local-log required/default finding with that external ID in
dependencies. This valid dependency closure keeps the executable finding
locked; never put this configuration conflict in scan_blockers.
Keep product
behavior decisions,
readiness contract choices, content-policy ownership, safety policy, cost/billing
ownership, and external telemetry prerequisites out of canonical findings by
default; record them in readiness/context rows instead. Use deferred only for
a concrete prerequisite or decision that gates an in-scope service-owned OTel
finding. Every row must explain user/operator impact, state a specific OTel fix,
and cite the verification scenario IDs that can prove closure. Group related
routes and call sites by remediation theme instead of producing a row per edge.
Do not create manual or external findings just to record product/runtime
choices, billing, cost, safety policy, content-governance, or external business
context.
When a default GenAI gap involves duplicate or overlapping instrumentation,
name the existing canonical owner per logical operation and its supported
enrichment hook or proven uncovered boundary in Required fix. Do not propose
a replacement producer plus blanket suppression. If source evidence cannot
support ownership or safe enrichment, use manual decision; do not hand $otel-instrument an unresolved
"select one canonical source" instruction in a default row.
For mutually exclusive choices, first decide whether the branches are in scope.
If the decision only changes product/runtime behavior, such as liveness versus
dependency-aware health, keep it in readiness context unless that domain was
explicitly requested. If multiple options each produce real service-owned OTel
instrumentation work, create one option-locked executable finding per real
branch, put each branch ID in only that option's unlocks, and keep those
unlock sets pairwise disjoint. Do not use one shared executable finding for
multiple exclusive options, and do not make two branch implementations appear
as simultaneous independent audit gaps before the user answers.
Evidence and flow contract -- write source evidence as a compact
## Audit Evidence table and create one ## Signal Flow / ### Component Flow Map using the exact marker semantics defined in this skill. The map is
a reader aid, not runtime proof. Show only major process, dependency, and
telemetry edges; keep independent roots separate and point human-readable gap
markers to the prioritized gap table. Use only [SOURCE-COVERED] and
[GAP: <area>] markers.
Anti-patterns -- flag any of these:
4317/4318 values are fallbacks only after the
configured or advertised receiver endpoint has not been found; never replace
a discovered non-default port with them.recordException in error handling pathsgo.opentelemetry.io/contrib, @opentelemetry/*, opentelemetry-*)For partially instrumented Go services, explicitly check and report:
collector.example.comotel.Tracer(...) or otel.Meter(...) calls inside request handlers or loopsGetTask-{id}otel.SetTextMapPropagator(...)MeterProvider, missing service.name, and missing provider shutdown/flushLibrary selection guidance must remain release-neutral. Assess current official package metadata and the project's runtime, peer, SDK/exporter/bridge and lock constraints; name the latest compatible proposed set or the preserved installed set and its reason in the report. Exact resolved release numbers belong in dated run evidence, not fixed skill recipes. A latest-example lookup is not proof that independently chosen latest packages work together.
For GenAI, populate all three Required GenAI Report Evidence tables from
../references/genai-readiness.md before handoff. Keep field-level official
Opt-In provenance in the canonical evidence, not only a supplemental summary.
Assess supplied auxiliary timeout/cancel facts and actual opaque IDs even when
the main application has no matching auxiliary phase; distinguish source
scenarios instead of dropping their evidence.
Before finalizing, reconcile a source-operation ledger against every proposed
node in canonical readiness, findings, expected telemetry, acceptance scenarios
and flow. Record the source function/call site and operation for each node.
One agent turn coordinating models/tools is one orchestration boundary; propose
both workflow and agent nodes only when distinct source operations and their
call relationship establish both. A report title, README description or SDK
trace envelope does not establish another application boundary. Correct every
canonical occurrence of an unsupported node, not only the supplemental prose.
Audit separately supplied source cases with the same field-level care. For each available agent/tool context field, record the exact attribute, actual safe value and source, owning operation, official requirement level, profile acceptance and remaining proof. Include configured agent description, the fixed-single-model versus dynamic-model condition, and the tool's own agent name, safe conversation ID and offered description. A generic 'metadata is available' statement or parent-only field does not assess these values. Keep nonlive cases supplemental and source-unavailable fields explicit; never copy their values into live findings without matching application source.
When the task requests assessment of independent supplied source, capture or compatibility cases, inventory those cases before synthesis. Reconcile each requested case individually: its scope, actual boundaries/owners, available field values and status, creator/route decision and remaining proof, or the exact reason a requirement is not applicable. A container-level summary does not close its separate cases. For candidate compatibility matrices, state the chosen candidate, satisfied constraints and why alternatives are rejected; disclaiming live installation alone does not assess the selection. Check the finished receipt against the inventory before handoff. Keep nonlive evidence separate and do not invent cases from reference examples or expand the task's audit domains.
For AO/native routing assessments, report separate destination-scoped header
compatibility rows or fields for the selected implementation and the public
standalone AO contract. Name the exact pair: current Studio uses projectid
and logstreamid; public standalone AO uses projectid and agentstreamid.
For each, state applicability, supported/unsupported/unverified status,
and the source or captured protocol evidence supporting that scope. A local
receiver rejecting agentstreamid establishes only that receiver's contract;
never call it a globally unsupported alias or omit the distinct public AO
contract. A contract outside the selected route remains separately documented
as not selected, without claiming it was executed or changing the route.
For each inspected creator, record its version/file/symbol and actual start
arguments, which attributes/kind reach the sampler and on_start, and which
fields are applied later or during finalization. When source establishes a
name-only helper with no public initial kind/attributes argument, state that
concrete capability limit rather than a conditional 'if unsupported'. Identify
the supported hook or remaining creation-boundary test needed. Finished-span
setters/exporter enrichment do not prove earlier sampling inputs; source
inspection does not prove a runtime sampler result. Keep this scoped limit
separate from independently supported content and operation coverage.
Reconcile every newly proposed gen_ai.* attribute with the inspected official
registry and preserve the vendor/legacy provenance of existing fields. Do not
invent a reserved semantic attribute such as gen_ai.usage.total_tokens when
the current registry defines only the applicable input/output counts. A useful
derived total belongs in an application/vendor-owned namespace with its
calculation identified; do not remove a proven existing consumer alias merely
because it is not an official attribute.
For each GenAI runtime, write a concrete producer receipt before finalizing:
runtime -> preserved/proposed creator symbols and source boundary -> installed version or explicitly proposed source-verified version -> exact official example path/revision/date -> inspected API support -> actual/prospective proof -> remaining. Apply Decorator Selection for each custom Python function: name
SDK @log, its actual span_type/function and public capture/sink support where
compatible. For a precise SDK decorator limitation, name the application-owned
function decorator and documented creator it invokes once at that boundary.
Complete the mandatory per-function decision before prescribing lower-level
methods or schema helpers; the same pattern/probe acceptance applies to model,
tool and retrieval functions as to the agent. A manual context-manager scope
does not satisfy a fresh function's decorator pattern. Use the lower-level
method table only inside a justified function-decorator fallback or for a
source-proven non-function lifetime. Check the current official example and
matching APIs; record the resolved example revision and chosen compatible
packages in the report. This is a plan, not installed or runtime proof.
Keep the receipt in canonical evidence and the applicable finding's
required_fix/acceptance. A general SDK citation or 'logger/schema helpers'
without named symbols/example/version is incomplete; correct that report
before downstream handoff. Existing producers remain preserved.
Write two audit artifacts inside the scanned service root (create the
.observe/ directory if it does not exist):
.observe/otel-audit.json -- canonical machine-readable audit source..observe/otel.html -- self-contained human review report generated from the
JSON. This is the normal human interaction surface for expanding and
selecting finding IDs. Keep it audit-only; never render instrumentation
or verification overlays into this file.
Use .observe/otel-audit.json as the source of truth for stable finding IDs,
selection, and downstream tool handoff. Do not require humans to read or edit
the JSON directly; generate .observe/otel.html from it.
The reviewer uses .observe/otel.html to understand findings, answer any
manual decision controls, choose executable instrumentation scope, and save or
copy the exact $otel-instrument command. It is not a proof report. After
instrumentation, change-impact and proof status move to
.observe/otel-instrumentation.html; scope changes should return to
.observe/otel.html, not edit generated HTML or JSON by hand.In HTML, put selectable findings immediately after the concise decision
summary. When AO findings exist, render them as a nested
Splunk Agent Observability findings subsection after all ordinary OTel cards
inside the one top-level Findings section. Order by priority within each group;
keep recommended ordinary OTel cards with the other OTel cards. Group by the
explicit finding_group, preserving IDs and the canonical list/selection order.
GenAI subject matter or an ID prefix alone does not assign the AO group.
Do not render a separate top-level Agent Observability
section. Do not render the component map, connection lanes, component-coverage
groups, raw flow map, full current-state inventory, or a duplicate all-findings
decision table. Keep signal_flow in canonical JSON for machine use. Reserve
one collapsed technical appendix at the
report level after the findings for cross-finding source-visible
instrumentation evidence, the shared verification plan, audit evidence, and
recommendations; keep finding-specific proof and implementation detail on its
card.
After the card header and selection or decision control, keep the expanded
narrative decision-sized. Its four first-level fields are
Gap, Why it matters, a mode-aware required action, and Next step. Label
the action Instrumentation change for executable work, Decision needed for
a manual prerequisite, and External requirement for an external
prerequisite. For a currently selectable executable finding, Next step is to
select the finding, copy the generated prompt, and run $otel-instrument; do not
present authored verification or dashboard work as
the reviewer's immediate action.
Keep that copy synchronized with selection state: selected work proceeds to
the generated prompt, an auto-added dependency explains why it is included, and
blocked work names the blocking stable finding IDs and directs the reviewer to
resolve them first. Show a compact telemetry shape on the card from exact
expected_telemetry[*].type counts, including configuration and resource
items. When a finding has dependencies, show their stable IDs as a selection effect.
Do not infer a material-safety badge from free-text constraints, severity, or
priority; the schema does not author that judgment.
Put exact expected telemetry, evidence, acceptance criteria, and authored
constraints behind one collapsed Technical details
disclosure. Label constraints Implementation guardrails, and summarize the
disclosure with acceptance-check, guardrail, and source-reference counts. Do
not render raw verification-scenario IDs, repeated full scope classification,
canonical follow_up_actions, resolution metadata, or
a second dependency list in finding HTML. Those fields remain in canonical
JSON for $otel-instrument and $otel-verify. Put post-instrumentation product actions in
.observe/otel-instrumentation.html, not in the audit finding card. Keep a
manual decision's owner and question in its decision control and Next step;
keep an external prerequisite's owner and required telemetry in its primary
action and Next step.
Keep the HTML complete and usable on its own. It may link to the canonical JSON as an optional alternate format, but must not require the reviewer to open Markdown to understand or select a finding.
Write the HTML summary as a decision brief, not a compressed defect list. Use
3-7 plain-language bullets and state the total finding count, what source or
configuration currently shows, the highest-priority app-owned work, and any
exact owner decision or external prerequisite that blocks executable work.
Keep this detail in the HTML report; the chat handoff is intentionally limited
to the single report link defined below. Do not present canonical
meta.status as a human outcome in HTML: it classifies the machine report and
does not claim runtime proof. Do not repeat a generic runtime-unproven warning
in the decision summary. Put finding-specific missing proof in that finding's
nested Technical details; reserve the report-level technical appendix for
cross-finding current-state evidence, the shared verification plan, and audit
notes. Give every finding one concise
product_outcome sentence answering what the owner should see or gain after
implementation and verification. Lead with monitoring and product outcomes such as a reliable trace
waterfall, route or dependency filtering, a chart, detector, or readiness view. Move
class names, provider topology, exporter details, and other implementation
jargon into finding evidence or technical highlights unless they are the
decision itself.
In the HTML decision view, render all ordinary OTel findings together, followed
by the AO subsection. Within each group, order by machine-readable priority:
required, then recommended, then deferred, preserving canonical order
within the same priority. Keep this display projection separate from the
digest-bound canonical finding and selection order. Put one concise
current-baseline sentence and one group-and-priority explanation before the list, then show a compact
Findings · N heading immediately above the cards. Keep quick-win, effort,
severity, priority, and execution-state metadata machine-readable in canonical
JSON.
Each card has one title, one expected monitoring outcome, one neutral selection control when executable, and the stable finding ID as a secondary cross-report reference. IDs must remain deterministic across selection, instrumentation, verification, and configuration handoffs. Priority is expressed only by list order; lifecycle is reflected by the checkbox, next-step copy, and saved selection state, and effort remains machine-readable only in canonical JSON.
Use the instrument modes consistently in the human view:
default is safe app-owned work that can enter the instrumentation handoff
after the reviewer selects it.fix all is safe broader work that remains opt-in; render the same neutral
Select checkbox as default, without an optional tag.manual decision renders as decision needed: a named telemetry-specific
prerequisite offers two or three explicit answers and blocks separate
executable findings until one answer is selected. The manual finding remains
visible but its ID cannot enter instrumentation scope.external follow-up renders as external follow-up: a known owner outside
the service must supply an exact prerequisite needed by a separate executable
finding. It remains visible as External follow-up but cannot enter
instrumentation scope.Render the neutral Select checkbox only for executable default and
fix all findings. For manual decision, render its two or three
decision_options as an accessible one-of answer control, never as a Select
checkbox. Keep external follow-up non-interactive and never emit a
checkbox for it; never emit a checkbox for either non-executable finding mode.
Persist the chosen option under decision_answers in the saved selection. The
answer unlocks only executable findings listed in that
option's unlocks; every other branch remains blocked. Answering does not
select or auto-add unlocked work. If the answer changes, remove any now-invalid
requested or dependency-closed work before export. Keep the full mode
classification, verification-scenario references, ownership, and requirements
in canonical JSON. In HTML, keep
manual decision ownership and the question in the answer control and Next step; keep external ownership and its requirement in the primary action and
Next step. Render explicit lifecycle state as selected and an auto-added
dependency as included, never approved or decision requested. A checked
checkbox records explicit reviewer intent; dependency inclusion is derived
separately and must not make an auto-added executable dependency look explicitly
chosen.
Use this shape for .observe/otel-audit.json:
{
"schema_version": 2,
"kind": "otel-audit",
"meta": {
"audit_id": "example-service-20260717",
"service_name": "example-service",
"commit": "abc1234",
"language": "go",
"framework": "chi",
"date": "2026-07-17",
"status": "Partial",
"genai_ownership_detected": false
},
"summary": ["highest impact finding first"],
"flow": "audit -> select -> instrument -> verify -> configure/dashboard -> publish",
"evidence": [
{"check": "Manifest", "finding": "Go module", "source": "go.mod"},
{"check": "Entry point", "finding": "HTTP service", "source": "main.go"},
{"check": "Route source", "finding": "GET /health", "source": "main.go:42"},
{"check": "Runtime/startup", "finding": "Go test runner", "source": "go.mod"},
{"check": "GenAI ownership", "finding": "No", "source": "repository source scan"}
],
"routes": [{"method": "GET", "path": "/health"}],
"signal_flow": {
"component_flow_map": "main.go [SOURCE-COVERED] -> handler [GAP: HTTP latency]"
},
"current_instrumentation": {
"spans": [{"name": "GET /health", "source": "otelhttp", "type": "auto"}],
"metrics": [],
"logs": [],
"incident_readiness": []
},
"genai_readiness": [],
"findings": [
{
"id": "OTEL-001",
"title": "HTTP latency lacks route-level proof",
"severity": "high",
"priority": "required",
"effort": "small",
"status": "proposed",
"area": "HTTP latency",
"gap": "Source shows no route latency metric or span timing.",
"impact": "Operators cannot isolate slow routes in Splunk Observability.",
"product_outcome": "Operators should see one route-named trace plus route latency, request-rate, and error views.",
"required_fix": "Add HTTP server instrumentation and route attributes.",
"instrument_mode": "default",
"verification_scenarios": ["http.health.success"],
"dependencies": [],
"evidence": ["main.go:42"],
"acceptance_criteria": ["One server span has http.route=/health."],
"constraints": ["Keep route values low cardinality."],
"expected_telemetry": [
{
"type": "span",
"name": "GET /health",
"attributes": ["http.route"],
"product_view": "Trace waterfall and route filtering"
}
],
"follow_up_actions": ["After instrumentation proof exists, filter the span in Splunk Observability Studio before merge."]
}
],
"verification": {
"environments": [
{
"id": "go.local",
"surface": "example service",
"config_evidence": "go.mod",
"runner": "go test ./...",
"scope": "module",
"prerequisites": "none"
}
],
"scenarios": [
{
"id": "http.health.success",
"trigger": "GET /health",
"entrypoint": "main.go:42",
"expected_signals": "GET /health span",
"proof_level": "full runtime",
"acceptance_criteria": "span is emitted with stable route attributes",
"environments": ["go.local"]
}
]
},
"anti_patterns": [],
"recommendation": ["Run $otel-instrument with selected executable finding IDs."]
}
JSON requirements:
OTEL-001, OTEL-002, or AO-001, in
canonical order. Omit finding_group for ordinary OTel findings. Use only
finding_group: splunk-agent-observability for source-backed Splunk Agent
Observability product, SDK-specific content-capture, or routing work; the renderer groups those cards under
the existing Findings section without changing selection semantics.status: proposed for newly audited gaps. Selection, implementation,
and verification overlays update later artifacts; the audit baseline remains
source-derived.critical, high, medium, low, or info severity values.required, recommended, or deferred priorities and only
default, fix all, manual decision, or external follow-up instrument
modes.manual decision must include a non-placeholder decision_owner and
an exact telemetry-specific decision_question that names an actual expected
signal, attribute, or configuration scope, plus two or three explicit
decision_options. Each option has a stable id, concise label, concrete
outcome, and an unlocks list containing only executable finding IDs that
depend on the manual finding. Option IDs are unique within the decision, and
option unlock sets are pairwise disjoint. An option may use an empty
unlocks list when that answer intentionally produces no instrumentation
work. Do not create a manual decision finding for a product/runtime choice
unless it gates a concrete service-owned OTel finding. Every
external follow-up must
include a known non-placeholder external_owner and an exact
external_requirement naming an actual expected OTel signal, attribute,
configuration scope, or telemetry proof that owner must supply. The exact
external requirement must also be the finding's required_fix, so
service-owned implementation cannot be hidden in an unselectable item. Do not
create an external follow-up finding only to record business, billing,
product, governance, or platform context; keep that context in readiness rows
unless it blocks an in-scope service-owned OTel finding. Those fields are
invalid on other modes.manual decision and external follow-up must be in the
transitive dependency closure of at least one default/fix all finding.
Reject orphan non-executable findings. A non-executable finding contains only
its prerequisite decision or externally supplied telemetry requirement; put
app-owned implementation in a separate executable finding that lists the
prerequisite in dependencies. For real OTel branches, create one
option-locked executable finding per option and put each ID only in the
matching option's unlocks; do not pre-create branch findings as visible,
simultaneous independent gaps that inflate the audit count before the user
answers.small, medium, large, or decision so owners can
distinguish quick wins from longer or choice-dependent work.product_outcome,
required fix, evidence, acceptance criteria, expected telemetry with its
Splunk Observability Studio product_view, and at least one follow-up action. The outcome
states what the owner should see or gain after implementation and
verification without claiming it is already proven. Include verification
scenario IDs when runnable.path must be removed,
name the bounded replacement such as http.route and state that dashboards or
detectors using the old field need migration.verification.scenarios.$otel-verify or generic run verification as an audit recommendation, finding follow-up, or chat next
step; audit owns selection planning, while $otel-instrument invokes
verification internally after implementation.verification.scenarios..observe/evidence/ and cite it from JSON.After writing .observe/otel-audit.json, run finalize-audit. This command
validates the canonical source, renders the interactive HTML view, and prints
one compact digest:
python3 -I "<directory-containing-loaded-SKILL.md>/scripts/observe_report.py" finalize-audit \
.observe/otel-audit.json \
--html .observe/otel.html
render-html infers the source repository root when the audit is under
.observe/ and turns exact existing repository-relative citations into local
file links. When rendering an audit from another directory, pass
--repo-root <service-root> explicitly; never embed an absolute host path in
the canonical JSON.
Resolve both placeholders directly from the directory containing the loaded
otel-audit/SKILL.md; never use a service-root or repository-root script by
name. If finalization fails because of a canonical-input or renderer problem,
repair it and rerun finalize-audit; never patch generated HTML. If it fails
instead because the sandbox denies binding 127.0.0.1 (the reported error
names a denied loopback socket, not an input or renderer problem), do not keep
retrying finalize-audit -- retrying cannot succeed against a sandbox policy;
use the sandbox-denied chat handoff below instead.
finalize-audit starts or reuses a detached report server bound only to
127.0.0.1 on an available port and returns the HTTP Markdown link in
links.review_report. The server exposes only otel.html,
otel-instrumentation.html, otel-audit.json, and its private health check; it
never serves the repository.
It requires an unguessable token in the URL path, rejects symlinked report
files, disables caching and content sniffing, and stores versioned reuse state
with user-only permissions where the platform supports them. The launch token
is transferred through that private state rather than process arguments,
concurrent finalizers reuse one server, and the server exits after eight hours
without a request. Under loopback HTTP, repository source citations are
copyable path text rather than broken links; the server never exposes source
files. Do not open the browser automatically. A loopback link works directly
in desktop IDEs; remote workspaces may require their normal localhost port
forwarding.
The HTML is the human review and selection surface. Keep its empty fixed tray
hidden and inert. After a reviewer selects work or records a decision
answer, show only the plain selectable terminal command section. Do not render
a selection-count summary, save guidance, or a Save selection button. The
command must be regenerated from the current explicit requested_ids
and canonical decision_answers as
$otel-instrument --ids OTEL-001,OTEL-002 --decision OTEL-003=option-id <absolute-service-root>.
Embed the validated absolute service root supplied to finalize-audit in the
HTML payload and use it in the generated prompt, including when the report is
served over loopback HTTP. Keep file:// path inference only as a compatibility
fallback; a normally finalized report must never show the literal
<service-root> placeholder.
Use explicit requested IDs, not auto-added dependency closure, because
$otel-instrument recomputes and validates dependencies. If the reviewer has
recorded only decision answers and no executable selection, show that no
instrumentation command can be generated until an executable finding is
selected. The cards, terminal command, and polite live region must
distinguish explicit selections from auto-added dependencies.
The terminal command is the only visible selection handoff. It must carry the
explicit requested IDs and decision answers needed for $otel-instrument to
recompute and validate dependency closure. Keep selected-audit and
.observe/otel-selection.json compatibility in the machine workflow, but do
not expose browser save or download controls in audit HTML.
The expanded finding's collapsed Technical details must retain every expected
telemetry item, acceptance criteria, authored constraint labelled
Implementation guardrails, and source evidence. Canonical JSON retains
verification-scenario references, full mode ownership and requirements,
follow-up actions, dependencies, and resolution metadata for downstream
skills.
The saved audit report may carry review_selection; $otel-instrument must
extract and validate it before instrumentation. For compatibility, the
instrumentation preflight may materialize the same validated selection as
.observe/otel-selection.json, but that is an internal handoff artifact, not a
manual user copy step. It records explicit requests, executable dependency
closure, and decision_answers.
decision_answers is separate from requested_ids and approved_ids: it is
a canonical-audit-order list of finding_id/option_id entries and never
contains executable scope; a selection carrying decision_answers is schema
v2, or schema v3 when it also binds an AO resource target.
Preserve the machine schema names requested_ids and
approved_ids for compatibility, but do not present approved_ids as human
approval: it is the dependency-closed executable selection. A manual
decision ID and an external follow-up ID can never appear in either executable
ID list. Reject unanswered decision dependencies, answers not authored by the
audit, and requested or approved executable work not listed in the chosen
option's unlocks. A valid answer only unlocks matching executable work; it
never selects that work automatically. Persist an answer even when its option
unlocks no work, without inventing requested or approved IDs. Announce
automatic dependency changes and save/adoption feedback through an
aria-live="polite", aria-atomic="true" status region. Never hand-edit
generated HTML. When the user provides
IDs in the same request, create and validate the bound selection with:
python3 "<directory-containing-loaded-SKILL.md>/scripts/observe_report.py" select \
.observe/otel-audit.json \
--ids OTEL-001,OTEL-004 \
-o .observe/otel-selection.json
The tool validates IDs, binds the selection to the audit ID and SHA-256 digest, and auto-includes dependencies in audit order. Do not edit code until the owner has selected executable IDs.
Keep these essential input semantics in the canonical JSON:
meta.genai_ownership_detected is the explicit ownership switch. Populate
genai_readiness only when it is true. Human HTML must not render full
Incident or GenAI readiness ledgers as separate primary sections; preserve
authored readiness rows in canonical JSON for downstream skills.current_instrumentation and actionable work in
findings. Keep every span, metric, and log integration as an individual
JSON row rather than grouping exact signals into prose.signal_flow.component_flow_map, use only [SOURCE-COVERED] and
[GAP: <area>]. Every gap marker must use the exact area of a finding, and
every finding area must appear in at least one marker. Repeat an area only
when the same finding explicitly spans multiple components; do not create a
duplicate finding for the repeated association.current_instrumentation.incident_readiness row must have an unresolved
(proposed, approved, or in_progress) finding with an identical area
and mapped verification scenarios. A covered row conflicts only with an
unresolved same-area finding. Validate incident area and
required_signals, plus GenAI surface, required_signals, and
acceptance_criteria, as OTel closure fields; evidence and operator-impact
prose remain context. A row is telemetry-scoped only when its required
signals name service-owned OTel telemetry or configuration, not merely a
product contract, cost owner, safety policy, content-governance rule, or
external business prerequisite. Do not put general operational observations
in either canonical readiness array merely to force a finding. Do not render
authored readiness tables as visible peer sections in audit HTML; finding
cards carry the user-facing action context.verification.environments; every
verification.scenarios[*].environments value must reference those IDs.finalize-audit runs the dependency-free validator bundled with the shared
renderer. Resolve the helper from the loaded skill directory, never the audited
repository.
Chat handoff: After writing and finalizing the audit artifacts, the final response must contain exactly this one line and nothing else:
Review report: [otel.html](http://127.0.0.1:<port>/<token>/otel.html)
Copy links.review_report from successful finalize-audit output verbatim
after the Review report: label. Do not include summary bullets, finding
counts, recommendations, a machine-report link, artifact-write narration, or
any other text in the final response. Keep the canonical JSON as an internal
downstream artifact even though it is not linked in chat.
If finalize-audit instead failed because the sandbox denies binding
127.0.0.1, the final response must contain exactly this one line and
nothing else, substituting the absolute otel.html path that finalize-audit
already wrote to disk:
Local review server unavailable (sandbox denies loopback network access). Open the rendered report directly: [otel.html](<absolute-otel-html-path>)
Do not add a second paragraph, do not mention otel-audit.json or its path,
and do not include summary bullets, finding counts, recommendations, or
artifact-write narration.
Do not perform telemetry execution inside the audit workflow. The report's
Verification Plan is a proof plan consumed downstream; it is not the
reviewer's immediate command.
$otel-instrument for source gaps. $otel-instrument owns the internal
verification child after implementation.$otel-verify or generic run verification as the audit
prompt's next step, recommendation line, or finding follow-up. If proof is
requested without code changes, state that standalone verification is a
separate explicit $otel-verify request after the audit is complete.$otel-verify as a separate workflow only after handing off the audit links.Use these tables to check whether each detected dependency has a matching
auto-instrumentation package installed. Only flag gaps for dependencies that
appear in the project. When a finding reports a missing auto-instrumentation
package, name the exact package's short identifier (for example otelchi,
otelhttp) from the matching table row in the finding text itself; a generic
description of the underlying library or protocol (for example "chi/net/http
instrumentation") without that package name is incomplete.
| Dependency | Auto-instrumentation Package | Signals |
|---|---|---|
net/http (stdlib) | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | spans + metrics |
gorilla/mux | go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux | spans only |
go-chi/chi | go.opentelemetry.io/contrib/instrumentation/github.com/go-chi/chi/otelchi | spans only |
gin-gonic/gin | go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin | spans only |
google.golang.org/grpc | go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc | spans + metrics |
database/sql | github.com/XSAM/otelsql | spans only |
go-redis/redis | github.com/redis/go-redis/extra/redisotel | spans only |
runtime | go.opentelemetry.io/contrib/instrumentation/runtime | metrics only |
host | go.opentelemetry.io/contrib/instrumentation/host | metrics only |
segmentio/kafka-go | go.opentelemetry.io/contrib/instrumentation/github.com/segmentio/kafka-go/otelsegmentio | spans only |
aws-sdk-go-v2 | go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws | spans only |
| Dependency | Auto-instrumentation Package | Signals |
|---|---|---|
flask | opentelemetry-instrumentation-flask | spans |
django | opentelemetry-instrumentation-django | spans |
fastapi / starlette | opentelemetry-instrumentation-fastapi | spans |
requests | opentelemetry-instrumentation-requests | spans |
httpx | opentelemetry-instrumentation-httpx | spans |
urllib3 | opentelemetry-instrumentation-urllib3 | spans |
aiohttp | opentelemetry-instrumentation-aiohttp-client | spans |
psycopg2 | opentelemetry-instrumentation-psycopg2 | spans |
sqlalchemy | opentelemetry-instrumentation-sqlalchemy | spans |
pymongo | opentelemetry-instrumentation-pymongo | spans |
redis | opentelemetry-instrumentation-redis | spans |
celery | opentelemetry-instrumentation-celery | spans |
grpcio | opentelemetry-instrumentation-grpc | spans |
kafka-python / confluent-kafka | opentelemetry-instrumentation-kafka-python / opentelemetry-instrumentation-confluent-kafka | spans |
boto3 / botocore | opentelemetry-instrumentation-botocore | spans |
logging (stdlib) | opentelemetry-instrumentation-logging; SDK LoggingHandler only when the installed bridge/API capability requires that compatibility path | logs |
| Dependency | Auto-instrumentation Package | Signals |
|---|---|---|
express | @opentelemetry/instrumentation-express | spans |
fastify | @opentelemetry/instrumentation-fastify | spans |
koa | @opentelemetry/instrumentation-koa | spans |
@nestjs/core | @opentelemetry/instrumentation-nestjs-core | spans |
http / https (stdlib) | @opentelemetry/instrumentation-http | spans |
pg | @opentelemetry/instrumentation-pg | spans |
mysql2 | @opentelemetry/instrumentation-mysql2 | spans |
mongodb | @opentelemetry/instrumentation-mongodb | spans |
ioredis | @opentelemetry/instrumentation-ioredis | spans |
redis (node-redis) | @opentelemetry/instrumentation-redis-4 when its current support metadata matches the detected client | spans |
@grpc/grpc-js | @opentelemetry/instrumentation-grpc | spans |
kafkajs | @opentelemetry/instrumentation-kafkajs | spans |
graphql | @opentelemetry/instrumentation-graphql | spans |
aws-sdk / @aws-sdk/* | @opentelemetry/instrumentation-aws-sdk | spans |
console.* | latest compatible @opentelemetry/instrumentation-console, after checking current engines, peers and installed APIs | logs |
winston | @opentelemetry/instrumentation-winston + @opentelemetry/winston-transport | logs |
pino | @opentelemetry/instrumentation-pino | logs |
The OpenTelemetry Java agent auto-instruments without code changes:
For Go application logs, detect the logging API and match exactly one official
bridge such as go.opentelemetry.io/contrib/bridges/otelslog, otelzap,
otellogrus, otelzerolog, or otellogr. The log SDK and OTLP log exporter
are still required; a bridge alone is not an export pipeline.
No dependency manifest found: Ask the user which subdirectory contains the service, then re-scan from that root.
Multiple languages detected: Ask which service to audit, or audit each independently.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (signalfx/obstudio) — no native marketplace selected
npx claudepluginhub p/signalfx-obstudio-plugins-obstudio13 skills in this plugin
/connect-splunk-observability-cloudOpen the already-running local Splunk Observability Studio Cloud tab so a user can connect an existing or newly ready Splunk Observability Cloud organization by entering its URL and access token outside agent context. Use when a user asks to connect, configure, or provide credentials for Splunk Observability Cloud, Splunk O11y, or SignalFx outside the Splunk Observability Studio IDE extension. Do not use this skill to create a Free Edition account./create-splunk-free-accountSubmit a consent-gated Splunk Observability Cloud Free Edition signup intake in a detected or user-selected supported signup region through Splunk Observability Studio's browserless MCP backend. Use when a user asks to create, provision, register, start, or sign up for a free Splunk Observability Cloud, Splunk O11y, or SignalFx account or organization, or explicitly asks to submit another intake with the same details or email, including requests to avoid the Splunk web form./observer-openOpen the local Splunk Observability Studio at http://127.0.0.1:17900/ using a host-provided browser when available, with a safe clickable-URL fallback.Other plugins' skills for the same job