-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtracing-demo.yaml
More file actions
35 lines (34 loc) · 1.24 KB
/
Copy pathtracing-demo.yaml
File metadata and controls
35 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Example: agent with OTel tracing enabled (slice 5.1+).
#
# Run with an OTLP collector reachable at OTEL_EXPORTER_OTLP_ENDPOINT.
# Examples:
#
# # Local OTel collector (otel/opentelemetry-collector-contrib container
# # running with an `otlphttp` receiver on port 4318):
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
# agentctl run examples/tracing-demo.yaml
#
# # BrainTrust:
# OTEL_EXPORTER_OTLP_ENDPOINT=https://api.braintrust.dev/otel \
# OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer ${BRAINTRUST_API_KEY}" \
# agentctl run examples/tracing-demo.yaml
#
# The agentctl.run root span carries:
# - agent_controller.agent.name = "tracing-demo"
# - agent_controller.runtime.type = "local"
# - gen_ai.system = "anthropic"
# - gen_ai.request.model = "claude-sonnet-5"
# - gen_ai.operation.name = "agent.run"
#
# Adapter-side and per-tool spans land in slice 5.3 onward.
apiVersion: agent-controller.dev/v1alpha1
kind: Agent
metadata: { name: tracing-demo }
spec:
model: { provider: anthropic, name: claude-sonnet-5 }
persona: { role: Helpful demo, instructions: Answer concisely. }
task: Say hello.
tools: []
runtime: { type: local }
observability:
tracing: true