public class HttpExporter extends java.lang.Object implements Exporter, MetricsCollectorProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUP |
Constructor and Description |
---|
HttpExporter(io.confluent.telemetry.client.BufferingAsyncTelemetryHttpClient<io.opencensus.proto.metrics.v1.Metric,io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest,io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse> bufferingClient) |
HttpExporter(HttpExporterConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
MetricsCollector |
collector(ConfluentTelemetryConfig config,
Context context,
java.lang.String domain) |
void |
emit(io.opencensus.proto.metrics.v1.Metric metric) |
public static final java.lang.String GROUP
public HttpExporter(HttpExporterConfig config)
public HttpExporter(io.confluent.telemetry.client.BufferingAsyncTelemetryHttpClient<io.opencensus.proto.metrics.v1.Metric,io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest,io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse> bufferingClient)
public void emit(io.opencensus.proto.metrics.v1.Metric metric) throws java.lang.RuntimeException
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException
public MetricsCollector collector(ConfluentTelemetryConfig config, Context context, java.lang.String domain)
collector
in interface MetricsCollectorProvider