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

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

Open
pselle opened this issue Jun 25, 2018 · 0 comments
Open

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

pselle opened this issue Jun 25, 2018 · 0 comments

Comments

@pselle
Copy link
Contributor

pselle commented Jun 25, 2018

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):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant