Observe without enforcement
Connect your Agent’s OpenTelemetry exporter to see Runs and tool activity in OpenEight. Tool calls proceed without policy checks or approval requests.
On this page
Choose Generic OTel in Agent setupPoint your exporter at OpenEightSend and verify your first traceOptional Python SDK observationInvoke the SDK in observation modeWhat the SDK recordsReport telemetry from custom Python codeEnable governance1Choose Generic OTel in Agent setup
In the Console, open Add agent and select Generic OTel. Name your Agent, choose its credential and save the API Key privately. Use this path with any framework that emits supported OTLP spans.
2Point your exporter at OpenEight
In Point your exporter, copy the entire Environment settings block. Replace the API Key placeholder privately and apply the settings in the shell or runtime that runs your exporter. The block includes your Agent Slug, trace endpoint, protocol and headers.
Send a sample trace with Python
Use the exporter environment settings for your Agent from Console onboarding. Install the dependencies, save the example as app.py, and run it in the same shell.
python -m pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-httpimport os
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
provider = TracerProvider(resource=Resource.create({
"service.name": os.environ["OPENEIGHT_AGENT_NAME"],
}))
exporter = OTLPSpanExporter(
endpoint=os.environ["OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"],
headers={
"Authorization": "ApiKey " + os.environ["OPENEIGHT_API_KEY"],
"X-OpenEight-Agent-Integration": "otel",
"X-OpenEight-Agent-Name": os.environ["OPENEIGHT_AGENT_NAME"],
},
)
provider.add_span_processor(BatchSpanProcessor(exporter))
tracer = provider.get_tracer("agent-onboarding")
try:
with tracer.start_as_current_span("agent.connection_check") as span:
print("Trace ID:", format(span.get_span_context().trace_id, "032x"))
provider.force_flush(timeout_millis=15000)
finally:
provider.shutdown()
python app.py3Send and verify your first trace
Select Watch for first trace, then send the Python sample or run a harmless instrumented operation. Once the Console confirms receipt, open Discover tools.
The sample sends a connection-check span. An empty tool list is expected for this sample. Select Finish — observe-only to complete setup. To see a tool in Discover tools, run an instrumented tool call.
If no trace appears, check that the exporter loaded the endpoint and headers from setup and flushed its spans. Use a new test operation to retry.
Optional Python SDK observation
To observe through the Python SDK, use an Agent registered for the adapter you select below. If you only have a Generic OTel Agent, create a LangChain or Deep Agents Agent in the Console first. Use its Agent Slug and an API Key authorized for that Agent.
pip install openeight| Value | What to use |
|---|---|
| API endpoint | https://app.openeight.ai |
| Agent Slug | Copy the Agent Slug from Agent setup. |
| API Key | The Agent key you saved, or the eligible Workspace key selected during setup. |
Set your connection values
Use the endpoint shown below. Enter your Agent Slug and API Key privately in the shell that runs your agent.
export OPENEIGHT_ENDPOINT='https://app.openeight.ai'
export OPENEIGHT_AGENT_NAME="your-agent-slug"
export OPENEIGHT_API_KEY="<your-agent-api-key>"If you use a .env file, load it in your application before reading the environment.
Invoke the SDK in observation mode
Use the SDK’s observe constructor with your model and tools. It reports supported activity when you invoke the Agent.
import os
from openeight.langchain import observe
agent = observe(
model=model,
tools=tools,
openeight={
"agent_name": os.environ["OPENEIGHT_AGENT_NAME"],
"endpoint": os.environ["OPENEIGHT_ENDPOINT"],
"credential": os.environ["OPENEIGHT_API_KEY"],
},
)Run a test input
Use an input that calls a harmless tool. Ordinary invocation handles telemetry delivery and cleanup.
result = agent.invoke(inputs)What the SDK records
The console groups observation as ingested activity, separately from enforced Decisions.
- Content capture is off by default.
- Opt into inputs, outputs or all with
capture_content; redact content in your application before queueing. - Token text, provider extras and arbitrary caller metadata remain excluded.
- Delivery is bounded and held in memory.
Report telemetry from custom Python code
If your Agent manages its own instrumentation, use the direct Python client to report Runs and Events explicitly.
Enable governance
To apply policies before tool calls execute, follow the integration guide for your framework or custom Agent. It covers connecting your Agent, publishing tools and verifying a governed call.
Tell us which framework you use and how your agent runs. We’ll help you choose the integration approach. Keep credentials and private application data out of your message.
Email us at hello@openeight.ai.