Skip to content

Commit 8e4daa6

Browse files
authored
Merge branch 'aws-otel:main' into main
2 parents 6c5461c + f056ff0 commit 8e4daa6

File tree

188 files changed

+52189
-23892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+52189
-23892
lines changed

.github/CODEOWNERS

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
# https://help.github.com/articles/about-codeowners/
22

3-
* @alolita @anuraaga @mxiamxia
3+
* @aws-otel/webteam
4+
5+
src/docs/getting-started/collector @aws-otel/webteam
6+
src/docs/getting-started/container-insights @aws-otel/webteam @vijayansarathy
7+
src/docs/getting-started/dotnet-sdk @aws-otel/webteam @willarmiros @NathanielRN
8+
src/docs/getting-started/ecs-configurations @aws-otel/webteam @vasireddy99 @anuraaga
9+
src/docs/getting-started/go-sdk @aws-otel/webteam @Aneurysm9 @bryan-aguilar
10+
src/docs/getting-started/java-sdk @aws-otel/webteam @anuraaga
11+
src/docs/getting-started/js-sdk @aws-otel/webteam @willarmiros
12+
src/docs/getting-started/lambda @aws-otel/webteam @NathanielRN @vasireddy99 @willarmiros @wangzlei
13+
src/docs/getting-started/prometheus-remote-write-exporter @aws-otel/webteam @Aneurysm9 @erichsueh3
14+
src/docs/getting-started/python-sdk @aws-otel/webteam @NathanielRN
15+
src/docs/getting-started/ruby-sdk @aws-otel/webteam @anuraaga @NathanielRN

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License").
4+
# You may not use this file except in compliance with the License.
5+
# A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the "license" file accompanying this file. This file is distributed
10+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
# express or implied. See the License for the specific language governing
12+
# permissions and limitations under the License.
13+
14+
version: 2
15+
updates:
16+
- package-ecosystem: "npm"
17+
directory: '/'
18+
schedule:
19+
interval: "weekly"
20+
day: "sunday"
21+
labels:
22+
- "npm dependencies"
23+
rebase-strategy: "auto"
24+
- package-ecosystem: "github-actions"
25+
directory: '/'
26+
schedule:
27+
interval: "weekly"
28+
day: "sunday"
29+
labels:
30+
- "actions"

.github/workflows/codeql-analysis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License").
4+
# You may not use this file except in compliance with the License.
5+
# A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the "license" file accompanying this file. This file is distributed
10+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
# express or implied. See the License for the specific language governing
12+
# permissions and limitations under the License.
13+
14+
name: CodeQL Analysis
15+
16+
on:
17+
push:
18+
branches: [ main ]
19+
20+
concurrency:
21+
group: codeql-${{ github.ref_name }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
analyze:
26+
name: Analyze
27+
runs-on: ubuntu-latest
28+
permissions:
29+
actions: read
30+
contents: read
31+
security-events: write
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
language: [ 'javascript' ]
37+
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/[email protected]
41+
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v2
44+
with:
45+
languages: ${{ matrix.language }}
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@v2

.github/workflows/main.yml

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,72 @@
11
name: Gatsby Publish
22

3+
env:
4+
DELTA_THRESHOLD: .90
5+
36
on:
47
push:
58
branches:
69
- main
10+
711

812
jobs:
9-
build:
13+
publish-smoke-test:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v3.1.0
1317
- uses: enriikke/gatsby-gh-pages-action@v2
1418
env:
1519
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }}
1620
with:
1721
access-token: ${{ secrets.demo }}
18-
deploy-branch: gh-pages
19-
# gatsby-args: --prefix-paths
22+
deploy-branch: smoke-test
23+
verify-smoke-test:
24+
runs-on: ubuntu-latest
25+
needs: publish-smoke-test
26+
steps:
27+
- name: Checkout Smoke Test Branch
28+
uses: actions/[email protected]
29+
with:
30+
path: smoke-test
31+
ref: smoke-test
32+
- name: Calculate total lines in smoke-test branch
33+
run: |
34+
export ST_LC=$(find ./smoke-test -type f -print0 | wc -l --files0=- | tail -n 1 | cut -d ' ' -f 1)
35+
echo $ST_LC
36+
echo "SMOKE_TEST_LINE_COUNT=$ST_LC" >> $GITHUB_ENV
37+
- name: Checkout Published Branch
38+
uses: actions/[email protected]
39+
with:
40+
path: published
41+
ref: gh-pages
42+
- name: Calculate total lines in published branch
43+
run: |
44+
export PUB_LC=$(find ./published -type f -print0 | wc -l --files0=- | tail -n 1 | cut -d ' ' -f 1)
45+
echo $PUB_LC
46+
echo "PUBLISHED_LINE_COUNT=$PUB_LC" >> $GITHUB_ENV
47+
- name: Generate percentile diff
48+
run: |
49+
export PERCENTILE_DIFF=$(bc<<<"scale=2;${{ env.SMOKE_TEST_LINE_COUNT}} / ${{ env.PUBLISHED_LINE_COUNT }}")
50+
echo $PERCENTILE_DIFF
51+
if [ 1 -eq $(bc<<<"$PERCENTILE_DIFF < ${{ env.DELTA_THRESHOLD }}") ]; then
52+
exit 1
53+
else
54+
exit 0
55+
fi
56+
57+
publish-live:
58+
needs: verify-smoke-test
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/[email protected]
62+
with:
63+
ref: gh-pages
64+
- name: merge commit push
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.demo }}
67+
run: |
68+
git config --global user.name 'Gatsby Publish Workflow'
69+
git config --global user.email '[email protected]'
70+
git fetch --all
71+
git reset --hard origin/smoke-test
72+
git push -f origin gh-pages

.github/workflows/pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ jobs:
1616
- ubuntu-latest
1717
- windows-latest
1818
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-node@v2
19+
- uses: actions/checkout@v3.1.0
20+
- uses: actions/setup-node@v3
2121
with:
22-
node-version: '14'
22+
node-version: '16'
2323
check-latest: true
2424
- name: Get npm cache directory
2525
id: npm-cache-dir
2626
run: |
2727
echo "::set-output name=dir::$(npm config get cache)"
28-
- uses: actions/cache@v2
28+
- uses: actions/cache@v3
2929
id: npm-cache
3030
with:
3131
path: ${{ steps.npm-cache-dir.outputs.dir }}
@@ -38,7 +38,7 @@ jobs:
3838
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }}
3939
- name: Upload site as actions artifact
4040
if: ${{ runner.os == 'Linux' }}
41-
uses: actions/upload-artifact@v2
41+
uses: actions/upload-artifact@v3
4242
with:
4343
name: site
4444
path: public

.idea/FINAL_SITE.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ reported the issue. Please try to include as much information as you can. Detail
2323
## Contributing via Pull Requests
2424
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
2525

26-
1. You are working against the latest source on the *master* branch.
26+
1. You are working against the latest source on the *main* branch.
2727
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
2828
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
2929

DEV_GUIDE.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,41 @@
88
## Development Setup
99

1010
1. Clone this repository onto your local machine
11-
2. [Download and Set up Gatsby Environment](https://www.gatsbyjs.com/tutorial/part-zero/) Note: When using Gatsby, you will need downgrade your version of Node to 14 prior to installation of gatsby-cli. You can do this via `nvm use 14`.
11+
2. [Download and Set up Gatsby Environment](https://www.gatsbyjs.com/tutorial/part-zero/).
1212
3. Open up the project using your preferred code editor
1313
4. Install the required node modules for this project.
1414
```
1515
npm install
1616
```
17-
5. [Generate a GitHub Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token)
18-
6. Create a new file in the root called `.env.development` (See [Project Structure](#project-structure) for more information)
19-
7. In the `.env.development` file, add the following line:
17+
5. Disable GitHub API access (Used to fetch the list of contributors)
18+
Create a new file in the root called `.env.development` (See [Project Structure](#project-structure) for more information)
19+
Write the following line to it:
20+
```
21+
NO_GH_API_KEY=true
22+
```
23+
4. Start up the Gatsby site
24+
```
25+
npm start
26+
```
27+
5. Open http://localhost:8000 to check the site
28+
29+
**Obs**: The `NO_GH_API_KEY` environment variable can also be passed through command line. E.g.: `NO_GH_API_KEY=true npm run start`.
30+
31+
### Optional - Test the GitHub API integration
32+
33+
This step is optional and allows you to test that the list of contributors is being fetched from GitHub.
34+
35+
1. [Generate a GitHub Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token)
36+
2. Create a new file in the root called `.env.development` (See [Project Structure](#project-structure) for more information)
37+
3. In the `.env.development` file, add the following line:
2038
```
2139
GH_API_KEY=<INSERT YOUR ACCESS TOKEN>
2240
```
23-
8. Start up the Gatsby site
41+
4. Start up the Gatsby site
2442
```
2543
npm start
2644
```
27-
9. Open http://localhost:8000 to check the site
45+
5. Open http://localhost:8000 to check the site
2846
2947
## Making Changes to the Site
3048
@@ -80,6 +98,6 @@
8098
| `/src/assets` | Contains images and styling for the site |
8199
| `/src/components` | Contains the React Components used throughout the site |
82100
| `/src/config` | Defines routing for technical documentation pages and side navigation bar |
83-
| `/src/content` | Holds the site's static content using YAML format |
101+
| `/src/content` | Holds the site's static content using YAML format and blog pages under `/blogs` using mdx markdown |
84102
| `/src/docs` | Holds the technical documentation pages content using MDX markdown |
85103
| `/src/pages` | Files for each site page |

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ This code is licensed under the Apache 2.0 License.
3232
* [Filing an Issue](https://github.com/aws-observability/aws-otel-community/issues)
3333
* [Reporting a Bug](https://github.com/aws-observability/aws-otel-community/issues)
3434
* [Creating a new Pull Request](https://github.com/aws-otel/aws-otel.github.io/compare)
35-
* [AWS Distro for OpenTelemetry Project Repos](https://github.com/aws-observability)
36-
* [Join the Gitter Channel](https://gitter.im/aws-otel-distro/community)
35+
* [AWS Distro for OpenTelemetry Project Repos](https://github.com/aws-observability)

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Release Notes
2+
3+
### 2021-12-14 update
4+
5+
1. Upgraded the Nodejs version to 16.
6+
2. Upgraded Gatsby to v3.
7+
3. Updated the image names to be prefixed with adot.

0 commit comments

Comments
 (0)