Skip to content

Allow (expose) customizing the OkHttpClient.Builder required e.g. for addInterceptor() to support Observability (e.g. with Micrometer) #865

@vorburger

Description

@vorburger

The library currently does not "expose" the OkHttpClient.Builder from com.google.genai.ApiClient.

This makes it impossible to use (e.g.) Micrometer for Observability - or do any other "transport customization".

(It may be possible with private reflection hacking, but that's really super ugly, of course, and should be avoided.)

@jaycee-li would we consider a contribution to allow this? (With a TBD design, of course.)

PS: #635 suggested this in the past already (/CC @kawolum).

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions