How can I query by an HTTP header that contains dashes in its name? #9022
Replies: 2 comments
|
Yes, there is a quoting syntax required — wrap the attribute key in double quotes when it contains dashes or other non-word characters: "http.response.header.x-trace-id"=77c575993913c7eace87a42574d5e3c6 Why this happens Jaeger's tag search parser treats unquoted attribute names as plain identifiers. Dots ( This applies to any attribute name that contains:
Attribute value quoting If the value also contains special characters, quote that too: "http.response.header.x-trace-id"="77c575993913c7eace87a42574d5e3c6" Why
Backend note |
|
Hi @dlanov, thanks for the reply! After doing some research, I found that the issue is with Elasticsearch. While there isn't much documentation on this, it appears to be related to the OpenTelemetry spec (https://opentelemetry.io/docs/specs/semconv/registry/attributes/http/). The root cause is that Elastic is saving the headers as an array. |



Hi @dlanov, thanks for the reply! After doing some research, I found that the issue is with Elasticsearch. While there isn't much documentation on this, it appears to be related to the OpenTelemetry spec (https://opentelemetry.io/docs/specs/semconv/registry/attributes/http/). The root cause is that Elastic is saving the headers as an array.