Live data from Hacker News

DeepFlow – open-source eBPF Distributed Tracing

deepflow.io

1–10 of 24 posts

Re: DeepFlow – open-source eBPF Distributed Tracing

#5

Haven’t checked the source code yet, wondering if profiling of code without frame pointes is supported. Curious on their approach.

It uses eBPF to provide instrumentation of the kernel calls up as well as hooking into networking for http2 pgsql etc. Since it’s running the process in eBPF it’s essentially sandboxed and all memory, kernel function calls, and even profiling, is an option. They have an agent that collects this information and sends to the server over RPC (protobuf/grpc). You should check it out (however, some of the docs are in Chinese).

Re: DeepFlow – open-source eBPF Distributed Tracing

#7

Nice project, have been following this project casually for a while. The standout feature is to trace RPC flow across network connections, through packet tracing.

How can it tie requests arriving at a service and generating additional downstream requests?

Distributed tracing needs some common token all requests share to identify all RPCs that should be associated with a specific incoming request.

Re: DeepFlow – open-source eBPF Distributed Tracing

#8
post #7

Nice project, have been following this project casually for a while. The standout feature is to trace RPC flow across network connections, through packet tracing.

How can it tie requests arriving at a service and generating additional downstream requests? Distributed tracing needs some common token all requests share to identify all RPCs that should be associated with a specific incoming request.

Take a look at Core Feature #2 in this post - https://deepflow.io/ebpf-the-key-technology-to-observability...

It looks like it's using tcp flow tuple + tcp_seq to join things.

Re: DeepFlow – open-source eBPF Distributed Tracing

#9
post #7

Nice project, have been following this project casually for a while. The standout feature is to trace RPC flow across network connections, through packet tracing.

How can it tie requests arriving at a service and generating additional downstream requests? Distributed tracing needs some common token all requests share to identify all RPCs that should be associated with a specific incoming request.

It looks like it depends on applications either using threads or go routines for concurrency:

> When collecting invocation logs through eBPF and cBPF, DeepFlow calculates information such as syscall_trace_id, thread_id, goroutine_id, cap_seq, tcp_seq based on the system call context. This allows for distributed tracing without modifying application code or injecting TraceID and SpanID. Currently, DeepFlow can achieve Zero Code distributed tracing for all cases except for cross-thread communication (through memory queues or channels) and asynchronous invocations.

Post reply on HN