Skip to content

http.url in spans reported by istio are being cut to a fixed length (116 characters of qs values) #12561

@Stono

Description

@Stono

Describe the bug
http.url in the span context is being stripped down (not showing the complete thing) which makes debugging rather difficult.

Taking my good old test case of [ingress-nginx] -> [consumer-gateway] -> [sauron-web].

Here is the first span, which for us is recorded by ingress-nginx using the opentracing libraries:

                        {
                            "key": "http.url",
                            "type": "string",
                            "value": "https://<our private site>/car-search?sort=price-asc\u0026newTabClick=false\u0026onesearchad=Nearly%20New\u0026make=JAGUAR\u0026model=F-PACE\u0026aggregatedTrim=Portfolio\u0026min-monthly-price=50\u0026deposit=1000\u0026term=60\u0026yearly-mileage=10000\u0026maximum-mileage=10000\u0026maximum-badge-engine-size=2.0\u0026zero-to-60=TO_8\u0026co2-emissions-cars=TO_165\u0026postcode=ll302up\u0026radius=1"
                        },

And here is the span for consumer-gateway, as recorded by istio (163 characters):

                        {
                            "key": "http.url",
                            "type": "string",
                            "value": "https://<our private site>/car-search?sort=price-asc\u0026newTabClick=false\u0026onesearchad=Nearly%20New\u0026make=JAGUAR\u0026model=F-PACE\u0026aggregatedTrim=Portfolio\u0026min-mont"
                        },

And then again down to sauron-web (150 characters):

                        {
                            "key": "http.url",
                            "type": "string",
                            "value": "https://app.sauron-web/car-search?min-monthly-price=50\u0026maximum-badge-engine-size=2.0\u0026maximum-mileage=10000\u0026postcode=ll302up\u0026sort=price-asc\u0026yearly-mile"
                        },

In both examples, the length of the recorded querystring parameters seems to be 116.

cc. @douglas-reid

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions