-
Notifications
You must be signed in to change notification settings - Fork 144
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
base: master
Are you sure you want to change the base?
Conversation
Not sure why Java CI build failed. On my local, it has been successful. |
private static final String OTEL_SCOPE_KEY = "otel.scope.name"; | ||
private static final String OTEL_SCOPE_VALUE_PIXIE = "pixie"; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
Note: @zen10001 to change base branch to |
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