Skip to content

OpenTelemetry Protcol (OTLP) identity integration #180

Merged
LorenzoTettamanti merged 32 commits intoCortexFlow:0.1.5from
LorenzoTettamanti:0.1.5
Feb 8, 2026
Merged

OpenTelemetry Protcol (OTLP) identity integration #180
LorenzoTettamanti merged 32 commits intoCortexFlow:0.1.5from
LorenzoTettamanti:0.1.5

Conversation

@LorenzoTettamanti
Copy link
Member

@LorenzoTettamanti LorenzoTettamanti commented Jan 27, 2026

Related issues: #181 #158 #174 #182

Changes

This PR introduces several core changes to simplify the current codebase and avoid unnecessary duplication.

Key changes:

Notes

NOTE:
We no longer need to attach the BPF programs to all virtual Ethernet interfaces to trace network packets. We can leverage the role of the bridge interfaces (see the image below) to directly trace the TCP packets without dynamically attaching the programs to all the veth interfaces. Up to now, I've implemented this idea, and I haven't noticed a significant change in the behaviour. I'm open to discussing a better implementation of all the logic, as this will for sure need more tests to confirm the idea presented above. I will also suggest not to remove the veth tracing logic completely because that can be useful to debug the system and can enhance the context information.
veth

…pace implementation. Added a small doc in the conntracker/main.rs file
…otel daemonset with otel agent and collector
…removed useless conversion from u8 to 64 with .into() for state variable
…te. .update identity kubernetes manifest with the otel env variables.
@LorenzoTettamanti LorenzoTettamanti self-assigned this Jan 27, 2026
@LorenzoTettamanti LorenzoTettamanti added enhancement New feature or request code refactoring Code refactoring rust Pull requests that update Rust code labels Jan 27, 2026
@LorenzoTettamanti LorenzoTettamanti added ebpf eBPF related tasks v0.1.5 Version 0.1.5 issues tracker labels Jan 27, 2026
@LorenzoTettamanti LorenzoTettamanti moved this to In Progress in CortexFlow v0.1 Jan 27, 2026
…dentity crate to the common crate. Added BufferType enum to list different buffers readers. Added buffer_type module in cortexbrain common (experimental)
…ed representation for the VethLog structure. changed dev_addr type from [u32;8] to [u8;6] (see https://wiki.osdev.org/Address_Resolution_Protocol). Added unit tests to check VethLog structure bytes size. Changed "actual program" to "kernel_symbol" in the load_program function
…ame instead of relying on the declaration order during the startup
@siddh34
Copy link
Collaborator

siddh34 commented Feb 8, 2026

@LorenzoTettamanti can you check I think the refactoring in common crate broke metrics build

image

Command to reproduce

cd core/src/components/metrics
./build-metrics.sh 

@siddh34
Copy link
Collaborator

siddh34 commented Feb 8, 2026

OTLP is working as expected

identity

image

otlp collector

image

otlp agent

image

@LorenzoTettamanti
Copy link
Member Author

LorenzoTettamanti commented Feb 8, 2026

@siddh34 can you check if everything is compatible with the current metrics latest release?

If so we can refactor the code as soon as we start working on issue #175

metrics:latest

@siddh34
Copy link
Collaborator

siddh34 commented Feb 8, 2026

@LorenzoTettamanti things are working fine!

@LorenzoTettamanti
Copy link
Member Author

@siddh34 i'm merging the changes

@LorenzoTettamanti LorenzoTettamanti merged commit 4f6c2b0 into CortexFlow:0.1.5 Feb 8, 2026
3 checks passed
@LorenzoTettamanti LorenzoTettamanti moved this from In Progress to Done in CortexFlow v0.1 Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code refactoring Code refactoring ebpf eBPF related tasks enhancement New feature or request rust Pull requests that update Rust code v0.1.5 Version 0.1.5 issues tracker

Projects

Status: Done

2 participants