-
Notifications
You must be signed in to change notification settings - Fork 4
chore(instrumentation): set up instrumentation workspace #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3167c3a
chore(integrations): add standalone integration crate stubs
Dogbu-cyber 77f85fa
refactor(instrumentation): rename to instrumentation/, consolidate wo…
Dogbu-cyber 083a30e
chore(instrumentation): fix gitignore, add workspace deps, align pack…
Dogbu-cyber 00b1029
ci(aws): run integrations on al2023
Dogbu-cyber 9cd8f6e
ci(aws): drop pr trigger
Dogbu-cyber fe2ef0f
ci(aws): allow arm runner in actionlint
Dogbu-cyber 500c286
chore(instrumentation): add aws workspace lockfile
Dogbu-cyber a8a27bc
ci(instrumentation): add workspace fmt and clippy
Dogbu-cyber 44664b6
ci(instrumentation): fix shellcheck in clippy job
Dogbu-cyber 6e4c543
ci(lint): keep original trigger scope
Dogbu-cyber 7c42df0
ci(instrumentation): use supported clippy toolchains
Dogbu-cyber bb5f47f
address pr feedback
Dogbu-cyber 0f94e5a
chore(instrumentation): flatten workspace from instrumentation/aws/ t…
Dogbu-cyber 61cdac8
chore(ci): update workflows for flattened instrumentation/ workspace
Dogbu-cyber eb21f5d
chore(ci): simplify instrumentation lint to single workspace calls
Dogbu-cyber 7a6276e
fix(ci): use multi-line run block so shellcheck disable is recognized
Dogbu-cyber 83a19d2
chore(datadog-aws-lambda): use minimal stub description
Dogbu-cyber 7f48ce9
chore(instrumentation): regenerate Cargo.lock
Dogbu-cyber 68130fa
feat(datadog-opentelemetry): ungate set_trace_writer_synchronous_writ…
Dogbu-cyber 9fc7828
chore(instrumentation): set workspace version to 0.1.0
Dogbu-cyber e5e7dc7
Revert "feat(datadog-opentelemetry): ungate set_trace_writer_synchron…
Dogbu-cyber e0edfb7
chore(instrumentation): remove premature datadog-aws stub from workspace
Dogbu-cyber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 @@ | ||
| self-hosted-runner: | ||
| labels: | ||
| - ubuntu-24.04-arm |
This file contains hidden or 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 hidden or 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,92 @@ | ||
| name: Test (AWS integrations) | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| push: | ||
| paths: | ||
| - "instrumentation/**" | ||
| - "datadog-opentelemetry/**" | ||
| - ".github/workflows/test-aws-integrations.yaml" | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: instrumentation | ||
|
|
||
| jobs: | ||
| # Build the AWS workspace natively in Amazon Linux 2023 on both Lambda architectures | ||
| build: | ||
| name: "build ${{ matrix.target }} (AL2023)" | ||
| runs-on: ${{ matrix.runner }} | ||
| container: public.ecr.aws/amazonlinux/amazonlinux:2023 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - target: x86_64-unknown-linux-gnu | ||
| runner: ubuntu-24.04 | ||
| - target: aarch64-unknown-linux-gnu | ||
| runner: ubuntu-24.04-arm | ||
| steps: | ||
| - name: Install container dependencies | ||
| working-directory: / | ||
| run: dnf install -y ca-certificates cmake gcc gcc-c++ git gzip make perl tar xz zstd | ||
| - name: Checkout sources | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Cache | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| with: | ||
| path: | | ||
| ~/.cargo/git/db/ | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| instrumentation/target/ | ||
| key: v2-${{ runner.os }}-${{ runner.arch }}-aws-al2023-build-${{ matrix.target }}-${{ hashFiles('instrumentation/**/Cargo.toml', 'instrumentation/**/Cargo.lock') }} | ||
| restore-keys: v2-${{ runner.os }}-${{ runner.arch }}-aws-al2023-build-${{ matrix.target }}- | ||
| - name: Install Rust stable | ||
| run: | | ||
| curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable | ||
| echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | ||
| - name: Build --workspace | ||
| run: cargo build --workspace --locked | ||
|
|
||
| # Run unit and integration tests in Amazon Linux 2023 | ||
| test: | ||
| name: "test ${{ matrix.target }} (AL2023)" | ||
| runs-on: ${{ matrix.runner }} | ||
| container: public.ecr.aws/amazonlinux/amazonlinux:2023 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - target: x86_64-unknown-linux-gnu | ||
| runner: ubuntu-24.04 | ||
| - target: aarch64-unknown-linux-gnu | ||
| runner: ubuntu-24.04-arm | ||
| steps: | ||
| - name: Install container dependencies | ||
| working-directory: / | ||
| run: dnf install -y ca-certificates cmake gcc gcc-c++ git gzip make perl tar xz zstd | ||
| - name: Checkout sources | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Cache | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| with: | ||
| path: | | ||
| ~/.cargo/git/db/ | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| instrumentation/target/ | ||
| key: v2-${{ runner.os }}-${{ runner.arch }}-aws-al2023-test-${{ matrix.target }}-${{ hashFiles('instrumentation/**/Cargo.toml', 'instrumentation/**/Cargo.lock') }} | ||
| restore-keys: v2-${{ runner.os }}-${{ runner.arch }}-aws-al2023-test-${{ matrix.target }}- | ||
| - name: Install Rust stable | ||
| run: | | ||
| curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable | ||
| echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | ||
| - name: Run tests | ||
| run: cargo test --workspace --locked | ||
| env: | ||
| RUST_BACKTRACE: 1 |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /target | ||
| /.vscode | ||
| /datadog-opentelemetry/target | ||
| /instrumentation/**/target |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.