Skip to content

Conversation

@zen10001
Copy link
Contributor

This is for a New Sampling Strategy for eBPF traffic. The design doc is here https://confluence.eng.vmware.com/pages/viewpage.action?spaceKey=WFENG&title=Design+Doc+for+a+New+Sampling+Strategy+for+eBPF+traffic

There are two more tickets related to this

MONIT-40225 | Configuration and parameter tuning of ebpfSampler
MONIT-40444 | ebpf script change for eBPF sampler

@zen10001
Copy link
Contributor Author

Not sure why Java CI build failed. On my local, it has been successful.

Comment on lines 28 to 29
private static final String OTEL_SCOPE_KEY = "otel.scope.name";
private static final String OTEL_SCOPE_VALUE_PIXIE = "pixie";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The span tag to identify auto-instrumentation/ebpf data has changed to origin, and the value will be opapps-auto.

@xuranchen added an origin constant to the Java SDK that's available in v3.2.0+. This is where we're setting the span tag in the PxL script: https://github.com/wavefrontHQ/observability-for-kubernetes/blob/4f3f644f59e2b8dfd9e94feca020e5fe9cbdd716/operator/hack/autoinstrumentation/spans.pxl#L171

.collect(Collectors.toMap(Annotation::getKey, Annotation::getValue));
}

private CacheKey extractCachKey(@Nonnull Span span, @Nonnull Map<String, String> annotationMap) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: cach -> cache

import wavefront.report.Span;

public interface PreferedSampler {
boolean sample(@Nonnull Span span);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some comments describing the functionality of the interface and its functions

@joannatk
Copy link
Contributor

Note: @zen10001 to change base branch to dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants