All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tersesystems.logback.honeycomb.okhttp.HoneycombOkHTTPClientService Maven / Gradle / Ivy

Go to download

Terse Logback is a collection of Logback extensions that shows how to use Logback effectively for structured logging, ringbuffer logging, system instrumentation, and JDBC.

There is a newer version: 1.2.0
Show newest version
/*
 * SPDX-License-Identifier: CC0-1.0
 *
 * Copyright 2018-2020 Will Sargent.
 *
 * Licensed under the CC0 Public Domain Dedication;
 * You may obtain a copy of the License at
 *
 *  http://creativecommons.org/publicdomain/zero/1.0/
 */

package com.tersesystems.logback.honeycomb.okhttp;

import com.fasterxml.jackson.core.JsonFactory;
import com.tersesystems.logback.honeycomb.client.HoneycombClient;
import com.tersesystems.logback.honeycomb.client.HoneycombClientService;
import com.tersesystems.logback.honeycomb.client.HoneycombRequest;
import java.util.function.Function;
import okhttp3.OkHttpClient;

public class HoneycombOkHTTPClientService implements HoneycombClientService {
  @Override
  public  HoneycombClient newClient(
      String apiKey, String dataset, Function, byte[]> encodeFunction) {
    return new HoneycombOkHTTPClient(
        new OkHttpClient(), new JsonFactory(), apiKey, dataset, encodeFunction);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy