{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "StellaOps Telemetry Config", "version": "1.0.0", "type": "object", "required": ["schemaVersion", "profiles"], "properties": { "schemaVersion": { "type": "string", "const": "1.0.0" }, "hashAlgorithm": { "type": "string", "enum": ["sha256"] }, "profiles": { "type": "array", "items": { "type": "object", "required": ["name", "collectorVersion", "exporters", "redactionPolicyUri", "sampling"], "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "collectorVersion": { "type": "string" }, "cryptoProfile": { "type": "string" }, "sealedMode": { "type": "boolean" }, "allowlistedEndpoints": { "type": "array", "items": { "type": "string", "format": "uri" } }, "exporters": { "type": "array", "items": { "type": "object", "required": ["type", "endpoint"], "properties": { "type": { "type": "string", "enum": ["otlp", "file", "stdout", "null"] }, "endpoint": { "type": "string" }, "protocol": { "type": "string", "enum": ["grpc", "http"] }, "compression": { "type": "string", "enum": ["none", "gzip"] }, "enabled": { "type": "boolean", "default": true } } } }, "redactionPolicyUri": { "type": "string", "format": "uri" }, "sampling": { "type": "object", "required": ["strategy", "seed"], "properties": { "strategy": { "type": "string", "enum": ["always_on", "always_off", "traceidratio", "tail"] }, "seed": { "type": "string", "pattern": "^[0-9a-fA-F]{16}$" }, "rules": { "type": "array", "items": { "type": "object", "required": ["match", "priority"], "properties": { "match": { "type": "string" }, "priority": { "type": "integer", "minimum": 0 }, "sampleRate": { "type": "number", "minimum": 0, "maximum": 1 } } } } } }, "tenantRouting": { "type": "object", "required": ["attribute"], "properties": { "attribute": { "type": "string", "const": "tenant.id" }, "quotasPerTenant": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } } } } } } } } }