OpenTelemetry
Send your hosted agents' activity to LangWatch for free, or on Enterprise to your own collector such as Kibana or Datadog.
Laze sends what your hosted agents do to LangWatch as OpenTelemetry traces: every turn with its tool calls, tokens, cost and errors, with vault values always masked. LangWatch is an observability platform for AI agents, and you can turn this on for free in Settings > Observability with Connect with LangWatch.
Sending the same telemetry to your own collector, such as Kibana through Elastic, Datadog, Grafana or Honeycomb, is an Enterprise option. It goes over OTLP/HTTP to any collector that takes OTLP, and it can run with LangWatch on: each batch then goes to both, each cut to its own settings. Your Laze contact turns it on for the workspace, and until then the OpenTelemetry card does not show in Settings.
What is sent
Every turn of every hosted agent sends spans, logs and metrics with the OpenTelemetry generative AI conventions:
gen_ai.operation.name(chat,execute_toolorinvoke_agent),gen_ai.agent.idandgen_ai.agent.namegen_ai.conversation.id,gen_ai.provider.nameandgen_ai.request.modelgen_ai.usage.input_tokens,gen_ai.usage.output_tokensandgen_ai.tool.name- durations and errors
Message text is not sent by default. An admin can add the text of public and private channels, for team agents only. Text from DMs, group DMs and personal agent chats is never sent, whatever the setting. Values from the vault are always masked.
Every member sees one line under Settings, Observability that says whether agent activity goes to the company's monitoring and whether channel text is included.
Set it up
You need to be a workspace admin.
- Open Settings, Observability, and find the OpenTelemetry card.
- Enter the collector endpoint, such as
https://otel.example.com:4318. Laze adds/v1/traces,/v1/logsand/v1/metricsitself. - Add the headers your collector needs, such as
Authorization. - Pick Protobuf (the default) or JSON, then save.
- Press Test and look for a span named
Laze test spanfrom the servicelaze.
From the command line, with the headers as Name: value lines on stdin:
printf 'Authorization: ApiKey %s\n' "$ELASTIC_API_KEY" | laze langwatch export set --endpoint https://otel.example.com --headers
laze langwatch export test
laze langwatch export on --text shared
laze langwatch export statuslaze langwatch export off stops sending and keeps the settings. laze langwatch export remove stops sending and deletes the endpoint and headers.
Send it to Kibana
Elastic Cloud takes OTLP directly through its managed OTLP endpoint, so no collector of your own is needed.
- In the Elastic Cloud console, open your project or deployment and select Manage.
- Under Application endpoints, select OpenTelemetry (Serverless) or Managed OTLP (Elastic Cloud Hosted) and copy the Direct endpoint.
- In Kibana, open API keys and create a key. Turn on Control security privileges and give it a role with the
event:writeprivilege on theapmapplication, resources*. Copy the encoded value. - In Laze, save the direct endpoint with the header
Authorizationset toApiKey <encoded key>, then press Test.
The spans land in the traces-generic.otel-default data stream, logs in logs-generic.otel-default and metrics in metrics-generic.otel-default. Open them in Discover, or under Applications in Observability, where each agent harness shows as a service.
On a self-managed Elastic stack, run an EDOT Collector in gateway mode with an OTLP receiver on HTTPS and point Laze at it.
Delivery
- Laze sends each batch beside the agent's turn, so a slow collector never holds up an agent.
- A
408,429or5xxanswer is retried up to 4 times, waiting 1 second and doubling up to 30 seconds. ARetry-Afterheader is followed for up to 60 seconds. - Any other
4xxanswer drops the batch, because sending it again would get the same answer. - Each workspace queues at most 200 batches. When the queue is full, new batches are dropped and the card shows how many.
- The card shows the last delivery and its error, if any.
Security
The endpoint and the header values are stored in the workspace vault as Human only: no agent can read them, and Laze never shows the header values again after you save them. Only the header names are shown.
Laze sends only to https on a public address. Addresses inside private networks, loopback and link-local are refused, and redirects are not followed. Saving, changing and removing the collector are recorded in the audit log.