-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add support for custom middleware (eg. tracing) #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's very specific to you functionality to hide behind a feature flag.
I think cleaner solution would be to have a constructor on Connection
which accepts ClientWithMiddleware
, so you could provide one with whatever middlewares you would like, along with a reasonable default to make using library simpler.
Sounds good, when I have some time I'll take a pass at that. |
@andrusha I took a crack at a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, appreciate that you've went out of your way to introduce builder
Could you merge with the main? I've removed nursery linters |
@andrusha done! |
Tests are failing due to doctest in comment, going to mark to be skipped |
Co-authored-by: andrusha <[email protected]>
I'm very interested in using this project as an alternative for the
gosnowflake
API, but one thing I need to get working is tracing support. This attempts to make that possible via feature flag, and it works great testing with local Jaeger and OTLP as the exporter.Is there a creative way to make this work without forcing users to take
opentelemetry_0_21
? Or potentially by allowing aSnowflakeApi
instance to be created with a fully custom client?