summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-05-16 15:46:24 +0200
committerValery Piashchynski <[email protected]>2022-05-16 15:46:24 +0200
commit5ce50f7b86909714a3857d7900ec0ddf45cc7529 (patch)
treecc1289f200057e2aade6932936cafeb806471891
parenta8a2a7b39cffefc0719c66111618879d7e1800d0 (diff)
update schemas
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--.rr.yaml42
-rw-r--r--schemas/config/2.0.schema.json75
2 files changed, 114 insertions, 3 deletions
diff --git a/.rr.yaml b/.rr.yaml
index d54bc068..141d6f1c 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -499,6 +499,48 @@ http:
"fe80::/10",
]
+ # [SINCE 2.10] OpenTelemetry middleware
+ otel:
+ # Use insecure endpoint (http) or insecure gRPC
+ #
+ # Default: false
+ insecure: true
+
+ # Use gzip to compress the spans
+ #
+ # Default: false
+ compress: false
+
+ # Client to send the spans
+ #
+ # Default: http. Possible values: `http`, `grpc`
+ client: http
+
+ # Provides functionality to emit telemetry to consumers
+ #
+ # Default: otlp. Possible values: otlp (used for new_relic, datadog), zipkin or stdout
+ exporter: otlp
+
+ # Used for the http client to override the default URL
+ #
+ # Default: empty
+ custom_url:
+
+ # User's service name
+ #
+ # Default: RoadRunner
+ service_name: rr_test
+
+ # User's service version
+ #
+ # Default: RoadRunner
+ service_version: 1.0.0
+
+ # Consumer's endpoint
+ #
+ # Default: localhost:4318
+ endpoint: 127.0.0.1:4318
+
# [SINCE 2.6] New Relic middleware
new_relic:
# Application name.
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",