newrelic / newrelic/newrelic-python-agent

Configurable web transaction name

Open
#475 16 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
Python
Stars
210
Forks
137
Avg merge
4d 19h
Merged PRs (30d)
12

Description

I'm using Flask framework, and the web transaction name is automatically determined by callable_name of function.
As a result, stakeholders that access NewRelic dashboards cannot understand which endpoint is related to the transaction.

I would like to have the option to configure the web transaction name according to the rule, which more informative and is known by other stakeholders.

I've considered using set_transaction_name but we don't use new relic agent directly in our code, and doing so would not be as clean as having it configured as part of agent initialisation.

It's a feature that we must have in order to be able to handle production failures rapidly (currently we have to lookup the relevant function in our code base which wastes precious time)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Flask transaction names are derived from callable_name during agent initialization, then compare that path with the existing set_transaction_name behavior. The issue does not name files or tests, so first locate those entry points and review the 16-comment discussion for any agreed configuration rule. Done means Flask transaction names can be configured without requiring application code to call the agent directly.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
backend, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.