Skip to content

fast exit spans#2843

Merged
astorm merged 17 commits intomainfrom
astorm/exit-span-min-duration
Aug 1, 2022
Merged

fast exit spans#2843
astorm merged 17 commits intomainfrom
astorm/exit-span-min-duration

Conversation

@astorm
Copy link
Copy Markdown
Contributor

@astorm astorm commented Jul 25, 2022

Closes: #2301

Refs: elastic/apm#496

Introduces the exitSpanMinDuration configuration value.

Checklist

  • Implement code
  • Add tests
  • Update TypeScript typings
  • Update documentation
  • Add CHANGELOG.asciidoc entry
  • Commit message follows commit guidelines

@github-actions github-actions bot added the agent-nodejs Make available for APM Agents project planning. label Jul 25, 2022
@ghost
Copy link
Copy Markdown

ghost commented Jul 25, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-07-28T03:25:41.877+0000

  • Duration: 29 min 34 sec

Test stats 🧪

Test Results
Failed 0
Passed 257814
Skipped 0
Total 257814

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run module tests for <modules> : Run TAV tests for one or more modules, where <modules> can be either a comma separated list of modules (e.g. memcached,redis) or the string literal ALL to test all modules

  • run benchmark tests : Run the benchmark test only.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@astorm astorm marked this pull request as ready for review July 25, 2022 19:41
@astorm astorm requested a review from trentm July 25, 2022 19:41
Comment on lines +16 to +17
spanStackTraceMinDuration: 0, // Always have span stacktraces.
transport () { return new CapturingTransport() }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can drop these two. I'm guessing they are copied from span.test.js. They aren't used in this test. The CapturingTransport here is replaced with a mockClient in resetAgent() below.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a nit, so totally fine to skip it, but is there a reason to keep those two config vars on the agent in this test file? They are slightly misleading for a future maintainer of this test file.

astorm and others added 5 commits July 27, 2022 14:05
Co-authored-by: Trent Mick <trent.mick@elastic.co>
Co-authored-by: Trent Mick <trent.mick@elastic.co>
@astorm astorm requested a review from trentm July 28, 2022 04:20
Comment on lines +16 to +17
spanStackTraceMinDuration: 0, // Always have span stacktraces.
transport () { return new CapturingTransport() }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a nit, so totally fine to skip it, but is there a reason to keep those two config vars on the agent in this test file? They are slightly misleading for a future maintainer of this test file.

@astorm astorm merged commit 182ba97 into main Aug 1, 2022
@astorm astorm deleted the astorm/exit-span-min-duration branch August 1, 2022 14:48
@astorm
Copy link
Copy Markdown
Contributor Author

astorm commented Aug 1, 2022

It was a nit, so totally fine to skip it, but is there a reason to keep those two config vars on the agent in this test file? They are slightly misleading for a future maintainer of this test file.

No real intent here @trentm -- those configs are just part of whatever boilerplate I copy/pasted to get started with the tests and I didn't really want to think through whether removing them about have any impact. I don't think that's all that confusing -- (or no more so than other things in this codebase) -- but I don't have any objections if you wanted to remove them.

PeterEinberger pushed a commit to fpm-git/apm-agent-nodejs that referenced this pull request Aug 20, 2024
* feat: Implement dropping fast exit spans. 

elastic#2301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-nodejs Make available for APM Agents project planning.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[META 496] Dropping fast exit spans

3 participants