generated from rmcguire/go-server-with-otel
Initial commit
This commit is contained in:
143
contrib/schema.json
Normal file
143
contrib/schema.json
Normal file
@ -0,0 +1,143 @@
|
||||
{
|
||||
"definitions": {
|
||||
"ConfigDemoOpts": {
|
||||
"properties": {
|
||||
"factLang": {
|
||||
"default": "en",
|
||||
"type": "string"
|
||||
},
|
||||
"factType": {
|
||||
"default": "random",
|
||||
"enum": [
|
||||
"today",
|
||||
"random"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigGRPCConfig": {
|
||||
"properties": {
|
||||
"enableGRPCGateway": {
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"enableInstrumentation": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"enableReflection": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"grpcGatewayPath": {
|
||||
"default": "/grpc-api",
|
||||
"type": "string"
|
||||
},
|
||||
"listen": {
|
||||
"type": "string"
|
||||
},
|
||||
"logRequests": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigHTTPConfig": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"idleTimeout": {
|
||||
"type": "string"
|
||||
},
|
||||
"listen": {
|
||||
"type": "string"
|
||||
},
|
||||
"logRequests": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"readTimeout": {
|
||||
"type": "string"
|
||||
},
|
||||
"writeTimeout": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigLogConfig": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"format": {
|
||||
"type": "string"
|
||||
},
|
||||
"level": {
|
||||
"type": "string"
|
||||
},
|
||||
"output": {
|
||||
"type": "string"
|
||||
},
|
||||
"timeFormat": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigOTELConfig": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"metricIntervalSecs": {
|
||||
"type": "integer"
|
||||
},
|
||||
"prometheusEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"prometheusPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"stdoutEnabled": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"environment": {
|
||||
"type": "string"
|
||||
},
|
||||
"grpc": {
|
||||
"$ref": "#/definitions/ConfigGRPCConfig"
|
||||
},
|
||||
"http": {
|
||||
"$ref": "#/definitions/ConfigHTTPConfig"
|
||||
},
|
||||
"logging": {
|
||||
"$ref": "#/definitions/ConfigLogConfig"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"opts": {
|
||||
"$ref": "#/definitions/ConfigDemoOpts"
|
||||
},
|
||||
"otel": {
|
||||
"$ref": "#/definitions/ConfigOTELConfig"
|
||||
},
|
||||
"timezone": {
|
||||
"default": "UTC",
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
Reference in New Issue
Block a user