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

Add basic support for "Other" transactions #84

Merged
merged 12 commits into from
Jan 26, 2019

Conversation

binaryseed
Copy link
Collaborator

This PR enables tracking a given process as an "Other" transaction (ie: not a Web transaction). Had to do a minimal amount of refactoring to allow this, and included a little re-shuffling of functions.

NewRelic.start_transaction("GenStage", "FancyConsumer/EventType")

You may track a process that isn't currently part of another transaction. (note: A process spawned in a Web request is part of that web transaction).

Be careful tracking long running processes, as memory usage will grow while collecting attributes & function traces

Normal Web transactions should still use NewRelic.Transaction

closes #83

@barthez
Copy link
Contributor

barthez commented Jan 21, 2019

What about distributed trace? Is NewRelic.start_transaction("GenStage", "FancyConsumer/EventType") going to create distributed trace context so all instrumented HTTPoison requests are going to be recorded properly?

@binaryseed binaryseed merged commit de1a6ec into newrelic:master Jan 26, 2019
@binaryseed binaryseed deleted the other-transaction branch January 26, 2019 06:32
binaryseed added a commit to binaryseed/elixir_agent that referenced this pull request Jan 26, 2019
Add basic support for "Other" transactions
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.

Non-web transactions tracing
2 participants