Skip to content

Functions error if IOpipe is disabled and using context.iopipe #275

@pselle

Description

@pselle

If using label or other context.iopipe methods, if a user disables the library, the function will error on a type error: TypeError: Cannot read property 'label' of undefined

Steps to reproduce the issue:

  1. Instrument a function using context.iopipe.label or other methods
  2. Disable the agent in config or env var
  3. Function errors

Describe the results you received:
Function errors

Describe the results you expected:
Function should not error, or library should document how to approach this issue

Additional information you deem important (e.g. issue happens only occasionally):

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