{
  "description": "TracingService is the Schema for the tracingservices API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "TracingServiceSpec defines the desired state of TracingService",
      "properties": {
        "config": {
          "properties": {
            "access_token_file": {
              "type": "string"
            },
            "collector_cluster": {
              "type": "string"
            },
            "collector_endpoint": {
              "type": "string"
            },
            "collector_endpoint_version": {
              "enum": [
                "HTTP_JSON_V1",
                "HTTP_JSON",
                "HTTP_PROTO"
              ],
              "type": "string"
            },
            "collector_hostname": {
              "type": "string"
            },
            "service_name": {
              "type": "string"
            },
            "shared_span_context": {
              "type": "boolean"
            },
            "trace_id_128bit": {
              "type": "boolean"
            },
            "v3PropagationModes": {
              "items": {
                "enum": [
                  "ENVOY",
                  "LIGHTSTEP",
                  "B3",
                  "TRACE_CONTEXT"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "driver": {
          "enum": [
            "lightstep",
            "zipkin",
            "datadog",
            "opentelemetry"
          ],
          "type": "string"
        },
        "sampling": {
          "properties": {
            "client": {
              "type": "integer"
            },
            "overall": {
              "type": "integer"
            },
            "random": {
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "service": {
          "type": "string"
        },
        "tag_headers": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "v3CustomTags": {
          "items": {
            "description": "TracingCustomTag provides a data structure for capturing envoy's `type.tracing.v3.CustomTag`",
            "properties": {
              "environment": {
                "description": "Environment explicitly specifies the protocol stack to set up. Exactly one of Literal, Environment or Header must be supplied.",
                "properties": {
                  "default_value": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "literal": {
                "description": "Literal explicitly specifies the protocol stack to set up. Exactly one of Literal, Environment or Header must be supplied.",
                "properties": {
                  "value": {
                    "type": "string"
                  }
                },
                "required": [
                  "value"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "request_header": {
                "description": "Header explicitly specifies the protocol stack to set up. Exactly one of Literal, Environment or Header must be supplied.",
                "properties": {
                  "default_value": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "tag"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "v3StatsName": {
          "type": "string"
        }
      },
      "required": [
        "driver",
        "service"
      ],
      "type": "object",
      "x-kubernetes-preserve-unknown-fields": true
    }
  },
  "type": "object"
}
