# Connector kit telemetry (/reference/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](/reference/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.**

| Setting | What it sets |
| - | - |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | The collector's base URL. Traces go to `v1/traces` under it, logs to `v1/logs`. |
| `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`, `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` | One signal's URL, used as written. |
| `OTEL_EXPORTER_OTLP_HEADERS` | Headers on every export, as comma-separated `key=value` pairs. |
| `OTEL_EXPORTER_OTLP_TRACES_HEADERS`, `OTEL_EXPORTER_OTLP_LOGS_HEADERS` | Headers for one signal, added to the shared headers; a same-named header replaces the shared one. |
| `OTEL_SERVICE_NAME` | `service.name`. The default is the connector's `name`. |
| `MARFA_OTEL_SAMPLE_RATIO` | From 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.
