Skip to content

Commit b192b05

Browse files
authored
Merge pull request #378 from objectstack-ai/copilot/add-observability-protocol
2 parents edfb083 + 43a83ad commit b192b05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+8238
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$ref": "#/definitions/ConsoleDestinationConfig",
3+
"definitions": {
4+
"ConsoleDestinationConfig": {
5+
"type": "object",
6+
"properties": {
7+
"stream": {
8+
"type": "string",
9+
"enum": [
10+
"stdout",
11+
"stderr"
12+
],
13+
"default": "stdout"
14+
},
15+
"colors": {
16+
"type": "boolean",
17+
"default": true
18+
},
19+
"prettyPrint": {
20+
"type": "boolean",
21+
"default": false
22+
}
23+
},
24+
"additionalProperties": false,
25+
"description": "Console destination configuration"
26+
}
27+
},
28+
"$schema": "http://json-schema.org/draft-07/schema#"
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$ref": "#/definitions/ExtendedLogLevel",
3+
"definitions": {
4+
"ExtendedLogLevel": {
5+
"type": "string",
6+
"enum": [
7+
"trace",
8+
"debug",
9+
"info",
10+
"warn",
11+
"error",
12+
"fatal"
13+
],
14+
"description": "Extended log severity level"
15+
}
16+
},
17+
"$schema": "http://json-schema.org/draft-07/schema#"
18+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$ref": "#/definitions/ExternalServiceDestinationConfig",
3+
"definitions": {
4+
"ExternalServiceDestinationConfig": {
5+
"type": "object",
6+
"properties": {
7+
"endpoint": {
8+
"type": "string",
9+
"format": "uri"
10+
},
11+
"region": {
12+
"type": "string"
13+
},
14+
"credentials": {
15+
"type": "object",
16+
"properties": {
17+
"accessKeyId": {
18+
"type": "string"
19+
},
20+
"secretAccessKey": {
21+
"type": "string"
22+
},
23+
"apiKey": {
24+
"type": "string"
25+
},
26+
"projectId": {
27+
"type": "string"
28+
}
29+
},
30+
"additionalProperties": false
31+
},
32+
"logGroup": {
33+
"type": "string"
34+
},
35+
"logStream": {
36+
"type": "string"
37+
},
38+
"index": {
39+
"type": "string"
40+
},
41+
"config": {
42+
"type": "object",
43+
"additionalProperties": {}
44+
}
45+
},
46+
"additionalProperties": false,
47+
"description": "External service destination configuration"
48+
}
49+
},
50+
"$schema": "http://json-schema.org/draft-07/schema#"
51+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"$ref": "#/definitions/FileDestinationConfig",
3+
"definitions": {
4+
"FileDestinationConfig": {
5+
"type": "object",
6+
"properties": {
7+
"path": {
8+
"type": "string",
9+
"description": "Log file path"
10+
},
11+
"rotation": {
12+
"type": "object",
13+
"properties": {
14+
"maxSize": {
15+
"type": "string",
16+
"default": "10m"
17+
},
18+
"maxFiles": {
19+
"type": "integer",
20+
"exclusiveMinimum": 0,
21+
"default": 5
22+
},
23+
"compress": {
24+
"type": "boolean",
25+
"default": true
26+
},
27+
"interval": {
28+
"type": "string",
29+
"enum": [
30+
"hourly",
31+
"daily",
32+
"weekly",
33+
"monthly"
34+
]
35+
}
36+
},
37+
"additionalProperties": false
38+
},
39+
"encoding": {
40+
"type": "string",
41+
"default": "utf8"
42+
},
43+
"append": {
44+
"type": "boolean",
45+
"default": true
46+
}
47+
},
48+
"required": [
49+
"path"
50+
],
51+
"additionalProperties": false,
52+
"description": "File destination configuration"
53+
}
54+
},
55+
"$schema": "http://json-schema.org/draft-07/schema#"
56+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"$ref": "#/definitions/HistogramBucketConfig",
3+
"definitions": {
4+
"HistogramBucketConfig": {
5+
"type": "object",
6+
"properties": {
7+
"type": {
8+
"type": "string",
9+
"enum": [
10+
"linear",
11+
"exponential",
12+
"explicit"
13+
],
14+
"description": "Bucket type"
15+
},
16+
"linear": {
17+
"type": "object",
18+
"properties": {
19+
"start": {
20+
"type": "number",
21+
"description": "Start value"
22+
},
23+
"width": {
24+
"type": "number",
25+
"exclusiveMinimum": 0,
26+
"description": "Bucket width"
27+
},
28+
"count": {
29+
"type": "integer",
30+
"exclusiveMinimum": 0,
31+
"description": "Number of buckets"
32+
}
33+
},
34+
"required": [
35+
"start",
36+
"width",
37+
"count"
38+
],
39+
"additionalProperties": false
40+
},
41+
"exponential": {
42+
"type": "object",
43+
"properties": {
44+
"start": {
45+
"type": "number",
46+
"exclusiveMinimum": 0,
47+
"description": "Start value"
48+
},
49+
"factor": {
50+
"type": "number",
51+
"exclusiveMinimum": 0,
52+
"description": "Growth factor"
53+
},
54+
"count": {
55+
"type": "integer",
56+
"exclusiveMinimum": 0,
57+
"description": "Number of buckets"
58+
}
59+
},
60+
"required": [
61+
"start",
62+
"factor",
63+
"count"
64+
],
65+
"additionalProperties": false
66+
},
67+
"explicit": {
68+
"type": "object",
69+
"properties": {
70+
"boundaries": {
71+
"type": "array",
72+
"items": {
73+
"type": "number"
74+
},
75+
"description": "Bucket boundaries"
76+
}
77+
},
78+
"required": [
79+
"boundaries"
80+
],
81+
"additionalProperties": false
82+
}
83+
},
84+
"required": [
85+
"type"
86+
],
87+
"additionalProperties": false,
88+
"description": "Histogram bucket configuration"
89+
}
90+
},
91+
"$schema": "http://json-schema.org/draft-07/schema#"
92+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"$ref": "#/definitions/HttpDestinationConfig",
3+
"definitions": {
4+
"HttpDestinationConfig": {
5+
"type": "object",
6+
"properties": {
7+
"url": {
8+
"type": "string",
9+
"format": "uri",
10+
"description": "HTTP endpoint URL"
11+
},
12+
"method": {
13+
"type": "string",
14+
"enum": [
15+
"POST",
16+
"PUT"
17+
],
18+
"default": "POST"
19+
},
20+
"headers": {
21+
"type": "object",
22+
"additionalProperties": {
23+
"type": "string"
24+
}
25+
},
26+
"auth": {
27+
"type": "object",
28+
"properties": {
29+
"type": {
30+
"type": "string",
31+
"enum": [
32+
"basic",
33+
"bearer",
34+
"api_key"
35+
],
36+
"description": "Auth type"
37+
},
38+
"username": {
39+
"type": "string"
40+
},
41+
"password": {
42+
"type": "string"
43+
},
44+
"token": {
45+
"type": "string"
46+
},
47+
"apiKey": {
48+
"type": "string"
49+
},
50+
"apiKeyHeader": {
51+
"type": "string",
52+
"default": "X-API-Key"
53+
}
54+
},
55+
"required": [
56+
"type"
57+
],
58+
"additionalProperties": false
59+
},
60+
"batch": {
61+
"type": "object",
62+
"properties": {
63+
"maxSize": {
64+
"type": "integer",
65+
"exclusiveMinimum": 0,
66+
"default": 100
67+
},
68+
"flushInterval": {
69+
"type": "integer",
70+
"exclusiveMinimum": 0,
71+
"default": 5000
72+
}
73+
},
74+
"additionalProperties": false
75+
},
76+
"retry": {
77+
"type": "object",
78+
"properties": {
79+
"maxAttempts": {
80+
"type": "integer",
81+
"exclusiveMinimum": 0,
82+
"default": 3
83+
},
84+
"initialDelay": {
85+
"type": "integer",
86+
"exclusiveMinimum": 0,
87+
"default": 1000
88+
},
89+
"backoffMultiplier": {
90+
"type": "number",
91+
"exclusiveMinimum": 0,
92+
"default": 2
93+
}
94+
},
95+
"additionalProperties": false
96+
},
97+
"timeout": {
98+
"type": "integer",
99+
"exclusiveMinimum": 0,
100+
"default": 30000
101+
}
102+
},
103+
"required": [
104+
"url"
105+
],
106+
"additionalProperties": false,
107+
"description": "HTTP destination configuration"
108+
}
109+
},
110+
"$schema": "http://json-schema.org/draft-07/schema#"
111+
}

0 commit comments

Comments
 (0)