Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(csharp/src/Apache.Arrow.Adbc): add OpenTelemetry compatibly tracing library for csharp drivers #6

Open
wants to merge 86 commits into
base: main
Choose a base branch
from

Conversation

birschick-bq
Copy link
Owner

@birschick-bq birschick-bq commented Dec 11, 2024

Add a base class and library to support OpenTelemetry compatible tracing .

Drivers can instrument using TraceActivity and TraceActivityAsync methods to wrap sections of code to trace. The methods provide the current Activity so that instrumentors can add events or tags to the activity.

Key components

  • TracingBase - each of AdbcDriver, AdbcConnection, AdbcDatabase, AdbcStatement now inherit from TracingBase.
  • FileExporter, FileExporterExtensions - provide an implementation of an OpenTelemetry exporter to write trace files to a folder.
  • ActivityExtensions - provide convenience methods for AddEvent and AddLink.
  • TracingArrowArrayStream - a base class implementing IArrowArrayStream to provide the TracingBase to stream readers.

Tests include testing the TracingBase and FileExporter.

@birschick-bq birschick-bq changed the title feat( csharp/src/Apache.Arrow.Adbc): add OpenTelemetry compatibly tracing library for csharp drivers feat(csharp/src/Apache.Arrow.Adbc): add OpenTelemetry compatibly tracing library for csharp drivers Dec 11, 2024
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.

1 participant