Skip to content

Added top level api to get current span and transaction#1954

Merged
antonpirker merged 4 commits intomasterfrom
antonpirker/top-level-get-current-span-transaction
Mar 15, 2023
Merged

Added top level api to get current span and transaction#1954
antonpirker merged 4 commits intomasterfrom
antonpirker/top-level-get-current-span-transaction

Conversation

@antonpirker
Copy link
Copy Markdown
Contributor

Idea originated in this comment of a code review: #1089 (comment)

"set_measurement",
"get_current_span",
"get_current_transaction",
"get_current_span_or_transaction",
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.

you also have to add these to __init__.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

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

as discussed in slack, we just need get_current_span, everything else about the transaction is internal details

@antonpirker antonpirker enabled auto-merge (squash) March 15, 2023 13:41
@antonpirker antonpirker merged commit e952020 into master Mar 15, 2023
@antonpirker antonpirker deleted the antonpirker/top-level-get-current-span-transaction branch March 15, 2023 13:48
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.

2 participants