Skip to content

Prevent transaction trace from sending URIs to New Relic #190

Open
@oogFranz

Description

@oogFranz

Summary

Currently, a transaction tracer includes an URI that comes from the environment variable SCRIPT_FILENAME or SCRIPT_NAME.

The URI is come from here
https://github.com/newrelic/newrelic-php-agent/blob/main/agent/php_txn.c#L71-L88

Because the URI may have user input data such as some IDs like user/get/12345/xyz/, I want to stop to sending the URIs in transaction trace to New Relic.

There is an option named remove_trailing_path, but it is not enough because the option only remove URI after .php extension

Desired Behavior

A new option that prevents transaction trace from sending URIs to New Relic should be provided.

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