Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/gradle/java/com.amazonaws-aws-lam…
Browse files Browse the repository at this point in the history
…bda-java-events-3.11.3
  • Loading branch information
tylerbenson authored Nov 1, 2023
2 parents f1e14fb + 40bfb8c commit 800e1be
Show file tree
Hide file tree
Showing 35 changed files with 966 additions and 1,697 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

* @Aneurysm9 @codeboten @tsloughter @tylerbenson
* @open-telemetry/lambda-extension-approvers
10 changes: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ updates:
opentelemetry-deps-collector:
patterns:
- "*opentelemetry*"
- package-ecosystem: "gomod"
directory: "/collector/lambdacomponents"
schedule:
interval: "weekly"
groups:
opentelemetry-deps-lambdacomponents:
patterns:
- "*opentelemetry*"
- package-ecosystem: "gradle"
directory: "/java"
schedule:
Expand All @@ -35,7 +43,7 @@ updates:
- "@opentelemetry/*"
rebase-strategy: "auto"
- package-ecosystem: "pip"
directory: "/python/src/otel/otel_sdk"
directory: "/python/src/otel"
schedule:
interval: "weekly"
groups:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.20.7'
go-version: '^1.20.8'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand All @@ -34,10 +34,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.20.7'
go-version: '^1.20.8'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand All @@ -54,10 +54,10 @@ jobs:
matrix:
architecture: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.20.7'
go-version: '^1.20.8'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: corretto
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install shell check
run: sudo apt update && sudo apt install --assume-yes shellcheck
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
check-terraform-syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: terraform fmt -check -recursive
44 changes: 36 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,34 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'go', 'javascript', 'python', 'java' ]
# Targets of the codeql analysis
# Each entry is composed by two elements: the language and the directory
# containing source code for that language.
target:
- language: 'go'
directory: 'go'
- language: 'javascript'
directory: 'nodejs'
- language: 'python'
directory: 'python'
- language: 'java'
directory: 'java'
- language: 'csharp'
directory: 'dotnet'
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
languages: ${{ matrix.target.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand All @@ -65,7 +78,10 @@ jobs:
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: ${{ matrix.language != 'java' }}
with:
working-directory: ${{ matrix.target.directory }}
# There are no array literals in GHA that is why we need to use fromJson.
if: ${{ !contains(fromJson('["java", "csharp"]'), matrix.target.language) }}

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -82,16 +98,28 @@ jobs:
with:
distribution: corretto
java-version: '11'
if: ${{ matrix.language == 'java' }}
if: ${{ matrix.target.language == 'java' }}

- name: build Java
uses: gradle/gradle-build-action@v2
with:
arguments: build --no-build-cache
build-root-directory: java
if: ${{ matrix.language == 'java' }}
build-root-directory: ${{ matrix.target.directory }}
if: ${{ matrix.target.language == 'java' }}

- name: setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
if: ${{ matrix.target.language == 'csharp' }}

- name: build dotnet
# Build all dotnet applications from this directory
run: find . -name '*.sln' -exec dotnet build '{}' \;
working-directory: ${{ matrix.target.directory }}
if: ${{ matrix.target.language == 'csharp' }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
category: "/language:${{matrix.target.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/layer-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
with:
name: ${{ inputs.artifact-name }}

- uses: aws-actions/configure-aws-credentials@v3
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.PROD_LAMBDA_ROLE_ARN }}
role-duration-seconds: 1200
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout this repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python for OTel Python SDK
uses: actions/setup-python@v4
with:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Set up Go for ADOT Collector
uses: actions/setup-go@v4
with:
go-version: '^1.20.7'
go-version: '^1.20.8'
- name: Build Python Layer which includes ADOT Collector
working-directory: python/src
run: ./run.sh -b
4 changes: 2 additions & 2 deletions .github/workflows/release-layer-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
outputs:
COLLECTOR_VERSION: ${{ steps.save-collector-version.outputs.COLLECTOR_VERSION }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.20.7'
go-version: '^1.20.8'
- name: build
run: make -C collector package GOARCH=${{ matrix.architecture }}
- uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-layer-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
outputs:
JAVAAGENT_VERSION: ${{ steps.save-javaagent-version.outputs.JAVAAGENT_VERSION }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK for running Gradle
uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-layer-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
outputs:
NODEJS_VERSION: ${{ steps.save-node-sdk-version.outputs.SDK_VERSION}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-layer-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
outputs:
PYTHON_SDK_VERSION: ${{ steps.save-python-sdk-version.outputs.PYTHON_SDK_VERSION}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
Expand Down
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Some layers include the corresponding OTel language SDK for the Lambda. This all

## FAQ

* **What exporters/recievers/processors are included from the OpenTelemetry Collector?**
* **What exporters/receivers/processors are included from the OpenTelemetry Collector?**
> You can check out [the stripped-down collector's imports](https://github.com/open-telemetry/opentelemetry-lambda/blob/main/collector/lambdacomponents/default.go#L18) in this repository for a full list of currently included components.
* **Is the Lambda layer provided or do I need to build it and distribute it myself?**
> This repository does not provide pre-build Lambda layers. They must be built manually and saved in your AWS account. This repo has files to facilitate doing that. More information is provided in [the Collector folder's README](collector/README.md).
## Design Proposal

To get a better understanding of the proposed design for the OpenTelemetry Lamda extension, you can see the [Design Proposal here.](docs/design_proposal.md)
To get a better understanding of the proposed design for the OpenTelemetry Lambda extension, you can see the [Design Proposal here.](docs/design_proposal.md)

## Features

Expand Down Expand Up @@ -97,3 +97,30 @@ The following are runtimes which are no longer or not yet supported by this repo
[2]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/faas.md#incoming-invocations
[3]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/faas.md#outgoing-invocations
[4]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/faas-metrics.md#faas-invocations

## Contributing

See the [Contributing Guide](CONTRIBUTING.md) for details.

Here is a list of community roles with current and previous members:

- Approvers ([@open-telemetry/lambda-extension-approvers](https://github.com/orgs/open-telemetry/teams/lambda-extension-approvers)):

- [Tristan Sloughter](https://github.com/tsloughter), Splunk

- Emeritus Approvers:

- [Lei Wang](https://github.com/wangzlei), AWS
- [Nathaniel Ruiz Nowell](https://github.com/NathanielRN), AWS

- Maintainers ([@open-telemetry/lambda-extension-maintainers](https://github.com/orgs/open-telemetry/teams/lambda-extension-maintainers)):

- [Raphael Philipe Mendes da Silva](https://github.com/rapphil), AWS
- [Tyler Benson](https://github.com/tylerbenson), Lightstep

- Emeritus Maintainers:

- [Alex Boten](https://github.com/codeboten), Lightstep
- [Anthony Mirabella](https://github.com/Aneurysm9), AWS

Learn more about roles in the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md).
2 changes: 1 addition & 1 deletion collector/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.83.0
v0.84.0
Loading

0 comments on commit 800e1be

Please sign in to comment.