-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge zero-config-dev branch (#3791)
* [DNM] Zero-config C code to inject environment variables for Java and Node.js (#3514) * Remove sending a metric as part of auto-instrumentation (#3482) * refactor the code to inject allowed env vars * latest after pair programming * latest after review and pairing * only inject env vars for java and nodejs programs. Apply env vars from different files for java and nodejs * remove docker interactive and tty flags * wip * use arch var to set the name of the file to copy * make tests pass on arm64 * try to support arm * build for the proper platform * fix package build * review with Jason, test for env vars overrides * Make ALLOWED_ENV_VARS a single string defined through the preprocessor * Update instrumentation/tests/java/Dockerfile Co-authored-by: Jeff Cheng <83052155+jeffreyc-splunk@users.noreply.github.com> * load preload file same way as java test * move file locations to macros * use n functions to handle strings when possible --------- Co-authored-by: Jeff Cheng <83052155+jeffreyc-splunk@users.noreply.github.com> * Add systemd sample file to splunk-otel-auto-instrumention (#3506) * Add systemd sample file to splunk-otel-auto-instrumention * Update manual instructions * Include default /etc/splunk/zeroconfig_java.conf in deb/rpm packages * Update tests for new libsplunk.so * Run auto instrumentation workflow for the zero-config-dev branch * Include splunk-otel-js in auto instrumentation deb/rpm (#3540) * Add systemd sample file to splunk-otel-auto-instrumention * Update tests for new libsplunk.so * Include splunk-otel-js in auto instrumentation deb/rpm * Include default /etc/splunk/zeroconfig_node.conf in deb/rpm packages * Add tests for express instrumentation (#3566) * Update installer script for systemd auto instrumentation (#3536) * Rename zeroconfig config files (#3682) * Update ZC docs and tests for manual installation/configuration (#3700) * Update docs * Update splunk-otel-js to v2.4.2 * Combine sample systemd config files * Install splunk-otel-js globally for tests * Update deps installation for node tests * Update splunk-otel-js to v2.4.4 * Update linux-manual.md * Update test for centos/oraclelinux 7 arm64 --------- Co-authored-by: Anna U <104845867+aurbiztondo-splunk@users.noreply.github.com> * Update otlp endpoint for linux installer script (#3761) * Update otlp endpoint for linux installer script * remove 0.0.0.0 * Add debian bookworm for instrumentation tests * Update CHANGELOG.md --------- Co-authored-by: Antoine Toulme <antoine@lunar-ocean.com> Co-authored-by: Anna U <104845867+aurbiztondo-splunk@users.noreply.github.com>
- Loading branch information
1 parent
5258139
commit b6e72c1
Showing
81 changed files
with
2,254 additions
and
2,893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# NOTE: this script is meant to be run on the GitLab CI, it depends on GitLab CI variables | ||
# Based on https://github.com/signalfx/splunk-otel-java/blob/c9134906c84e9a32a974dec4b380453fe1757410/scripts/propagate-version.sh | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# shellcheck source-path=SCRIPTDIR | ||
source "${SCRIPT_DIR}/common.sh" | ||
|
||
ROOT_DIR="${SCRIPT_DIR}/../" | ||
cd "${ROOT_DIR}" | ||
|
||
create_collector_pr() { | ||
local repo="signalfx/splunk-otel-collector" | ||
local repo_url="https://srv-gh-o11y-gdi:${GITHUB_TOKEN}@github.com/${repo}.git" | ||
local branch="create-pull-request/update-nodejs-agent" | ||
local message="Update splunk-otel-js to latest" | ||
|
||
echo ">>> Cloning the $repo repository ..." | ||
git clone "$repo_url" collector-mirror | ||
cd collector-mirror | ||
|
||
setup_branch "$branch" "$repo_url" | ||
|
||
echo ">>> Getting latest splunk-otel-js release ..." | ||
tag="$( gh release view --repo "https://github.com/signalfx/splunk-otel-js" --json tagName --jq 'select(.isDraft|not and .isPrelease|not) | .tagName' )" | ||
if [[ -n "$tag" ]]; then | ||
echo ">>> Updating splunk-otel-js version to $tag ..." | ||
echo "$tag" > instrumentation/packaging/nodejs-agent-release.txt | ||
else | ||
echo "ERROR: Failed to get latest release tag from https://github.com/signalfx/splunk-otel-js !" >&2 | ||
exit 1 | ||
fi | ||
|
||
# Only create the PR if there are changes | ||
if ! git diff --exit-code >/dev/null 2>&1; then | ||
git commit -S -am "$message" | ||
git push -f "$repo_url" "$branch" | ||
echo ">>> Creating the PR ..." | ||
gh pr create \ | ||
--draft \ | ||
--repo "$repo" \ | ||
--title "$message" \ | ||
--body "$message" \ | ||
--base main \ | ||
--head "$branch" | ||
fi | ||
} | ||
|
||
setup_gpg | ||
import_gpg_secret_key "$GITHUB_BOT_GPG_KEY" | ||
setup_git | ||
create_collector_pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.