americanas-tech / restQL-golang

Microservice query language and platform
http://restql.b2w.io/
MIT License
17 stars 8 forks source link

NewRelic External Segments: Unable to understand which resource is being called #64

Open wedneyyuri opened 3 years ago

wedneyyuri commented 3 years ago

The BeforeRequest method is used by plugins for instrumenting APMs such as newrelic. The standard instrumentation generates segments by Host and Method in the format example.com - (POST) and with that we lose visibility when the same host has several resources.

image

We can't generate segments by "path" because it would split /resource/123 and /resource/321 in two distinct segments. I think we need a way to retrieve the fields Method and Resource from domain.Statement