diff options
author | Valery Piashchynski <[email protected]> | 2022-05-16 15:46:24 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-05-16 15:46:24 +0200 |
commit | 5ce50f7b86909714a3857d7900ec0ddf45cc7529 (patch) | |
tree | cc1289f200057e2aade6932936cafeb806471891 /schemas | |
parent | a8a2a7b39cffefc0719c66111618879d7e1800d0 (diff) |
update schemas
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'schemas')
-rw-r--r-- | schemas/config/2.0.schema.json | 75 |
1 files changed, 72 insertions, 3 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json index 9a444c7d..4894a1f0 100644 --- a/schemas/config/2.0.schema.json +++ b/schemas/config/2.0.schema.json @@ -185,11 +185,11 @@ "type": "integer", "description": "The maximum number of days to retain old log files based on the timestamp encoded in their filename" }, - "max_backups" : { + "max_backups": { "type": "integer", "description": "The maximum number of old log files to retain" }, - "compress" : { + "compress": { "type": "boolean", "description": "compress files to save a disk space" } @@ -364,7 +364,8 @@ "new_relic", "http_metrics", "cache", - "proxy_ip_parser" + "proxy_ip_parser", + "otel" ], "pattern": "^[0-9a-zA-Z_]+$" } @@ -731,6 +732,71 @@ "minimum": 0 } } + }, + "otel": { + "description": "OpenTelemetry configuration", + "type": "object", + "properties": { + "insecure": { + "description": "Use insecure endpoint", + "type": "boolean", + "default": false + }, + "compress": { + "description": "Use gzip compressor", + "type": "boolean", + "default": false + }, + "exporter": { + "description": "Provides functionality to emit telemetry to consumers", + "type": "array", + "items": { + "type": "string", + "enum": [ + "zipkin", + "stdout", + "otlp" + ], + "pattern": "^[0-9a-zA-Z_]+$" + } + }, + "custom_url": { + "description": "Used for the http client to override the default URL", + "type": "string", + "default": "" + }, + "endpoint": { + "description": "Consumer's endpoint", + "type": "string", + "default": "localhost:4318" + }, + "client": { + "description": "Client to send the spans", + "type": "array", + "items": { + "type": "string", + "enum": [ + "http", + "grpc" + ], + "pattern": "^[0-9a-zA-Z_]+$" + } + }, + "service_name": { + "description": "User's service name", + "type": "string", + "default": "RoadRunner" + }, + "service_version": { + "description": "User's service version", + "type": "string", + "default": "1.0.0" + }, + "headers": { + "description": "User defined headers", + "$ref": "#/definitions/Hashmap" + } + } } }, "required": [ @@ -1450,6 +1516,9 @@ } } }, + "required": [ + "version" + ], "definitions": { "BoltDB": { "description": "BoltDB config section", |