Skip to content
OpenEightDeveloper docs
Docs / Integrations / Observe without enforcement
SDK integration

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 pageChoose 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 governance

1Choose 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.

Open Agent setup in the Console →

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.

Terminal · dependencies
python -m pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http
Pythonapp.py
import 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()
Terminal · send a trace
python app.py
Configure an existing OTel exporterConfigure your exporter with the deployment’s ingest endpoint and Agent API key, then send a trace. OTel observation does not enforce policy.

3Send 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.

Note

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.

Inspect a Run and its EventsOpen Agents → your Agent → Activity → Runs and select a Run, then open an Event to inspect its details and any linked Decision.

Sign in to view Agent activity ↗

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
OpenEight connection details
ValueWhat to use
API endpointhttps://app.openeight.ai
Agent SlugCopy the Agent Slug from Agent setup.
API KeyThe 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.

Terminal
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.

PythonIntegration snippet · your model and tools
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.

PythonYour Agent
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.

Report Runs and Events with the Python SDK →

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.

Connect an existing Agent →

Need help connecting your agent?

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.

OpenEight / Developer docsPython SDK 0.0.1

Search documentation

Build with OpenEightBuild or connect an agent, configure its controls, and inspect its activity.
Build your first agentDefine a model and tools, create an agent with OpenEight, configure policies, and run it.
Connect an existing agentKeep your existing model, tools, and agent logic. Add the OpenEight Python SDK where your agent calls tools so a policy can allow a call, block it, or pause it for approval.
Refund walkthroughSee how OpenEight checks a refund before the tool runs. USD refunds through $100 can proceed. Larger USD refunds and refunds in other currencies wait for a reviewer. All receipts in this walkthrough are simulated.
Integrate LangChainConnect your existing LangChain agent to OpenEight and verify its first governed tool call.
Integrate Deep AgentsConnect your existing Deep Agents agent to OpenEight and verify its first governed tool call.
Custom integrationsUse OpenEight with an Agent that calls tools directly or uses another framework.
Observe without enforcementConnect your Agent’s OpenTelemetry exporter to see Runs and tool activity in OpenEight. Tool calls proceed without policy checks or approval requests.
How governance worksBefore your Agent runs a governed tool, OpenEight checks the request against its active policies.
Prepare tools for governanceCheck how OpenEight classifies your Agent’s tools and confirm the intent Assist will use to draft policies.
Create policies with AssistAssist drafts rules and test cases from a policy intent. Review what the rules allow, deny or hold for approval before activating them.
Handle approvalsReview a pending tool call and decide whether the Agent may continue.
Inspect decisionsSee how your policies applied to a tool call and find out whether it executed.
Inspect runs and eventsOpen a Run to see which tools your Agent called, how long they took, and what status the Agent reported.
Configure model pricingModel rates apply across every Workspace in your organization. OpenEight uses them to calculate spend from recorded usage.
Set Agent budgetsSet cost and token limits for an Agent.
Send approval notifications to SlackSend approval requests to a Slack channel so reviewers can open them in the OpenEight Console.
Export and verify evidenceExport a Workspace evidence bundle, establish trust in its signing key, and verify recorded evidence offline with the OpenEight CLI.
TroubleshootingDiagnose SDK startup, tool publication, approval, and delivery issues.
Calls and sessionsChoose when to open a session and how to manage resources across calls.
Stream results and clean upRead incremental agent results and release resources when a reader stops early.
Threads and checkpointsSave a conversation between calls so your Agent can pick up where it left off.
Delivery and shutdown checksFlush buffered work and inspect delivery before shutdown.
Compatibility and installationFind your integration, supported runtime and SDK version.
ConfigurationConfigure connection settings, approval waiting and content capture.
Constructors and executionCreate an agent and choose its invocation methods.
LangChain optionsLook up structured output, configurable models and LangChain execution limits.
Deep Agents optionsConfigure root and child tools, filesystem permissions and MCP sources.
Tool publication and readinessPublish tool schemas, find acknowledged versions and check policy readiness.
Approval waiting and replayA managed Agent can wait in the running process or return a waiting thread for your code to resume. With a direct Python client, your code polls and replays the request.
Python API signaturesLook up parameters, defaults and return types for OpenEight Python SDK 0.0.1.