-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtraceroot.config.ts
More file actions
35 lines (26 loc) · 918 Bytes
/
traceroot.config.ts
File metadata and controls
35 lines (26 loc) · 918 Bytes
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
32
33
34
35
import type { TraceRootConfigFile } from './src/config';
const config: TraceRootConfigFile = {
// Basic service configuration
service_name: 'ts-example',
github_owner: 'traceroot-ai',
github_repo_name: 'traceroot-sdk-ts',
github_commit_hash: 'main',
// Your environment configuration
// development, staging, production
environment: process.env.NODE_ENV || 'development',
// Token configuration
token: process.env.TRACEROOT_TOKEN || 'traceroot-*',
// Whether to enable console export of spans and logs
enable_span_console_export: false,
enable_log_console_export: true,
// Whether to enable cloud export of spans and logs
enable_span_cloud_export: true,
enable_log_cloud_export: true,
// Log level
log_level: 'debug',
// Tracer verbose logging
tracer_verbose: false,
// Local mode that whether to store all data locally
local_mode: false,
};
export default config;