Skip to content

Commit

Permalink
remove unnecessary fields from endpoint events
Browse files Browse the repository at this point in the history
  • Loading branch information
richardstartin committed Dec 6, 2022
1 parent 8e63f97 commit d8dd7ea
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,11 @@ public class EndpointEvent extends Event implements EndpointTracker {
@Label("Endpoint")
private String endpoint = "unknown";

@Label("Trace Id")
private final long traceId;

@Label("Local Root Span Id")
private final long localRootSpanId;

/**
* Set to {@literal true} if the corresponding trace and checkpoints was kept by agent side
* sampler(s)
*/
@Label("Trace Sampled")
private boolean traceSampled = false;

@Label("Trace Sampling Priority (start)")
private final int samplingPriorityStart;

@Label("Trace Sampling Priority (end)")
private int samplingPriorityEnd;

@Label("Checkpoints Sampled")
private boolean checkpointsSampled = false;

public EndpointEvent(final DDSpan span) {
this.traceId = span.getTraceId().toLong();
this.localRootSpanId = span.getSpanId();
this.samplingPriorityStart = span.samplingPriority();
begin();
}

Expand All @@ -53,9 +32,6 @@ public void endpointWritten(DDSpan span, boolean traceSampled, boolean checkpoin
if (shouldCommit()) {
end();
this.endpoint = span.getResourceName().toString();
this.samplingPriorityEnd = span.samplingPriority();
this.traceSampled = traceSampled;
this.checkpointsSampled = checkpointsSampled;
commit();
}
}
Expand Down

0 comments on commit d8dd7ea

Please sign in to comment.