Skip to content

Conversation

beriloqueiroz-eco
Copy link

Change Summary

This PR adds support for injecting a custom http.Client into the Typesense Go SDK via a new ClientOption (WithCustomHTTPClient).
This allows users to instrument Typesense HTTP requests with observability tools such as OpenTelemetry, enabling distributed tracing and advanced monitoring.

Added CustomHTTPClient field to ClientConfig
Created WithCustomHTTPClient option for NewClient
Modified client initialization to use the custom client if provided

PR Checklist

Added CustomHTTPClient field to ClientConfig
Created WithCustomHTTPClient option for NewClient
Modified client initialization to use the custom client if provided

Copy link
Contributor

@tharropoulos tharropoulos left a comment

Choose a reason for hiding this comment

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

:shipit:

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