-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcordis.patch.yml
More file actions
32 lines (30 loc) · 1.36 KB
/
Copy pathcordis.patch.yml
File metadata and controls
32 lines (30 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# CodeTime backend patch — merge this into your profile's `cordis.patch.yml`
# (or `$DSH_HOME/cordis.patch.yml`), after the dsh-base and dsh-web-app bundle
# layers.
#
# The `sessionTelemetry` service is a process-global singleton: exactly ONE
# telemetry backend may register it. The base bundle mounts
# `session-telemetry-otel` (DISABLED by default, but it still registers the
# Service), so it MUST be disabled before `session-telemetry-codetime` mounts —
# otherwise the second registration throws at boot.
#
# Token resolution (first match wins):
# 1. `token:` config below
# 2. `CODETIME_TOKEN` environment variable
# 3. `token` field of `~/.codetime/config.json` (written by the codetime CLI
# and the Zed / VS Code extensions)
# API base URL defaults to `https://codetime.dev`, overridable with
# `apiUrl:` below or the `CODETIME_API_URL` environment variable.
- id: session-telemetry-otel
disabled: true
- insert:
- id: session-telemetry-codetime
name: 'dsh-codetime'
config:
# FULL: capture every session event live. DISABLED: report nothing.
# FEEDBACK_ONLY: only hand over the session log when a `/feedback`
# record is saved.
mode: !!js process.env.CODETIME_MODE || 'FULL'
apiUrl: !!js process.env.CODETIME_API_URL || 'https://codetime.dev'
flushIntervalMs: 60000
shutdownTimeoutMs: 5000