github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/otelx/config.schema.json (about)

     1  {
     2    "$schema": "http://json-schema.org/draft-07/schema#",
     3    "$id": "ory://tracing-config",
     4    "type": "object",
     5    "additionalProperties": false,
     6    "description": "Configure distributed tracing.",
     7    "properties": {
     8      "provider": {
     9        "type": "string",
    10        "description": "Set this to the tracing backend you wish to use. Supports Jaeger.",
    11        "enum": [
    12          "jaeger"
    13        ],
    14        "examples": [
    15          "jaeger"
    16        ]
    17      },
    18      "service_name": {
    19        "type": "string",
    20        "description": "Specifies the service name to use on the tracer.",
    21        "examples": [
    22          "Ory Hydra",
    23          "Ory Kratos",
    24          "Ory Keto",
    25          "Ory Oathkeeper"
    26        ]
    27      },
    28      "providers": {
    29        "type": "object",
    30        "additionalProperties": false,
    31        "properties": {
    32          "jaeger": {
    33            "type": "object",
    34            "additionalProperties": false,
    35            "description": "Configures the jaeger tracing backend.",
    36            "properties": {
    37              "local_agent_host": {
    38                "type": "string",
    39                "description": "The hostname of the jaeger-agent where spans should be sent to.",
    40                "oneOf": [
    41                  {
    42                    "format": "hostname"
    43                  },
    44                  {
    45                    "format": "ipv4"
    46                  }
    47                ],
    48                "examples": [
    49                  "localhost",
    50                  "192.168.1.2"
    51                ]
    52              },
    53              "local_agent_port": {
    54                "type": "integer",
    55                "description": "The port of the jaeger-agent.",
    56                "minimum": 0,
    57                "maximum": 65535
    58              },
    59              "sampling_ratio": {
    60                "type": "number",
    61                "description": "Ratio for sampling traces",
    62                "minimum": 0,
    63                "maximum": 1
    64              }
    65            }
    66          }
    67        }
    68      }
    69    }
    70  }