Florian Lehner

Results 50 issues of Florian Lehner

Signed-off-by: Florian Lehner Reorder structs to reduce required memory.

Team:Security-External Integrations

Signed-off-by: Florian Lehner ## What does this PR do? This PR fixes bugs of incorrect checks. ## Checklist - [x] My code follows the style guidelines of this project -...

Team:Elastic-Agent-Data-Plane
bugfix

**What this PR does / why we need it:** Preallocate memory instead of enforcing an incremental growth. This will result in less work for the garbage collector.

cncf-cla: yes
size/XS
needs-ok-to-test

## Status Quo [go-elasticsearch.Config](https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L67-L111) defines how one can interact with Elasticsearch. At the moment this struct holds a mix of types, functions and interfaces. Functions: https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L89 https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L103 https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L110 Interfaces: https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L106-L107...

Category: Enhancement

For `abc;def` the `locations_start_index` should be `4` as `2` points to `baz`. Follow up of https://github.com/open-telemetry/oteps/pull/239#discussion_r1496062414

This is a follow up for https://github.com/open-telemetry/oteps/pull/239#discussion_r1496080289 around the request for a consistent time precision: In `ProfileContainer` there are `start_time_unix_nano` and `end_time_unix_nano`. Should we have the same precision with `timestamps`...

This is a follow up for https://github.com/open-telemetry/oteps/pull/239#discussion_r1497131334 around `message Sample` and its use of `location_index`, `locations_start_index` and `locations_length`: https://github.com/open-telemetry/oteps/blob/dc619dfc70f174ef31caf90f14e8b00600da4049/text/profiles/0239-profiles-data-model.md?plain=1#L518-L527 As an example, consider the following stack in a folded format:...

`agentbeat` uses [shirou/gopsutil](https://github.com/shirou/gopsutil) to fetch network information. When testing a current release, the following profile from `agentbeat` was collected. ![20240426-091526](https://github.com/elastic/beats/assets/1132494/4b36f382-c841-4ed8-9bfe-dd1d013f6df8) From this on CPU profile, `agentbeat` spends most of its...

Team:Elastic-Agent
Team:Elastic-Agent-Control-Plane
beta

Signed-off-by: Lehner Florian This PR adds a new function `OpenNetlinkSocketNetNS()`, which allows to create a new netlink socket in a specified network namespace. To prevent interruption of the creation process,...