newrelic / newrelic/newrelic-python-agent

Add celery args as custom attributes

Open
#215 28 comments 3 reactions 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

Is your feature request related to a problem? Please describe.

Custom attributes are very useful, but having to manually set them for celery task is cumbersome

Feature Description

Automatically add scalar arguments from a celery task as custom attributes (assuming that a custom attribute that's non-scalar (like dict, list, set, etc) is problematic)

Describe Alternatives

Current option is to manually add them and this is a pain and easy to forget

Additional context

This would make the celery integration even more powerful than it already is and make a powerful feature from New Relic (i.e. custom attributes) instantly available to users out of the box.

Priority

Really Want

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 reviewing the repository's Celery integration and the issue discussion, especially how scalar task arguments and custom attributes should be handled. Confirm the intended behavior for scalar versus non-scalar arguments, then add coverage for the agreed behavior and verify the Celery integration tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.