Skip to content

Packaging OTEP 4793#239

Closed
mmanciop wants to merge 7 commits into
open-telemetry:mainfrom
mmanciop:main
Closed

Packaging OTEP 4793#239
mmanciop wants to merge 7 commits into
open-telemetry:mainfrom
mmanciop:main

Conversation

@mmanciop

@mmanciop mmanciop commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Implementing the packaging described in OTEP 4793

@mmanciop
mmanciop requested a review from a team as a code owner February 3, 2026 08:07
@mmanciop mmanciop mentioned this pull request Feb 3, 2026
Comment thread packaging/deb/common.sh
chmod 755 "${buildroot}${LIBOTELINJECT_INSTALL_PATH}"

# Install configuration
mkdir -p "${buildroot}${INJECTOR_CONFIG_DIR}"

@x1unix x1unix Feb 7, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can install be used here instead of cp, chmod and mkdir?

Correct me if I'm wrong

Suggested change
mkdir -p "${buildroot}${INJECTOR_CONFIG_DIR}"
mkdir -p "${buildroot}${INJECTOR_CONFIG_DIR}"
install -d -m 755 "${buildroot}${INJECTOR_CONFIG_DIR}/conf.d"
install -m 644 "$COMMON_DIR/injector/otelinject.conf" "${buildroot}${INJECTOR_CONFIG_DIR}/"
install -m 644 "$COMMON_DIR/injector/default_env.conf" "${buildroot}${INJECTOR_CONFIG_DIR}/"

@@ -0,0 +1,23 @@
#!/bin/sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we set -e in this script?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would not hurt. But in reality, the only actual commands, are in an if guard

Comment thread src/config.zig
/// Reads configuration drop-in files from the conf.d directory. Each installed language package
/// (e.g., opentelemetry-java-autoinstrumentation) places its configuration in this directory.
/// Files are read in alphabetical order; later files can override earlier ones.
fn readConfigurationDirectory(arena_allocator: std.mem.Allocator, configuration: *InjectorConfiguration) void {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll split to a separate PR to understand how we can land this directly

@mmanciop

Copy link
Copy Markdown
Contributor Author

@jnsgruk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants