Skip to content

The Instrumental class constructor should accept config options #18

@tonydewan

Description

@tonydewan

We're using the Instrumental class directly in a project (we need 2 instances of the agent side by side), and it's annoying to have to call configure separately. We can't chain the call to configure (i.e.,I = new Instrumental().configure({...})) since it doesn't return the instance. That means we've got to call configure separately for both instances.

It seems like the best option is to allow the constructor to optionally take config options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions