summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rr.yaml83
-rw-r--r--schemas/config/2.0.schema.json135
2 files changed, 109 insertions, 109 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 5db90674..ccd4d785 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -543,6 +543,47 @@ service:
# Default: 30
restart_sec: 1
+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 stderr 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: 127.0.0.1:4318
+ endpoint: "127.0.0.1:4318"
+
# HTTP plugin settings.
http:
# Host and port to listen on (eg.: `127.0.0.1:8080`).
@@ -589,48 +630,6 @@ 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 7081d318..3f9c0e91 100644
--- a/schemas/config/2.0.schema.json
+++ b/schemas/config/2.0.schema.json
@@ -461,6 +461,74 @@
}
}
},
+ "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": "string",
+ "items": {
+ "type": "string",
+ "enum": [
+ "zipkin",
+ "stdout",
+ "stderr",
+ "otlp",
+ "jaeger",
+ "jaeger_agent"
+ ],
+ "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": "127.0.0.1:4318"
+ },
+ "client": {
+ "description": "Client to send the spans",
+ "type": "string",
+ "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"
+ }
+ }
+ },
"http": {
"type": "object",
"properties": {
@@ -1046,73 +1114,6 @@
"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": "string",
- "items": {
- "type": "string",
- "enum": [
- "zipkin",
- "stdout",
- "otlp",
- "jaeger",
- "jaeger_agent"
- ],
- "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": "string",
- "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": [