Skip to content

feat(csharp): implement Statement.SetOption for adbc.telemetry.trace_parent#130

Closed
birschick-bq wants to merge 1 commit intoadbc-drivers:mainfrom
birschick-bq:dev/birschick-bq/statement-trace-parent
Closed

feat(csharp): implement Statement.SetOption for adbc.telemetry.trace_parent#130
birschick-bq wants to merge 1 commit intoadbc-drivers:mainfrom
birschick-bq:dev/birschick-bq/statement-trace-parent

Conversation

@birschick-bq
Copy link
Collaborator

What's Changed

  • Implement adbc.telemetry.trace_parent option on DatabricksStatement.SetOption
  • Add test to confirm its affect.

Closes #129.

Copy link
Collaborator

@eric-wang-1990 eric-wang-1990 left a comment

Choose a reason for hiding this comment

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

Hi @birschick-bq I open this PR to allow override traceParent on the TracingStatement, I thought it would be a little more cleaner? https://github.com/apache/arrow-adbc/pull/3896/files#diff-ea22827c908183e8cae28e5fcc37cef9d0c4b5637474262cffe163b6b78db9f5

}
break;
case AdbcOptions.Telemetry.TraceParent:
((IActivityTracer)this).Trace.TraceParent = string.IsNullOrWhiteSpace(value) ? null : value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why set to null if non-exist? Should it set to the existing traceParent for connection?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think callers will need to remember to set the TraceParent on the Connection, as well.

@birschick-bq
Copy link
Collaborator Author

Abandoning this pull request.

@birschick-bq birschick-bq deleted the dev/birschick-bq/statement-trace-parent branch January 19, 2026 19:20
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.

[CSharp] Implement Statement.SetOption for option 'adbc.telemetry.trace_parent'

2 participants