Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagTracking: It should be possible to infer the Tagname from the fieldname #27

Open
gmiserez opened this issue Nov 30, 2022 · 0 comments
Labels
Tracking This concerns the Tracking Package

Comments

@gmiserez
Copy link
Collaborator

gmiserez commented Nov 30, 2022

Is your feature request related to a problem? Please describe.
Currently it is possible to create a simple tracking tag with a name like this:

public class Mutation
{
    [Track("FooInvoked")]
    public string DoFooAsync()
    {
        ... Mutation logic
    }
}

This will generate a Tracking Entry with TagName="FooInvoked" every time the mutation field DoFooAsync is invoked in a GraphQL Request.

Describe the solution you'd like
It should be possible to automatically infer the name of the Tag from the name of the Method, like this:

public class Mutation
{
    [Track]
    public string Foo()
    {
        ... Mutation logic
    }
}

This would generate a Tracking Entry with TagName="DoFoo" every time the mutation field DoFooAsync is invoked in a GraphQL Request.

Note: if possible, the name of the Tag should be inferred from the GraphQL Field's name, not from the Method's name.

@gmiserez gmiserez added the Tracking This concerns the Tracking Package label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tracking This concerns the Tracking Package
Projects
None yet
Development

No branches or pull requests

1 participant