Skip to content

Conversation

@birschick-bq
Copy link
Contributor

@birschick-bq birschick-bq commented Oct 20, 2025

This fix corrects the calls to TraceActivity when async to use TraceActivityAsync, instead.

@github-actions github-actions bot added this to the ADBC Libraries 21 milestone Oct 20, 2025
internal async Task OpenAsync()
{
await this.TraceActivity(async activity =>
await this.TraceActivityAsync(async activity =>
Copy link
Contributor

Choose a reason for hiding this comment

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

The generic signature isn't doing us any favors here. Consider as a followup modifying IActivityTracerExtensions.TraceActivity so that it throws a runtime exception if T is a Task.

@CurtHagenlocher CurtHagenlocher merged commit 57eaeff into apache:main Oct 20, 2025
8 checks passed
@birschick-bq birschick-bq deleted the dev/birschick-bq/fix-traceactivityasync branch October 28, 2025 18:59
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