Connector kit telemetry

Look up the settings that send a connector's logs and run traces to an OpenTelemetry collector, and what the kit redacts.

A connector built on the connector kit can send its logs, and a trace of each run, to an OpenTelemetry collector over OTLP/HTTP. Telemetry is off until OTEL_EXPORTER_OTLP_ENDPOINT is set.

SettingWhat it sets
OTEL_EXPORTER_OTLP_ENDPOINTThe collector's base URL. Traces go to v1/traces under it, logs to v1/logs.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_ENDPOINTOne signal's URL, used as written.
OTEL_EXPORTER_OTLP_HEADERSHeaders on every export, as comma-separated key=value pairs.
OTEL_EXPORTER_OTLP_TRACES_HEADERS, OTEL_EXPORTER_OTLP_LOGS_HEADERSHeaders for one signal, added to the shared headers; a same-named header replaces the shared one.
OTEL_SERVICE_NAMEservice.name. The default is the connector's name.
MARFA_OTEL_SAMPLE_RATIOFrom 0 to 1, the share of runs that did not fail whose trace is sent. A failed run's trace is always sent. The default is 1.

Each run is one span named connector run, with marfa.connector.trigger of schedule or look and marfa.connector.outcome of succeeded, failed or stopped.

MARFA_API_KEY, each secret, and a header value of 8 characters or more become [redacted] as they leave the process.

Telemetry never fails or holds up a run. An export longer than 1.5 seconds is dropped, and the first failure is warned of once. On exit the kit gives up after at most 3 seconds. A malformed setting, or a signal's endpoint without the base endpoint, stops the start with exit code 2, naming the setting and never its value.