americanas-tech/restQL-golang

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

wedneyyuri opened this issue · 0 comments

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