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.

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
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.We can't generate segments by "path" because it would split
/resource/123and/resource/321in two distinct segments. I think we need a way to retrieve the fieldsMethodandResourcefrom domain.Statement