Skip to content

Ability to classify segments as external in traces #332

Open
@ak-war

Description

@ak-war

As part of a symfony-based php application, we are making many calls to a Solr application, running on the same set of vms.

The http calls which are made to Solr are visible as function calls as part of transaction traces, but they are not categorized at all as calls to “external services”, unlike calls which are made to, say, Google Analytics.

I think I remember that this used to happen automatically in previous applications based on earlier versions of the same technology/stack.

The php code in question is not using guzzle for making the http calls to Solr, but ratherfopenwith an http context.

The only workaround we found so far is to wrap our calls to Solr in anewrelic_record_datastore_segmentcall, but that is far from ideal as it forces us to sprinkle NewRelic specific code all over the place. Also, while we have good visibility over our own code, we have much less certainty about similar cases which might happen in code from 3rd parties, with code usingfopenor maybe evenfsockopennot being traced as call to a 3rd party…

More discussion about this here:

https://discuss.newrelic.com/t/php-http-calls-not-recorded-as-external-services/163653

Metadata

Metadata

Assignees

No one assigned

    Labels

    PMPM to review against project priorities.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions