Skip to content

Code gen creates conflicting variable names #213

@Ahmed-Labs

Description

@Ahmed-Labs

I tried to create new attribute http.request_method (a transactions attribute). Code gen created variable naming conflicts in the libraries with the existing http.request.method attribute.

Steps to Reproduce

  1. yarn run create:attribute
  2. attribute name: 'http.request_method`
  3. yarn run generate

Expected Result

The code gen should differentiate between the two attributes during library code gen (avoiding variable naming conflicts).

Actual Result

Running the code gen created variable naming conflicts with the existing http.request.method attribute. Both attributes map to HTTP_REQUEST_METHOD within the generated javascript and python libraries despite their difference of '_' vs '.' (underscore vs period).

Image

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