<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Azhar Momin</title><description>CS student working on observability, Go compile-time tooling, and open-source software.</description><link>https://azharmomin.dev/</link><language>en-us</language><atom:link href="https://azharmomin.dev/rss.xml" rel="self" type="application/rss+xml"/><item><title>My LFX Mentorship at OpenTelemetry Has Come to an End</title><link>https://azharmomin.dev/posts/my-lfx-mentorship-at-opentelemetry-has-come-to-an-end/</link><guid isPermaLink="true">https://azharmomin.dev/posts/my-lfx-mentorship-at-opentelemetry-has-come-to-an-end/</guid><description>Looking back on my LFX Mentorship at OpenTelemetry Go Compile Instrumentation, what shipped, what I gained, and what&apos;s next.</description><pubDate>Sun, 06 Sep 2026 18:30:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://azharmomin.dev/_astro/lfx-end-banner.DyBsLHo7.png&quot; alt=&quot;LFX Mentorship at OpenTelemetry wrap-up banner&quot; /&gt;&lt;/p&gt;&lt;p&gt;My LFX Mentorship at OpenTelemetry Go Compile Instrumentation (otelc) has
ended. I’ve already written about
&lt;a href=&quot;https://azharmomin.dev/posts/my-lfx-mentorship-so-far-and-what-id-tell-future-mentees/&quot;&gt;how I got here and why I applied&lt;/a&gt;
and about &lt;a href=&quot;https://azharmomin.dev/posts/building-import-driven-instrumentation-for-otelc/&quot;&gt;the technical work&lt;/a&gt;,
so this one’s just a short summary and reflection.&lt;/p&gt;
&lt;h2 id=&quot;what-shipped&quot;&gt;What shipped&lt;/h2&gt;
&lt;p&gt;The biggest piece of work was import-driven instrumentation selection,
covered in &lt;a href=&quot;https://azharmomin.dev/posts/building-import-driven-instrumentation-for-otelc/&quot;&gt;my last post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The other piece, registry-backed integration search through the
&lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-ecosystem-explorer&quot;&gt;OpenTelemetry Ecosystem Explorer&lt;/a&gt;,
is still in progress. We’re also migrating otelc’s instrumentations into
a separate contrib repo, which should make this kind of work easier to
build on. I’ll write about these in a future post.&lt;/p&gt;
&lt;h2 id=&quot;what-i-gained&quot;&gt;What I gained&lt;/h2&gt;
&lt;p&gt;Getting better at communication was one of the reasons I applied. I was
always fine talking async over GitHub, comments, reviews, PR
descriptions, but I didn’t have much confidence in live SIG meetings or
calls. Weekly SIG meetings and regular syncs with my mentors fixed that.&lt;/p&gt;
&lt;p&gt;I’m also a lot more interested in observability than when I started. I
want to keep exploring the OpenTelemetry ecosystem, mainly around Rust
and eBPF. I’m graduating in about a year, and this mentorship is a big
part of why I’m now seriously looking at observability as a career
direction.&lt;/p&gt;
&lt;p&gt;The project got a lot of traction during my mentorship, we submitted
two project proposals for the next LFX term, so alongside my own
contributions I reviewed many PRs. Reading other people’s approaches and
review discussions taught me things faster than writing my own code
ever did.&lt;/p&gt;
&lt;h2 id=&quot;whats-next&quot;&gt;What’s next&lt;/h2&gt;
&lt;p&gt;I’m mentoring a project myself next term, co-mentoring with
&lt;a href=&quot;https://github.com/txabman42&quot;&gt;Xabier Martinez&lt;/a&gt;. I’m also planning to
stay in touch with my mentors and everyone else I’ve gotten to know
through this.&lt;/p&gt;
&lt;h2 id=&quot;thank-you&quot;&gt;Thank you&lt;/h2&gt;
&lt;p&gt;Thanks to my mentors, and to the OpenTelemetry and CNCF community, for
everything over the past few months.&lt;/p&gt;</content:encoded><category>lfx</category><category>opentelemetry</category><category>open-source</category><category>mentorship</category></item><item><title>Building Import-Driven Instrumentation for otelc</title><link>https://azharmomin.dev/posts/building-import-driven-instrumentation-for-otelc/</link><guid isPermaLink="true">https://azharmomin.dev/posts/building-import-driven-instrumentation-for-otelc/</guid><description>How I got involved with OpenTelemetry Go Compile Instrumentation through LFX Mentorship, and the work I did on import-driven instrumentation selection.</description><pubDate>Wed, 12 Aug 2026 06:30:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://azharmomin.dev/_astro/otelc-import-driven-banner.VRw3J8x7.png&quot; alt=&quot;Import-Driven Instrumentation for otelc banner&quot; /&gt;&lt;/p&gt;&lt;p&gt;In &lt;a href=&quot;https://azharmomin.dev/posts/my-lfx-mentorship-so-far-and-what-id-tell-future-mentees/&quot;&gt;my last post&lt;/a&gt;, I wrote about how I got into OpenTelemetry Go Compile
Instrumentation and applied to LFX Mentorship. This one is about the
actual work, what I built, the bugs I ran into, and how I fixed them.&lt;/p&gt;
&lt;h2 id=&quot;why-otelc-specifically&quot;&gt;Why otelc specifically?&lt;/h2&gt;
&lt;p&gt;I’m interested in both low-level tooling and observability, and otelc
sits right at the intersection of the two. That’s really what pulled me
toward this project instead of OpenTelemetry in general.&lt;/p&gt;
&lt;h2 id=&quot;what-is-otelc-briefly&quot;&gt;What is otelc, briefly?&lt;/h2&gt;
&lt;p&gt;otelc instruments Go code at compile time. Instead of requiring developers to
manually instrument their code, otelc rewrites the program during compilation
so that instrumentation is inserted automatically. The rest of this post assumes
a little bit of that context, so here’s the short version before I get into
what I actually worked on.&lt;/p&gt;
&lt;h2 id=&quot;what-i-worked-on&quot;&gt;What I worked on&lt;/h2&gt;
&lt;h3 id=&quot;import-driven-instrumentation-selection&quot;&gt;Import-driven instrumentation selection&lt;/h3&gt;
&lt;p&gt;otelc ships with a built-in set of instrumentations, each made up of
modules and rule files. But there was no good way to bring in third-party
instrumentations easily, and no way to disable a built-in instrumentation
at compile time (you could only toggle them at runtime).&lt;/p&gt;
&lt;p&gt;This came up in a SIG meeting, and was tracked in
&lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation/issues/567&quot;&gt;this issue&lt;/a&gt;.
Orchestrion, Datadog’s own compile-time instrumentation tool for Go,
already had a solution: an &lt;code&gt;orchestrion.tool.go&lt;/code&gt; file that developers
could use to declare instrumentation explicitly. We used that as a
starting point and built something similar for otelc.&lt;/p&gt;
&lt;p&gt;The mechanism works like this: otelc looks for a file (&lt;code&gt;otel.instrumentation.go&lt;/code&gt;,
or &lt;code&gt;otelc.tool.go&lt;/code&gt; as an alias) containing a list of blank imports. This
file isn’t included in the actual build (it’s marked with a &lt;code&gt;tools&lt;/code&gt;
build tag, following the standard &lt;code&gt;tools.go&lt;/code&gt; convention), but Go still
tracks its imports in &lt;code&gt;go.mod&lt;/code&gt;. otelc reads this file before building,
loads the imported packages using &lt;code&gt;golang.org/x/tools/go/packages&lt;/code&gt;, and scans
each package’s directory for rule files (&lt;code&gt;otelc.yaml&lt;/code&gt;, &lt;code&gt;*.otelc.yaml&lt;/code&gt;)
or another &lt;code&gt;otel.instrumentation.go&lt;/code&gt;, allowing instrumentation packages
to bundle together other instrumentation packages. Those rule files
define how to instrument that package.&lt;/p&gt;
&lt;p&gt;Here’s roughly what one of these files looks like in practice:&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes github-light-high-contrast github-dark&quot; style=&quot;--shiki-light:#0e1116;--shiki-dark:#e1e4e8;--shiki-light-bg:#ffffff;--shiki-dark-bg:#24292e; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;go&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#66707B;--shiki-dark:#6A737D&quot;&gt;//go:build tools&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#A0111F;--shiki-dark:#F97583&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;--shiki-light:#702C00;--shiki-dark:#B392F0&quot;&gt; tools&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#A0111F;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#0E1116;--shiki-dark:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#0E1116;--shiki-dark:#E1E4E8&quot;&gt;    _ &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032563;--shiki-dark:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#702C00;--shiki-dark:#B392F0&quot;&gt;go.opentelemetry.io/otelc/instrumentation/net/http/client&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032563;--shiki-dark:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#0E1116;--shiki-dark:#E1E4E8&quot;&gt;    _ &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032563;--shiki-dark:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#702C00;--shiki-dark:#B392F0&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032563;--shiki-dark:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#0E1116;--shiki-dark:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;mermaid-block&quot; data-mermaid-block=&quot;&quot;&gt;&lt;pre class=&quot;mermaid-source-raw&quot; hidden&gt;flowchart TD
    A[&quot;otel.instrumentation.go&amp;#x3C;br/&gt;(blank imports, tools build tag)&quot;] --&gt; B[&quot;otelc reads imports&quot;]
    A -.-&gt; C[&quot;Imports are still tracked in go.mod&quot;]
    B --&gt; D[&quot;Load packages&amp;#x3C;br/&gt;golang.org/x/packages&quot;]
    D --&gt; E[&quot;Scan package directories&amp;#x3C;br/&gt;otelc.yaml / *.otelc.yaml&amp;#x3C;br/&gt;or nested otel.instrumentation.go&quot;]
    E --&gt; F[&quot;Apply instrumentation rules&quot;]&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The naming itself was already decided in a UX design document from before
I joined the project, so that part was settled. I’d originally written this
as a single PR, but it ended up being around 5,000 lines, which was far
too large to review properly. Reviewers asked me to split it into smaller
PRs, so I did. During that process, one review comment asked for an integration
test covering a recursive instrumentation path, where one &lt;code&gt;otel.instrumentation.go&lt;/code&gt;
file references another. Writing that test surfaced a real bug: otelc was only
looking for hook code files inside its own embedded bundle, not in packages loaded
from external import paths. If that comment hadn’t come up, this bug might
have gone unnoticed for a while. I fixed it by updating otelc to load hook code
through &lt;code&gt;golang.org/x/tools/go/packages&lt;/code&gt; as well. The implementation landed across a couple of
PRs: the hook loading fix in &lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation/pull/617&quot;&gt;#617&lt;/a&gt;,
followed by the core import-driven instrumentation support in
&lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation/pull/612&quot;&gt;#612&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;the-initinstrumentation-deadlock&quot;&gt;The initInstrumentation deadlock&lt;/h3&gt;
&lt;p&gt;Every instrumentation in otelc followed the same rough pattern: lazily
set up the OTel SDK (if it wasn’t already running) and start runtime
metrics, guarded by a &lt;code&gt;sync.Once&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This caused a deadlock. Here’s what happened: when
a user’s code called &lt;code&gt;grpc.NewClient&lt;/code&gt;, the gRPC instrumentation hook would
call &lt;code&gt;initInstrumentation&lt;/code&gt;, which runs inside a &lt;code&gt;sync.Once.Do&lt;/code&gt;. If the
user had their OTLP exporter configured to use gRPC, the SDK setup inside
that same &lt;code&gt;Once.Do&lt;/code&gt; would itself call &lt;code&gt;grpc.NewClient&lt;/code&gt;, which tried to
call &lt;code&gt;initInstrumentation&lt;/code&gt; again, re-entering the same &lt;code&gt;Once.Do&lt;/code&gt; block
that hadn’t finished running yet. That’s a deadlock.&lt;/p&gt;
&lt;div class=&quot;mermaid-block&quot; data-mermaid-block=&quot;&quot;&gt;&lt;pre class=&quot;mermaid-source-raw&quot; hidden&gt;sequenceDiagram
    participant U as User code
    participant G as gRPC hook
    participant I as initInstrumentation&amp;#x3C;br/&gt;(sync.Once)
    participant S as OTel SDK setup

    U-&gt;&gt;G: grpc.NewClient()
    G-&gt;&gt;I: Once.Do(...)
    I-&gt;&gt;S: SetupOTelSDK()
    S-&gt;&gt;G: grpc.NewClient() (OTLP exporter)
    G-&gt;&gt;I: Once.Do(...)
    Note over I: sync.Once is still&amp;#x3C;br/&gt;executing from the&amp;#x3C;br/&gt;first call -&gt; deadlock&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;My first fix was simpler than it should have been: check the value of
&lt;code&gt;OTEL_EXPORTER_OTLP_ENDPOINT&lt;/code&gt; and skip instrumentation for any
&lt;code&gt;grpc.NewClient&lt;/code&gt; call pointed at that endpoint. That worked for the
obvious case, but it broke down as soon as the two values didn’t match
exactly, since the values could point at the same collector without
matching as strings at all:&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes github-light-high-contrast github-dark&quot; style=&quot;--shiki-light:#0e1116;--shiki-dark:#e1e4e8;--shiki-light-bg:#ffffff;--shiki-dark-bg:#24292e; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;endpoint = &quot;http://collector-localhost:4317&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;target   = &quot;localhost:4317&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This kept happening because I was relying on dumb string comparison to
detect whether the two calls pointed at the same target. Instead of
trying to make that comparison smarter, I took a different approach.&lt;/p&gt;
&lt;p&gt;The fix was to stop having every instrumentation independently lazy-init
the SDK. Instead, I moved that startup logic out into a single injected
rule that runs once in the user’s main package, before any instrumentation
hook runs. Every hook can now assume the SDK is already set up by the time
it runs, so there’s no endpoint comparison to get wrong in the first
place. It also meant third-party rules don’t need to follow the old init pattern at all,
they can simply assume the SDK is already available, which fit nicely with the
import-driven instrumentation work happening around the same time. Users who
want to bring their own tracer or meter provider can also remove this rule and wire
up their own. The implementation landed in &lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation/pull/625&quot;&gt;#625&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;otelc-pin-and-auto-pinning&quot;&gt;otelc pin and auto-pinning&lt;/h3&gt;
&lt;p&gt;The second thing I worked on was the &lt;code&gt;otelc pin&lt;/code&gt; command, which generates
an &lt;code&gt;otel.instrumentation.go&lt;/code&gt; file based on a user’s dependency graph,
inspired by Orchestrion’s own &lt;code&gt;pin&lt;/code&gt; command. Orchestrion’s version points
to a single package that bundles every integration together. I changed
this so &lt;code&gt;otelc pin&lt;/code&gt; looks at the user’s actual dependencies and infers
which instrumentations are relevant, rather than pulling in everything.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;otelc pin&lt;/code&gt; also keeps the generated file clean by automatically removing
imports that don’t resolve to any rule files (or other
&lt;code&gt;otel.instrumentation.go&lt;/code&gt; files). The result is an explicit list of the
instrumentations that are actually relevant to the project.&lt;/p&gt;
&lt;p&gt;Auto-pinning was also mentioned in the original issue, but initially I
wasn’t convinced it was necessary. If a project didn’t have an
&lt;code&gt;otel.instrumentation.go&lt;/code&gt; file, otelc could simply fall back to its default
instrumentations. Generating a temporary file just to represent that default
set seemed like an unnecessary extra step.&lt;/p&gt;
&lt;p&gt;While testing otelc against a project using an older version of gRPC, I ran into
another problem. I already had a fix open for that problem, but auto-pinning
addressed its underlying cause in a much cleaner way.&lt;/p&gt;
&lt;p&gt;At the time, otelc’s build process matched instrumentation rules first,
then added the matched instrumentation modules to &lt;code&gt;go.mod&lt;/code&gt; and ran
&lt;code&gt;go mod tidy&lt;/code&gt;. That dependency resolution could bump the project’s gRPC
version. The instrumentation rules had already been selected against the
old version, though, so otelc could end up building against a dependency
graph different from the one it had used to decide which rules to apply
which resulted in the build failing.&lt;/p&gt;
&lt;p&gt;My original fix was to run the setup process in multiple passes until the
dependency graph stopped changing. It worked, but auto-pinning turned out to
solve the same problem much more cleanly.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;otelc go build&lt;/code&gt; now generates a temporary &lt;code&gt;otel.instrumentation.go&lt;/code&gt; early
when the user hasn’t provided one. Dependencies are resolved and added to
&lt;code&gt;go.mod&lt;/code&gt; as part of that pinning phase, before rule matching happens. By
the time otelc selects instrumentation rules, it’s looking at the dependency
versions that will actually be used for the build. The setup phase that
follows no longer needs to modify the dependency graph, so the selected
rules stay valid.&lt;/p&gt;
&lt;div class=&quot;mermaid-block&quot; data-mermaid-block=&quot;&quot;&gt;&lt;pre class=&quot;mermaid-source-raw&quot; hidden&gt;flowchart TB
    subgraph Before
        direction LR
        B1[&quot;Match rules&quot;] --&gt; B2[&quot;Add deps to go.mod&amp;#x3C;br/&gt;go mod tidy&quot;] --&gt; B3[&quot;Rules may now be stale&quot;]
    end
    subgraph After
        direction LR
        A1[&quot;Pin phase&amp;#x3C;br/&gt;Resolve deps early&quot;] --&gt; A2[&quot;Match rules against final&amp;#x3C;br/&gt;dependency graph&quot;] --&gt; A3[&quot;Setup phase&amp;#x3C;br/&gt;Rules stay valid&quot;]
    end&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This also gives us a cleaner path toward
&lt;a href=&quot;#whats-next&quot;&gt;registry-backed integration search&lt;/a&gt;. If otelc eventually
discovers compatible instrumentations from the &lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-ecosystem-explorer&quot;&gt;OpenTelemetry Ecosystem Explorer&lt;/a&gt;
registry, the same pinning step can resolve those integrations and their
dependencies before rule matching, rather than requiring the rest of the build
pipeline to care where an instrumentation came from. I talk more about that idea
in the registry-backed integration section below.&lt;/p&gt;
&lt;p&gt;One rough edge that’s still open is that &lt;code&gt;otelc pin&lt;/code&gt; currently adds
&lt;code&gt;replace&lt;/code&gt; directives pointing to local paths in &lt;code&gt;go.mod&lt;/code&gt;, which makes
checking the generated file into version control awkward. Decoupling
instrumentations from the tool itself, also described below, should fix
that. The initial implementation landed in &lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation/pull/655&quot;&gt;#655&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;whats-next&quot;&gt;What’s next&lt;/h2&gt;
&lt;p&gt;A few things I’m looking at for the rest of the mentorship:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Decoupling instrumentations from otelc’s embedded bundle.&lt;/strong&gt; Right
now, instrumentation packages are embedded directly into the otelc
binary. That means adding a new instrumentation requires a new release
of the tool, even if it’s otherwise fully compatible. Decoupling this
would also let us build a proper dependency graph between
instrumentations (for example, automatically pulling in a runtime/GLS
instrumentation whenever the OTel SDK instrumentation is used), and
would let users check reproducible &lt;code&gt;otel.instrumentation.go&lt;/code&gt; files
into their own repos without local path replaces.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Registry-backed integration search.&lt;/strong&gt; Instead of only looking at the
embedded bundle, otelc could look up compatible instrumentations
through the &lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-ecosystem-explorer&quot;&gt;OpenTelemetry Ecosystem Explorer&lt;/a&gt;
registry, which would let third-party instrumentations get picked up
automatically once published there. This is currently being
researched, see
&lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-ecosystem-explorer/issues/916&quot;&gt;this issue&lt;/a&gt;
for the open questions around how Go compile-time instrumentations
should be represented there and how otelc would consume that data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Supporting &lt;code&gt;.otel.yml&lt;/code&gt; files.&lt;/strong&gt; Similar in spirit to
&lt;code&gt;otel.instrumentation.go&lt;/code&gt;, but without tracking dependencies in
&lt;code&gt;go.mod&lt;/code&gt;. Useful for customizing instrumentations without wanting them
tracked in version control, though it won’t produce fully reproducible
builds.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;acknowledgements&quot;&gt;Acknowledgements&lt;/h2&gt;
&lt;p&gt;The work described here went through a lot of review. Thanks to
&lt;a href=&quot;https://github.com/kakkoyun&quot;&gt;Kemal Akkoyun&lt;/a&gt; for raising the original
issue that led to import-driven instrumentation selection, and to both
&lt;a href=&quot;https://github.com/kakkoyun&quot;&gt;Kemal&lt;/a&gt; and
&lt;a href=&quot;https://github.com/darccio&quot;&gt;Dario Castañé&lt;/a&gt; for reviewing the PRs linked
throughout this post, including the review comment that led me to the
recursive-instrumentation bug. Thanks also to everyone else in the
OpenTelemetry Go Compile Instrumentation community who reviewed and
discussed this work along the way.&lt;/p&gt;</content:encoded><category>lfx</category><category>opentelemetry</category><category>go</category><category>observability</category><category>open-source</category></item><item><title>My Path to LFX Mentorship, and Some Advice for Future Mentees</title><link>https://azharmomin.dev/posts/my-lfx-mentorship-so-far-and-what-id-tell-future-mentees/</link><guid isPermaLink="true">https://azharmomin.dev/posts/my-lfx-mentorship-so-far-and-what-id-tell-future-mentees/</guid><description>How a slow Discord bot led me to OpenTelemetry, why I applied to LFX Mentorship, and some advice for anyone thinking about applying themselves.</description><pubDate>Fri, 24 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://azharmomin.dev/_astro/otelc-banner.BR33zktf.png&quot; alt=&quot;OpenTelemetry Go Compile-Time Instrumentation banner&quot; /&gt;&lt;/p&gt;&lt;h2 id=&quot;how-i-got-here&quot;&gt;How I got here&lt;/h2&gt;
&lt;p&gt;I was building a Discord minigame as a side project in Python. It grew
bigger than I expected, and it started slowing down, partly due to code
I could’ve written better. Eventually I decided to rewrite it in Go,
mostly to see how much its concurrency model would help.&lt;/p&gt;
&lt;p&gt;Separately, I realized that whatever language I ended up in, I wanted
real visibility into what the bot was actually doing, not just something
that told me when it crashed. So I tried instrumenting things manually,
and ran into two problems almost immediately. First, I didn’t really know
what to instrument. Second, even following the docs, there was so much
boilerplate involved that I nearly gave up on the whole idea.&lt;/p&gt;
&lt;p&gt;That’s what pushed me toward auto-instrumentation, mostly as a way to
avoid the boilerplate. At the time, though, I was more interested in
learning how to instrument things properly than in auto-instrumentation
itself, that appreciation came later.&lt;/p&gt;
&lt;p&gt;While looking into zero-code instrumentation solutions, I came across
&lt;a href=&quot;https://www.cncf.io/blog/2025/02/27/alibaba-datadog-and-quesma-join-forces-on-go-compile-time-instrumentation/&quot;&gt;this old blog post&lt;/a&gt;
announcing the new &lt;a href=&quot;https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation&quot;&gt;OpenTelemetry Go Compile Instrumentation&lt;/a&gt;
project. One of the most appealing reasons for me to contribute was that there
was scope for adding new instrumentations, a learning chance for me
since I didn’t know much about observability yet. The compiler-level
part also mattered to me, I already liked that kind of low-level work. On top of that, I’d separately been looking
for a CNCF project to contribute to. I introduced myself in the
project’s Slack, asked some questions, and my first real contribution
was auto-instrumentation for &lt;code&gt;k8s.io/client-go&lt;/code&gt;, though there were a
couple of smaller ones before that.&lt;/p&gt;
&lt;h2 id=&quot;before-this-gsoc--kde&quot;&gt;Before this: GSoC @ KDE&lt;/h2&gt;
&lt;p&gt;This wasn’t my first mentorship. In 2025, I was a GSoC mentee at KDE,
working on integrating KDE libraries into OSS-Fuzz under the guidance
of &lt;a href=&quot;https://invent.kde.org/aacid&quot;&gt;Albert Astals Cid&lt;/a&gt;. At the time, I was
a total newbie to open source. That period taught me the ropes, both
technically and in terms of how contributing to a real project actually
works. I’ve written about that in more detail separately
(&lt;a href=&quot;https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries/&quot;&gt;link&lt;/a&gt;),
and it’s worth mentioning here because it’s a big part of why I felt
ready to jump into OTel later.&lt;/p&gt;
&lt;h2 id=&quot;why-mentorship-again&quot;&gt;Why Mentorship again?&lt;/h2&gt;
&lt;p&gt;Two reasons, really.&lt;/p&gt;
&lt;p&gt;The first was that I wanted to get better at communicating. LFX comes
with weekly SIG meetings and regular meetings with my mentors,
&lt;a href=&quot;https://github.com/kakkoyun&quot;&gt;Kemal Akkoyun&lt;/a&gt; and
&lt;a href=&quot;https://github.com/darccio&quot;&gt;Dario Castañé&lt;/a&gt;. Having to regularly explain
what I’ve been working on to people who know the project well has been
good practice, especially since it isn’t something that comes naturally
to me.&lt;/p&gt;
&lt;p&gt;The second was that I wanted to go deeper into observability and
OpenTelemetry specifically, and get better at Go along the way. We’re
still in the middle of the mentorship, but so far it’s been exactly what
I was hoping for.&lt;/p&gt;
&lt;h2 id=&quot;advice-for-future-mentees&quot;&gt;Advice for future mentees&lt;/h2&gt;
&lt;p&gt;A few things that I think mattered, based on my own experience going
through this.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Contributing is more than opening PRs.&lt;/strong&gt; Looking back at what actually
helped my application, joining community discussions, opening issues
when I found something worth raising, reviewing other people’s PRs, and
sharing ideas even when I wasn’t sure they’d go anywhere all mattered
just as much as the code I wrote. Mentors and maintainers see all of
that, not just your commit history.&lt;/p&gt;
&lt;p&gt;Reviewing other people’s PRs ended up helping me far more than I
expected. Reading different approaches, following review discussions,
and seeing why maintainers asked for certain changes taught me things I
wouldn’t have learned nearly as quickly by only writing my own code.&lt;/p&gt;
&lt;p&gt;Consistency also matters more than volume. You don’t need dozens of PRs
to stand out. Showing up regularly, staying involved in discussions,
attending meetings when you can, and gradually becoming part of the
community leaves a much stronger impression than trying to maximize your
contribution count over a few weeks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Be genuine about why you’re there.&lt;/strong&gt; From what I’ve seen, it’s fairly
easy for mentors and maintainers to tell the difference between someone
who’s actually excited about a project and someone who’s mainly
interested in the resume line. You can want both, a career boost and
genuine interest at the same time, but if the interest isn’t real, it
tends to show once the work gets less glamorous.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Don’t disappear if you’re not selected.&lt;/strong&gt; LFX mentorship slots are
limited, not getting selected doesn’t say anything about your ability.
If you were seriously contributing during the application period, you
already learned something real, keep using it. That doesn’t stop
mattering just because one specific mentorship round didn’t go your way.
You can keep contributing to the project on your own, and there’s always
a next round.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Don’t hesitate to ask.&lt;/strong&gt; Whether it’s a basic question about the
codebase, something you think might be obvious, or just wanting to
double check you’re on the right track, ask. I did this myself when I
first joined the project’s Slack, and no one made me feel bad about it.
Most maintainers would rather answer a simple question early than review
a PR that went in the wrong direction because you guessed instead of
asking.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;On using AI tools.&lt;/strong&gt; I do use AI tools regularly, but where and how
varies. For code, I use it sometimes, mostly for parts I already
understand well, where I’m confident I could write it myself but don’t
need to grind through it by hand to learn something new. Where I use it
a lot more is research and understanding things, I reach for an LLM over
Google search these days because it explains things faster than digging
through search results and docs myself.&lt;/p&gt;
&lt;p&gt;Wherever I use it, I double check everything it gives me. I review
answers against the actual source, and I review AI-assisted code
multiple times before submitting it.&lt;/p&gt;
&lt;p&gt;Reviewers are volunteering their time, so submitting unreviewed
AI-generated code doesn’t just leave a bad impression, it’s
disrespectful. Make sure you’re following whatever AI usage guidelines
the project you’re contributing to has. Also question AI-generated code
critically: ask why something was done a certain way, whether it’s
actually needed, read through the surrounding code, and check if
there’s a simpler solution.&lt;/p&gt;
&lt;p&gt;More generally, whether code comes from AI, Stack Overflow, or another
contributor, you’re the one submitting it. Make sure you understand it
well enough to explain every part of it during review.&lt;/p&gt;
&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing thoughts&lt;/h2&gt;
&lt;p&gt;This mentorship also convinced me I want to be on the other side of it.
I’ll be mentoring a project myself in the next LFX term, co-mentoring
with &lt;a href=&quot;https://github.com/txabman42&quot;&gt;Xabier Martinez&lt;/a&gt;. You can check out
the project &lt;a href=&quot;https://mentorship.lfx.linuxfoundation.org/project/3db981bf-404b-4c8e-96f8-b0433688e8cf&quot;&gt;here&lt;/a&gt;.
I’m looking forward to it, partly because I want to try being the kind
of mentor Kemal, Dario, and Albert have been for me. I’ll write more
about the mentorship itself once it wraps up, and separately about the
actual technical work I did on otelc.&lt;/p&gt;
&lt;h2 id=&quot;acknowledgements&quot;&gt;Acknowledgements&lt;/h2&gt;
&lt;p&gt;Thanks to my mentors, &lt;a href=&quot;https://github.com/kakkoyun&quot;&gt;Kemal Akkoyun&lt;/a&gt; and
&lt;a href=&quot;https://github.com/darccio&quot;&gt;Dario Castañé&lt;/a&gt;, for their guidance so far
during the mentorship. I’d also like to thank
&lt;a href=&quot;https://github.com/txabman42&quot;&gt;Xabier Martinez&lt;/a&gt;, who was one of the first
maintainers I interacted with on the project, along with everyone else in
the OpenTelemetry Go Compile Instrumentation community for the reviews,
discussions, and feedback along the way.&lt;/p&gt;</content:encoded><category>lfx</category><category>opentelemetry</category><category>open-source</category><category>mentorship</category></item><item><title>GSoC 2025: Expanding OSS-Fuzz Integration Across KDE Libraries (Final Update)</title><link>https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries-final-blog/</link><guid isPermaLink="true">https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries-final-blog/</guid><description>Final GSoC 2025 summary covering thumbnailer fuzzers, static CMake builds, local testing docs, and future KDE fuzzing plans.</description><pubDate>Sat, 30 Aug 2025 14:30:00 GMT</pubDate><content:encoded>&lt;p&gt;Hello everyone, this is going to be the final blog post of my GSoC 2025 project. In this post, I will summarize the progress made during the project and discuss the future plans for expanding OSS-Fuzz integration across KDE libraries.&lt;/p&gt;
&lt;h2 id=&quot;quick-recap-of-progress&quot;&gt;Quick Recap Of Progress&lt;/h2&gt;
&lt;p&gt;So far, I had integrated several KDE libraries into OSS-Fuzz, including KMime, KIO-Extras/thumbnail, and KFileMetaData (submitted for integration).&lt;/p&gt;
&lt;p&gt;I have also moved existing projects from OSS-Fuzz repository to KDE repositories.&lt;/p&gt;
&lt;h2 id=&quot;progress-after-midterm&quot;&gt;Progress After Midterm&lt;/h2&gt;
&lt;p&gt;After midterm, in the first half I focused on integrating new thumbnailers into OSS-Fuzz. I had already integrated KIO-Extras/thumbnail, and I continued with KDEGraphics-Thumbnailers, KDESDK-Thumbnailers, and FFMpeg-Thumbs.&lt;/p&gt;
&lt;p&gt;After that, I mostly worked on improving the existing integration, i.e, testing the fuzzers and fixing any issues, moving to CMake based setup instead of manual compilation of the fuzzers and adding documentation for local testing of the fuzzers.&lt;/p&gt;
&lt;p&gt;The CMake setup allowed for easier maintenance however, it wasn’t as simple as it may seem. Since OSS-Fuzz recommends using static builds, many of the libraries didn’t link to their transitive dependencies correctly for static builds. This required changes to those libraries (.pc files, .cmake files, etc) for proper static linking.&lt;/p&gt;
&lt;p&gt;The existing setup also lacked documentation for local testing of the fuzzers. I have added documentation for almost all of the fuzzers. This will be helpful for developers to integrate new fuzzers (such as new thumbnailers or KFileMetaData extractors).&lt;/p&gt;
&lt;h2 id=&quot;future-plans&quot;&gt;Future Plans&lt;/h2&gt;
&lt;p&gt;With the initial setup of thumbnailers and KFileMetaData, it is easy to integrate new thumbnailers and KFileMetaData extractors. Currently there are a few more thumbnailers that could be integrated into OSS-Fuzz, I plan to work on integrating them soon as well, the list is here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/office/calligra/-/tree/master/extras/thumbnail&quot;&gt;Calligra Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/pim/itinerary/-/tree/master/src/thumbnailer&quot;&gt;Itinerary Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/sdk/kde-dev-utils/-/blob/master/kuiviewer/quicreator.cpp&quot;&gt;Qui Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/multimedia/kdenlive/-/tree/master/thumbnailer&quot;&gt;MLT Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/network/konqueror/-/tree/master/plugins/webarchiver/thumbnailer&quot;&gt;WebArchive Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/games/palapeli/-/tree/master/mime&quot;&gt;Pala Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/plasma/plasma-workspace/-/tree/master/kcms/kfontinst/thumbnail&quot;&gt;Font Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;links&quot;&gt;Links&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Intro Blog post: &lt;a href=&quot;https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries/&quot;&gt;amazingakai.github.io/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Midterm Blog post: &lt;a href=&quot;https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries-midterm-blog/&quot;&gt;amazingakai.github.io/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries-midterm-blog&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;thank-you&quot;&gt;Thank You&lt;/h2&gt;
&lt;p&gt;I would like to thank my mentor, Albert Astals Cid, and the KDE community for their guidance throughout this project. Their feedback was helpful in successfully expanding OSS-Fuzz integration across KDE libraries.&lt;/p&gt;</content:encoded><category>gsoc</category><category>kde</category><category>oss-fuzz</category></item><item><title>GSoC 2025: Expanding OSS-Fuzz Integration Across KDE Libraries (Midterm Update)</title><link>https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries-midterm-blog/</link><guid isPermaLink="true">https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries-midterm-blog/</guid><description>Midterm progress on migrating KDE fuzz targets and adding OSS-Fuzz integration for KArchive, KMime, KDE Thumbnailers, and KFileMetaData.</description><pubDate>Wed, 23 Jul 2025 14:30:00 GMT</pubDate><content:encoded>&lt;p&gt;Hello everyone! Midterm evaluations are here, and I wanted to share an update on my GSoC project. Here’s what I’ve accomplished so far:&lt;/p&gt;
&lt;h2 id=&quot;progress-so-far&quot;&gt;Progress So Far&lt;/h2&gt;
&lt;h3 id=&quot;migration-of-existing-fuzz-targets&quot;&gt;Migration of Existing Fuzz Targets&lt;/h3&gt;
&lt;p&gt;The first step was migrating the existing build scripts and fuzz targets from the OSS-Fuzz repository into the respective KDE repositories. Maintaining them within the OSS-Fuzz repo added a bit of friction when making changes. Having them in KDE repos makes it easier to maintain and update them.&lt;/p&gt;
&lt;h3 id=&quot;karchive-fuzzer&quot;&gt;KArchive Fuzzer&lt;/h3&gt;
&lt;p&gt;Then I worked on &lt;strong&gt;KArchive&lt;/strong&gt; fuzzer doing mainly two changes: First was to split the fuzzer into separate targets for each archive format (like zip, tar, 7z, etc.) to improve coverage. Second was to add libFuzzer dictionary files to guide the fuzzing process better. Here is an image showing the coverage after these changes:&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;KArchive Fuzzer&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1000&quot; height=&quot;815&quot; src=&quot;https://azharmomin.dev/_astro/gsoc-2025-oss-fuzz-karchive-fuzzer.8ulwKa5x_Z1SE9pW.webp&quot;&gt;&lt;/p&gt;
&lt;p&gt;This coverage was tested using a local corpus and it is pretty solid for just fuzzing the “reading” part. The coverage will increase on OSS-Fuzz by time as the corpus keeps growing. Splitting the fuzzer into multiple targets allows the fuzzer to focus on specific archive formats, which keeps the corpus size smaller and more efficient.&lt;/p&gt;
&lt;h3 id=&quot;kmime-fuzzer&quot;&gt;KMime Fuzzer&lt;/h3&gt;
&lt;p&gt;After that, I focused on &lt;strong&gt;KMime&lt;/strong&gt;. I created a fuzz target for it, which focused on the just the MIME parsing functionality. The parsing part of KMime is critical as it handles untrusted input, such as, from emails (in KMail).&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;KMime Fuzzer&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1000&quot; height=&quot;754&quot; src=&quot;https://azharmomin.dev/_astro/gsoc-2025-oss-fuzz-kmime-fuzzer.BZjfye_h_14sn0V.webp&quot;&gt;&lt;/p&gt;
&lt;p&gt;For KMime, I also added a libFuzzer-style dictionary file to help guide the fuzzing process. This helps the fuzzer generate more meaningful inputs, which can improve coverage and help the fuzzer reach deeper code paths.&lt;/p&gt;
&lt;h3 id=&quot;kde-thumbnailers-fuzzer&quot;&gt;KDE Thumbnailers Fuzzer&lt;/h3&gt;
&lt;p&gt;After KMime, I moved on to &lt;strong&gt;KDE Thumbnailers&lt;/strong&gt;. I created a fuzzer for the thumbnailers that are used in KDE applications to generate previews of files. This is important as it handles untrusted input from various file formats, such as images, documents, etc. KDE has a lot of thumbnailers, I started with the thumbnailers in &lt;strong&gt;KIO-Extras&lt;/strong&gt; repository, which includes thumbnailers for various file formats like images, videos, documents, etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;KDE Thumbnailers&lt;/strong&gt; were tricky to fuzz because they aren’t standalone. They depend on KIO and KIOGui, which are pretty heavy and pull in a bunch of dependencies not required for thumbnailing. Building the full KIO stack inside OSS-Fuzz would have made the build process slow and complicated.&lt;/p&gt;
&lt;p&gt;To avoid that, I wrote a custom build script that compiles just the thumbnailer source files and their direct dependencies. That keeps the fuzzers lightweight and focused only on the thumbnailing functionality.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;KDE Thumbnailers Fuzzer&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1000&quot; height=&quot;387&quot; src=&quot;https://azharmomin.dev/_astro/gsoc-2025-oss-fuzz-kde-thumbnailers-fuzzer.Dclogc1L_1jj3Kh.webp&quot;&gt;&lt;/p&gt;
&lt;p&gt;For these thumbnailers, I also created a dictionary file for each thumbnailer separately for the same reason as KMime.&lt;/p&gt;
&lt;h3 id=&quot;kfilemetadata-fuzzer&quot;&gt;KFileMetaData Fuzzer&lt;/h3&gt;
&lt;p&gt;At last, I worked on &lt;strong&gt;KFileMetaData&lt;/strong&gt;. This library is used to extract metadata from files, such as images, videos, documents, etc. Same as KDE Thumbnailers, it handles untrusted input from various file formats, so fuzzing it is important to ensure it can handle malformed or unexpected data gracefully.&lt;/p&gt;
&lt;p&gt;Initially, I made a single fuzzer that used Qt plugin system to load metadata extractors and ran the extractors based on content mimetype. However, this required using dynamic libraries which is not great for OSS-Fuzz integration. So I split the fuzzer into multiple targets, one for each extractor, and compiled them statically. This way, each fuzzer is focused on a specific extractor and doesn’t depend on dynamic linking.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;KFileMetaData Fuzzer&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1000&quot; height=&quot;388&quot; src=&quot;https://azharmomin.dev/_astro/gsoc-2025-oss-fuzz-kfilemetadata-fuzzer.B97pfm5-_bsmIp.webp&quot;&gt;&lt;/p&gt;
&lt;p&gt;The thumbnailers and kfilemetadata currently have the highest coverage among all the fuzzers I’ve created so far, which is great! The coverage will improve and reach closer to 100% for them as the corpus grows on OSS-Fuzz.&lt;/p&gt;
&lt;h2 id=&quot;whats-next&quot;&gt;What’s Next&lt;/h2&gt;
&lt;p&gt;There are still many more libraries that could benefit from OSS-Fuzz integration. Here are some that I plan to work on next:&lt;/p&gt;
&lt;h3 id=&quot;more-thumbnailers&quot;&gt;More Thumbnailers&lt;/h3&gt;
&lt;p&gt;KDE maintains a large number of thumbnailer plugins, and I intend to integrate as many of them as possible. The next ones on my list (provided by Albert Astals Cid) include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/office/calligra/-/tree/master/extras/thumbnail&quot;&gt;Calligra Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/pim/itinerary/-/tree/master/src/thumbnailer&quot;&gt;Itinerary Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/sdk/kde-dev-utils/-/blob/master/kuiviewer/quicreator.cpp&quot;&gt;Qui Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/graphics/kdegraphics-thumbnailers&quot;&gt;KDE Graphics Thumbnailers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/multimedia/kdenlive/-/tree/master/thumbnailer&quot;&gt;MLT Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/sdk/kdesdk-thumbnailers&quot;&gt;KDE SDK Thumbnailers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/network/konqueror/-/tree/master/plugins/webarchiver/thumbnailer&quot;&gt;WebArchive Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/games/palapeli/-/tree/master/mime&quot;&gt;Pala Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://invent.kde.org/plasma/plasma-workspace/-/tree/master/kcms/kfontinst/thumbnail&quot;&gt;Font Thumbnailer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;okular-generators--qmobipocket&quot;&gt;Okular Generators &amp;#x26; QMobipocket&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://invent.kde.org/graphics/kdegraphics-mobipocket/&quot;&gt;QMobipocket&lt;/a&gt; is a library used by Okular for reading &lt;code&gt;.mobi&lt;/code&gt; files. It parses Mobipocket documents and could benefit from fuzzing to identify edge cases and potential vulnerabilities.&lt;/p&gt;
&lt;p&gt;Okular also includes several &lt;a href=&quot;https://invent.kde.org/graphics/okular/-/tree/master/generators&quot;&gt;generators&lt;/a&gt; responsible for rendering various document formats. While most rely on third-party libraries, a few include custom code that has not yet been fuzzed. These components may be susceptible to bugs triggered by malformed files.&lt;/p&gt;
&lt;p&gt;Fuzzing these generators is a bit tricky, since building the full Okular application and all its dependencies would slow down the build process and make its maintenance harder. To address this, I plan to build only the relevant generator source files and their minimal dependencies similar to the approach I used for KDE thumbnailers.&lt;/p&gt;
&lt;h3 id=&quot;kcontacts-vcard-parser&quot;&gt;KContacts (VCard Parser)&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://invent.kde.org/frameworks/kcontacts&quot;&gt;KContacts&lt;/a&gt; is a KDE framework for handling contact data. It includes a VCard parser that reads &lt;code&gt;.vcf&lt;/code&gt; files. Although the format is relatively simple, it supports multiple character encodings and codecs, making it an interesting candidate for fuzz testing.&lt;/p&gt;
&lt;h2 id=&quot;links&quot;&gt;Links&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Intro Blog post: &lt;a href=&quot;https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries/&quot;&gt;amazingakai.github.io/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That’s it for now. If you’re working on/know a KDE library that touches untrusted input and could benefit from fuzzing, please let me know! You can reach me on &lt;a href=&quot;https://matrix.to/#/@azharmomin:kde.org&quot;&gt;Matrix&lt;/a&gt; or &lt;a href=&quot;mailto:azhar.momin@kdemail.net&quot;&gt;Email&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>gsoc</category><category>kde</category><category>oss-fuzz</category></item><item><title>GSoC 2025: Expanding OSS-Fuzz Integration Across KDE Libraries</title><link>https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries/</link><guid isPermaLink="true">https://azharmomin.dev/posts/gsoc-2025-expanding-oss-fuzz-integration-across-kde-libraries/</guid><description>Integrating KDE libraries like KFileMetaData, KMime, and thumbnailers into Google&apos;s OSS-Fuzz during GSoC 2025.</description><pubDate>Tue, 13 May 2025 14:30:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Hello! I’m Azhar, a Computer Science student who loves OSS projects and contributing to KDE. This summer, I’m excited to be working on the &lt;a href=&quot;https://summerofcode.withgoogle.com/programs/2025/projects/HGa6a2Vn&quot;&gt;Google Summer of Code (GSoC) project&lt;/a&gt; at &lt;a href=&quot;https://community.kde.org&quot;&gt;KDE Community&lt;/a&gt; to integrate more KDE libraries into OSS-Fuzz.&lt;/p&gt;
&lt;p&gt;While KDE already has some libraries integrated into OSS-Fuzz, such as &lt;a href=&quot;https://invent.kde.org/frameworks/karchive&quot;&gt;KArchive&lt;/a&gt;, &lt;a href=&quot;https://invent.kde.org/frameworks/kimageformats&quot;&gt;KImageFormats&lt;/a&gt;, and &lt;a href=&quot;https://invent.kde.org/frameworks/kcodecs&quot;&gt;KCodecs&lt;/a&gt;, there are many more libraries that could benefit from this integration. The goal of this project is to expand the coverage of OSS-Fuzz across KDE libraries, making them more secure and reliable.&lt;/p&gt;
&lt;h2 id=&quot;what-is-oss-fuzz&quot;&gt;What is OSS-Fuzz?&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/google/oss-fuzz&quot;&gt;OSS-Fuzz&lt;/a&gt; is a SaaS by Google to automatically find bugs and vulnerabilities in open-source projects through fuzz testing. Fuzzing involves feeding random or unexpected data into a software to uncover vulnerabilities that might otherwise go unnoticed. OSS-Fuzz continuously runs fuzz tests on the integrated open-source projects, reporting any crashes or issues found. This helps maintainers identify and fix bugs quickly, improving the overall quality of the software.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As of May 2025, OSS-Fuzz has helped identify and fix over 13,000 vulnerabilities and 50,000 bugs across 1,000 projects.
&lt;em&gt;Source: &lt;a href=&quot;https://github.com/google/oss-fuzz?tab=readme-ov-file#trophies&quot;&gt;OSS-Fuzz GitHub repository&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img alt=&quot;Overview of OSS-Fuzz&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1838&quot; height=&quot;952&quot; src=&quot;https://azharmomin.dev/_astro/gsoc-2025-oss-fuzz-overview.n1UB1wyp_2a8nlu.webp&quot;&gt;
&lt;em&gt;Image from &lt;a href=&quot;https://github.com/google/oss-fuzz&quot;&gt;OSS-Fuzz GitHub repository&lt;/a&gt;, licensed under &lt;a href=&quot;https://www.apache.org/licenses/LICENSE-2.0&quot;&gt;Apache 2.0&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;project-goals&quot;&gt;Project Goals&lt;/h2&gt;
&lt;p&gt;The main goal of this project is to integrate more KDE libraries into OSS-Fuzz. This involves:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Identifying libraries&lt;/strong&gt;: Analyzing the existing KDE libraries and identifying those that would benefit from OSS-Fuzz integration.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Creating fuzz targets&lt;/strong&gt;: Writing fuzz targets for the identified libraries. A fuzz target is a specific function or API that will be tested with random data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Integrating with OSS-Fuzz&lt;/strong&gt;: Setting up the integration with OSS-Fuzz, including creating Dockerfile and a build script.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Testing and debugging&lt;/strong&gt;: Running the fuzz tests and debugging any issues that arise during the process.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The objective is to integrate as many as KDE libraries possible into OSS-Fuzz by the end of the GSoC period, thereby enhancing the overall security and reliability of KDE software.&lt;/p&gt;
&lt;h2 id=&quot;initial-libraries&quot;&gt;Initial Libraries&lt;/h2&gt;
&lt;p&gt;The following libraries have been identified for initial integration into OSS-Fuzz:&lt;/p&gt;
&lt;h3 id=&quot;kfilemetadata&quot;&gt;KFileMetaData&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://invent.kde.org/frameworks/kfilemetadata&quot;&gt;KFileMetaData&lt;/a&gt; is a library for reading and writing metadata in files. It supports various file formats, including images, audio, and video files. KFileMetaData is used by &lt;a href=&quot;https://invent.kde.org/frameworks/baloo&quot;&gt;Baloo&lt;/a&gt; for indexing purposes. This means that many files may be processed by KFileMetaData without the user’s knowledge, making it a critical library to fuzz.&lt;/p&gt;
&lt;h3 id=&quot;kmime&quot;&gt;KMime&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://invent.kde.org/frameworks/kmime&quot;&gt;KMime&lt;/a&gt; is a library to assist handling MIME data. It provides classes for parsing MIME messages. KMime is used by various KDE applications, including KMail. This again means that the library may process malformed or unexpected data without the user’s knowledge.&lt;/p&gt;
&lt;h3 id=&quot;kde-thumbnailers&quot;&gt;KDE-Thumbnailers&lt;/h3&gt;
&lt;p&gt;KDE has many thumbnailer libraries, such as &lt;a href=&quot;https://invent.kde.org/graphics/kdegraphics-thumbnailers&quot;&gt;KDE-Graphics-Thumbnailers&lt;/a&gt;. These libraries are used to generate thumbnails for various file formats, including images, videos, and documents. These thumbnailers are used by Dolphin/KIO to generate previews of files and can be exposed to untrusted data.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Integrating KDE libraries into OSS-Fuzz is an important step towards improving the security and reliability of KDE software. Expanding OSS-Fuzz coverage to more libraries will help KDE maintainers quickly identify and fix bugs before they become problems for users.&lt;/p&gt;</content:encoded><category>gsoc</category><category>kde</category><category>oss-fuzz</category></item></channel></rss>