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

Mix.Task instrumentation #221

Merged
merged 2 commits into from
May 11, 2020
Merged

Mix.Task instrumentation #221

merged 2 commits into from
May 11, 2020

Conversation

binaryseed
Copy link
Collaborator

This PR adds a macro for easy instrumentation of a Mix.Task

It will:

  • Start the agent
  • Ensure it's booted
  • Start a Transaction
  • Stop the Transaction
  • Send the data and stop the agent

Also makes sure there aren't any errors when the agent shuts down w/o having connected to New Relic's servers.

@binaryseed binaryseed merged commit 25a9b36 into newrelic:1.18 May 11, 2020
@binaryseed binaryseed deleted the mix-task branch May 11, 2020 18:29
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

Successfully merging this pull request may close these issues.

1 participant