Skip to content

Should we support code annotations? #3

@jcchavezs

Description

@jcchavezs

Since instrumentation is transparent for users, there is no chance to add additional information to the traces on controller basis. A solution for this could be:

class MyController {
   /**
    * @Tag('feature_toggle.version', 'v1')
    */
   public function indexAction() {
   }

   /**
    * @Tag('feature_toggle.version', 'v2')
    */
   public function indexV2Action() {
   }
}

This kind of annotations are a common pattern in PHP frameworks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions