Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

LobeChat

LobeChat exports OpenTelemetry spans to cetra when you set its telemetry environment variables. This page is setup only, and it is unverified: it was not run against cetra.

Telemetry is off by default. Set these variables for the LobeChat server, and replace <SK_CETRA_KEY> with your sk-cetra-… API key:

Terminal window
ENABLE_TELEMETRY=1
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:8080
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20<SK_CETRA_KEY>
OTEL_SERVICE_NAME=lobechat

OTEL_EXPORTER_OTLP_ENDPOINT is the base URL: LobeChat adds /v1/traces to it.

Not verified. LobeChat v2.3.5 defines gen_ai.* attribute names for its model calls, but no run of LobeChat with these variables was recorded, so this page does not list the spans or attributes cetra receives.

  • Unverified: the variables come from LobeChat’s source, and no LobeChat server was started for this page.
  • Not known: whether LobeChat records prompts and completions. An older LobeChat build’s published example showed only HTTP server spans.
  • Not known: whether the header value above is read as written. Check the header in cetra’s Traces view after the first request.
  • LobeChat runs as a Docker image or as a Node server. This page does not say which one to use.