openzipkin / zipkin-support

repository for support questions raised as issues
4 stars 2 forks source link

Zipkin tags object disabled in ES #48

Open vineetalagh opened 3 years ago

vineetalagh commented 3 years ago

Zipkin version: 2.23.2

ES Version: AWS ES 7.9

I have setup zipkin to write spans to our AWS managed ES instance. I am unable to search tags object in ES because they are not searchable. They have been marked as unknown datatype and are not enabled in the template.

How can I resolve this?

The zipkin template is:

{
  "zipkin-span-2021-08-11" : {
    "aliases" : { },
    "mappings" : {
      "_source" : {
        "excludes" : [ "_q" ]
      },
      "dynamic_templates" : [ {
        "strings" : {
          "match" : "*",
          "match_mapping_type" : "string",
          "mapping" : {
            "ignore_above" : 256,
            "norms" : false,
            "type" : "keyword"
          }
        }
      } ],
      "properties" : {
        "_q" : {
          "type" : "keyword"
        },
        "annotations" : {
          "type" : "object",
          "enabled" : false
        },
        "duration" : {
          "type" : "long"
        },
        "id" : {
          "type" : "keyword",
          "ignore_above" : 256
        },
        "kind" : {
          "type" : "keyword",
          "ignore_above" : 256
        },
        "localEndpoint" : {
          "dynamic" : "false",
          "properties" : {
            "serviceName" : {
              "type" : "keyword"
            }
          }
        },
        "name" : {
          "type" : "keyword"
        },
        "parentId" : {
          "type" : "keyword",
          "ignore_above" : 256
        },
        "remoteEndpoint" : {
          "dynamic" : "false",
          "properties" : {
            "serviceName" : {
              "type" : "keyword"
            }
          }
        },
        "shared" : {
          "type" : "boolean"
        },
        "tags" : {
          "type" : "object",
          "enabled" : false
        },
        "timestamp" : {
          "type" : "long"
        },
        "timestamp_millis" : {
          "type" : "date",
          "format" : "epoch_millis"
        },
        "traceId" : {
          "type" : "keyword"
        }
      }
    },
    "settings" : {
      "index" : {
        "number_of_shards" : "5",
        "provided_name" : "zipkin-span-2021-08-11",
        "creation_date" : "1628640006251",
        "requests" : {
          "cache" : {
            "enable" : "true"
          }
        },
        "number_of_replicas" : "1",
        "uuid" : "-BYja4VdRb6PdKOd5nFxRg",
        "version" : {
          "created" : "7090199"
        }
      }
    }
  }
}

Thanks, Vineet

jcchavezs commented 2 years ago

Ping @xeera. Do you mind checking this?