Skip to main content
This page applies to self-hosted LangSmith instances that are not running in offline (air-gapped) mode and have operational telemetry metrics turned on.
With config.telemetry.metrics set to true (the default), your LangSmith instance exports operational metrics to https://beacon.langchain.com over OpenTelemetry (OTLP) once a minute. For what operational telemetry is and how it differs from billing and usage telemetry, see Egress for billing and operational telemetry. LangChain’s telemetry collector keeps only the metrics listed on this page. It drops any other metric it receives, so a metric that is not on this page is not stored. Metrics contain counts, sizes, durations, and status values. They do not contain trace contents, database records, or information about your users.

How metrics are collected

To turn off all metrics, set config.telemetry.metrics to false. To stop sending the metrics of a single datastore, such as SmithDB, see Disable metrics for one datastore.

Attributes

Each metric carries attributes that identify the instance that sent it: env, plus customer.id and customer.name, which come from your license. The collector removes every other resource attribute. On individual data points, the collector keeps only the following attributes and removes the rest, including request paths: app_name, cmd, collector, component, dbname, error_type, fault, file_type, job_kind, kind, level, maxmemory_policy, method, mode, name, op, outcome, pointer_type, quantile, queue_name, reason, redis_mode, redis_version, replica, resource_name, resource_type, result, role, rule_owner, source, state, status, status_code, store_type, unit_kind, value, version, and workload_kind.

Metrics

LangSmith services

HTTP traffic, connection pools, and ingestion counts from the LangSmith API and ingestion services.

Queues

Depth of the Redis-backed queues that LangSmith workers consume.

Automation rules

Health of automation rules and online evaluators.

SmithDB

SmithDB and SmithDB migration metrics require LangSmith v0.18 (Helm chart version 0.18.0) or later. Earlier versions do not send them.
Sent when SmithDB is enabled. Read from each SmithDB component’s metrics endpoint.

SmithDB migration

Sent every minute while smithdb.langsmith.migration.enabled is true, which also requires smithdb.enabled unless you migrate into a BYOC data plane. When no migration pod is running, only self_hosted_smithdb_migration_pod_up (as 0), self_hosted_smithdb_migration_last_scrape_duration_seconds, and self_hosted_smithdb_migration_last_scrape_error are sent. The other migration metrics are sent only while a migration pod is up.

PostgreSQL

Read from your PostgreSQL database.

Redis

Read from your Redis instance.

ClickHouse

Sent when ClickHouse is enabled. Read from your ClickHouse instance.