Skip to content

Improve OkHTTP Client Initialization #2809

Description

@Laimiux

Feature description

This is a two-fold request:

  • Use Call.Factory to move OkHttpClient initialization from main thread to the background thread.
  • OkHttpClients Should Be Shared (documentation). Specifically, thread and connection pools should be shared for more efficient resource management. It would be ideal DataDog accepted () -> OkHttpClient.Builder as part of configuration.

Proposed solution

No response

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions