-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Description
ES is originally using X-Opaque-ID
to trace origin of the request, to help identify slow search request or the use of deprecated functionality.
There was an expectation that this value would contain something in a form of user-id. No specification was given on how this id will look like. We documented this in both slow log and deprecation use cases.
The value of the X-Opaque-ID
is used when de-duplicating deprecated log messages (together with a key
of the deprecated feature). That means if the X-Opaque-ID
is always unique, then there will be no de-duplication of those messages.
This will cause deprecation log to grow and since we enabled by default deprecation log indexing, it might use significant resources of the cluster.
The problem:
Kibana is using the UUID in a form of 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
for the X-Opaque-ID
to help diagnose conceptual origin of the HTTP request. From what I understand, it can also pass the value provided by a user on a request to Kibana?
But because the value is mostly unique, it generates a lot of duplicated deprecation logs.
I wonder if we could use trace-id
for UUID and use something like a UserID for the X-Opaque-Id