Skip to content

Commit

Permalink
Removing debug changes from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
PaurushGarg committed Nov 28, 2023
1 parent 244335b commit 10ad682
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@
import io.opentelemetry.sdk.extension.aws.trace.AwsXrayIdGenerator;
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.trace.SdkTracerProvider;
import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder;
import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor;
import io.opentelemetry.semconv.resource.attributes.ResourceAttributes;

import java.time.Duration;
import java.util.UUID;

public class OtlpTraceEmitter extends TraceEmitter {

Tracer tracer;

private static int value = 0;
public OtlpTraceEmitter(Parameter param) {
super();
this.param = param;
Expand Down Expand Up @@ -75,7 +71,6 @@ public void setupProvider() throws Exception {
@Override
public void nextDataPoint() {
Span exampleSpan = tracer.spanBuilder("Example Span").setSpanKind(SpanKind.SERVER).startSpan();
exampleSpan.setAttribute("counter", value++);
exampleSpan.setAttribute("good", "true");
exampleSpan.setAttribute("exampleNumber", UUID.randomUUID().toString());
exampleSpan.end();
Expand Down

0 comments on commit 10ad682

Please sign in to comment.