Skip to content

added duration argument to some tracing APIs#550

Closed
beniwohli wants to merge 5 commits into
elastic:masterfrom
beniwohli:fix-537
Closed

added duration argument to some tracing APIs#550
beniwohli wants to merge 5 commits into
elastic:masterfrom
beniwohli:fix-537

Conversation

@beniwohli

@beniwohli beniwohli commented Aug 6, 2019

Copy link
Copy Markdown
Contributor

fixes #537

Comment thread elasticapm/traces.py
if self.transaction._breakdown:
p = self.parent if self.parent else self.transaction
p.child_ended(timestamp)
p.child_ended((self.start_time + duration) if duration is not None else timestamp)

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.

maybe simpler to just use self.start_time + self.duration?

Comment thread tests/metrics/breakdown_tests.py Outdated
@beniwohli beniwohli closed this in 121f86d Aug 20, 2019
@beniwohli beniwohli deleted the fix-537 branch August 20, 2019 10:05
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.

Add duration argument to end_transaction and capture_span

2 participants