]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: otel: added span link support
authorMiroslav Zagorac <mzagorac@haproxy.com>
Thu, 26 Feb 2026 10:09:33 +0000 (11:09 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Apr 2026 07:23:26 +0000 (09:23 +0200)
commiteaa05d2af30a3d92cb8f59899b06e480106d409f
treedec686e04be85544dd924b70f5844e59fee2ff66
parentd8e69f07dc01915aac3cbd24658ef6e3baefa2a5
MINOR: otel: added span link support

Added span link support, allowing a span to reference other spans or
extracted contexts without establishing a parent relationship.

Introduced the flt_otel_conf_link structure and added a links list to
flt_otel_conf_span.  The parser accepted both an inline syntax on the span
declaration line ("span <name> link <target>") and a standalone multi-
argument form ("link <span> ..."), each creating a conf_link entry
appended to the span's link list.

At runtime, each configured link name was resolved against the active
spans and extracted contexts in the runtime context.  Resolved references
were collected into flt_otel_scope_data_link entries and passed to the C
wrapper add_link API during span creation.

Initialization, cleanup, and debug dump routines were added for the link
data structures at both configuration and runtime levels.
addons/otel/include/conf.h
addons/otel/include/conf_funcs.h
addons/otel/include/parser.h
addons/otel/include/scope.h
addons/otel/src/conf.c
addons/otel/src/event.c
addons/otel/src/parser.c
addons/otel/src/scope.c
addons/otel/test/sa/otel.cfg