Commit 146af7e
authored
Use Application Signals wherever possible (#149)
In this commit, we are changing `appsignals`, `app_signals`,
`app_signals`, and `app signals` to `applicationsignals`,
`application_signals`, `application-signals`, and `application signals`
wherever possible. Callout `aws-application-signals-team` was created
here:
https://github.com/orgs/aws-observability/teams/aws-application-signals-team
and has correct permissions on this repo.
Remaining usages:
* `aws_opentelemetry_configurator.py` - we have to support both old and
new config names (e.g. `OTEL_AWS_APP_SIGNALS_ENABLED` and
`OTEL_AWS_APPLICATION_SIGNALS_ENABLED`)
* `application-signals-python-e2e-eks-test.yml`,
`application-signals-python-e2e-ec2-test.yml`,
`appsignals-python-e2e-eks-canary-test.yml`, and
`appsignals-python-e2e-ec2-canary-test.yml` - various reasons:
* We rely on `appsignals` referenced in other repos that need to be
updated first.
* We emit metrics containing `appsignals`, which we have alarms on -
changing is non-trivial.
* Workflow names and urls contain `appsignals` - changing would break
links (including runbooks).
* We are depending on github secrets that are named `appsignals`
```
> grep -ir 'app_sig' .
./aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py:APP_SIGNALS_ENABLED_CONFIG = "OTEL_AWS_APP_SIGNALS_ENABLED"
./aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py:APP_SIGNALS_EXPORTER_ENDPOINT_CONFIG = "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT"
./aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py: os.environ.get(APPLICATION_SIGNALS_ENABLED_CONFIG, os.environ.get(APP_SIGNALS_ENABLED_CONFIG, "false")).lower()
./aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py: os.environ.get(APP_SIGNALS_EXPORTER_ENDPOINT_CONFIG, "http://localhost:4315"),
./.github/workflows/application-signals-python-e2e-eks-test.yml: -var="python_app_image=${{ env.ACCOUNT_ID }}.dkr.ecr.${{ inputs.aws-region }}.amazonaws.com/${{ secrets.APP_SIGNALS_PYTHON_E2E_FE_SA_IMG }}" \
./.github/workflows/application-signals-python-e2e-eks-test.yml: -var="python_remote_app_image=${{ env.ACCOUNT_ID }}.dkr.ecr.${{ inputs.aws-region }}.amazonaws.com/${{ secrets.APP_SIGNALS_PYTHON_E2E_RE_SA_IMG }}" \
./.github/workflows/application-signals-python-e2e-eks-test.yml: -var="python_app_image=${{ env.ACCOUNT_ID }}.dkr.ecr.${{ inputs.aws-region }}.amazonaws.com/${{ secrets.APP_SIGNALS_PYTHON_E2E_FE_SA_IMG }}" \
./.github/workflows/application-signals-python-e2e-eks-test.yml: -var="python_remote_app_image=${{ env.ACCOUNT_ID }}.dkr.ecr.${{ inputs.aws-region }}.amazonaws.com/${{ secrets.APP_SIGNALS_PYTHON_E2E_RE_SA_IMG }}"
./.github/workflows/application-signals-python-e2e-eks-test.yml: -var="python_app_image=${{ env.ACCOUNT_ID }}.dkr.ecr.${{ inputs.aws-region }}.amazonaws.com/${{ secrets.APP_SIGNALS_PYTHON_E2E_FE_SA_IMG }}" \
./.github/workflows/application-signals-python-e2e-eks-test.yml: -var="python_remote_app_image=${{ env.ACCOUNT_ID }}.dkr.ecr.${{ inputs.aws-region }}.amazonaws.com/${{ secrets.APP_SIGNALS_PYTHON_E2E_RE_SA_IMG }}"
./.github/workflows/application-signals-python-e2e-ec2-test.yml: TEST_ACCOUNT: ${{ secrets.APP_SIGNALS_E2E_TEST_ACC }}
> grep -ir 'app sig' .
./.github/workflows/appsignals-python-e2e-ec2-canary-test.yml:name: App Signals Enablement - Python E2E EC2 Canary Testing
./.github/workflows/appsignals-python-e2e-eks-canary-test.yml:name: App Signals Enablement - Python E2E EKS Canary Testing
> grep -ir 'appsig' .
./.github/workflows/appsignals-python-e2e-ec2-canary-test.yml: caller-workflow-name: 'appsignals-python-e2e-ec2-canary-test'
./.github/workflows/appsignals-python-e2e-eks-canary-test.yml: caller-workflow-name: 'appsignals-python-e2e-eks-canary-test'
./.github/workflows/application-signals-python-e2e-eks-test.yml: METRIC_NAMESPACE: AppSignals
./.github/workflows/application-signals-python-e2e-eks-test.yml: LOG_GROUP_NAME: /aws/appsignals/eks
./.github/workflows/application-signals-python-e2e-eks-test.yml: command: "wget https://raw.githubusercontent.com/aws-observability/application-signals-demo/main/scripts/eks/appsignals/enable-app-signals.sh
./.github/workflows/application-signals-python-e2e-eks-test.yml: && wget https://raw.githubusercontent.com/aws-observability/application-signals-demo/main/scripts/eks/appsignals/clean-app-signals.sh"
./.github/workflows/application-signals-python-e2e-ec2-test.yml: METRIC_NAMESPACE: AppSignals
./.github/workflows/application-signals-python-e2e-ec2-test.yml: LOG_GROUP_NAME: /aws/appsignals/generic
> grep -ir 'app-sig' .
./.github/workflows/application-signals-python-e2e-eks-test.yml: command: "wget https://raw.githubusercontent.com/aws-observability/application-signals-demo/main/scripts/eks/appsignals/enable-app-signals.sh
./.github/workflows/application-signals-python-e2e-eks-test.yml: && wget https://raw.githubusercontent.com/aws-observability/application-signals-demo/main/scripts/eks/appsignals/clean-app-signals.sh"
./.github/workflows/application-signals-python-e2e-eks-test.yml: cleanup: "rm -f enable-app-signals.sh && rm -f clean-app-signals.sh"
./.github/workflows/application-signals-python-e2e-eks-test.yml: post-command: "chmod +x enable-app-signals.sh && chmod +x clean-app-signals.sh"
./.github/workflows/application-signals-python-e2e-eks-test.yml: sed -i "s#$delete_log_group##g" clean-app-signals.sh
./.github/workflows/application-signals-python-e2e-eks-test.yml: "${GITHUB_WORKSPACE}/enablement-script/enable-app-signals.sh \
./.github/workflows/application-signals-python-e2e-eks-test.yml: "${GITHUB_WORKSPACE}/enablement-script/clean-app-signals.sh \
./.github/workflows/application-signals-python-e2e-eks-test.yml: ${GITHUB_WORKSPACE}/enablement-script/clean-app-signals.sh \
./.github/workflows/application-signals-python-e2e-eks-test.yml: # Running clean-app-signal.sh removes the current cluster from the config. Update the cluster again for subsequent runs.
./.github/workflows/application-signals-python-e2e-eks-test.yml: ./clean-app-signals.sh \
```
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.1 parent 21b9d68 commit 146af7e
File tree
16 files changed
+100
-88
lines changed- .github
- workflows
- aws-opentelemetry-distro
- src/amazon/opentelemetry/distro
- tests/amazon/opentelemetry/distro
- contract-tests/tests/test/amazon
- base
- botocore
- django
- psycopg2
- requests
- utils
- performance-tests/src/test/java/io/opentelemetry/distros
- scripts
16 files changed
+100
-88
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
Lines changed: 35 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
78 | | - | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | | - | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
219 | | - | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
225 | | - | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
239 | | - | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | | - | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
257 | | - | |
258 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | | - | |
262 | | - | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
| |||
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
274 | | - | |
| 279 | + | |
275 | 280 | | |
276 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
277 | 285 | | |
278 | | - | |
| 286 | + | |
279 | 287 | | |
280 | 288 | | |
281 | 289 | | |
| |||
290 | 298 | | |
291 | 299 | | |
292 | 300 | | |
293 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
294 | 304 | | |
295 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
296 | 308 | | |
297 | | - | |
| 309 | + | |
aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_opentelementry_configurator.py
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
0 commit comments