diff options
author | Adrian Cole <adriancole@users.noreply.github.com> | 2018-03-03 01:34:24 +0800 |
---|---|---|
committer | Yang Song <songy23@users.noreply.github.com> | 2018-03-02 09:34:24 -0800 |
commit | c662689ee5fa9ae5cf4c0410a6be01401141cfd2 (patch) | |
tree | d7dff76588b31a421b40333cd5d7170d29f22341 /exporters | |
parent | d2b255e0e44dc90bbbaffca0add5e0e648fb4de8 (diff) | |
download | opencensus-java-c662689ee5fa9ae5cf4c0410a6be01401141cfd2.tar.gz |
Fixes copy/paste errors (#1034)
Diffstat (limited to 'exporters')
-rw-r--r-- | exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandler.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandler.java b/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandler.java index 3ef27840..419fa9bd 100644 --- a/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandler.java +++ b/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandler.java @@ -56,7 +56,7 @@ import zipkin2.reporter.Sender; // TODO(hailongwen): remove the usage of `NetworkEvent` in the future. final class ZipkinExporterHandler extends SpanExporter.Handler { private static final Tracer tracer = Tracing.getTracer(); - private static final Sampler probabilitySpampler = Samplers.probabilitySampler(0.0001); + private static final Sampler probabilitySampler = Samplers.probabilitySampler(0.0001); static final Logger logger = Logger.getLogger(ZipkinExporterHandler.class.getName()); private static final String STATUS_CODE = "census.status_code"; @@ -192,13 +192,10 @@ final class ZipkinExporterHandler extends SpanExporter.Handler { @Override public void export(Collection<SpanData> spanDataList) { // Start a new span with explicit 1/10000 sampling probability to avoid the case when user - // sets the default sampler to always sample and we get the gRPC span of the stackdriver + // sets the default sampler to always sample and we get the gRPC span of the zipkin // export call always sampled and go to an infinite loop. Scope scope = - tracer - .spanBuilder("ExportStackdriverTraces") - .setSampler(probabilitySpampler) - .startScopedSpan(); + tracer.spanBuilder("SendZipkinSpans").setSampler(probabilitySampler).startScopedSpan(); try { List<byte[]> encodedSpans = new ArrayList<byte[]>(spanDataList.size()); for (SpanData spanData : spanDataList) { |