Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONIT-40224: ebpfSampler #861

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

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
Collaborator

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