Skip to content

Use a single HTTP client. #83

@jpeach

Description

@jpeach

Normally, the pattern for Go HTTP client code is to use a single global http.Client instance, which lets connection pooling work correctly. Currently in the exporter, we use a HTTP client per collector. To use a global client, we would need to add some locking around the DC/OS auth token state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions