-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support environment variable interpolation (#180)
* fix: add missing typescript type packages for validation handler * chore: refactor validation API to allow transmitting sample env * chore: wire env from validation payload in validation handler Note: Michele today found out that globally redeclaring ProcessEnv has a few caveats to being absolutely awesome. * fix: JSON stringify validation payload in Next.js * fix: adjust empty config validation to new shape of gateway event * fix: update content-type of validation requests to application/json * fix: stringify request body in tests before sending * fix: handle base64 encoding of event payload * feat: adapt validation in OTelBin next.js app to changed lambda contract --------- Co-authored-by: Marcel Birkner <[email protected]> Co-authored-by: Ben Blackmore <[email protected]>
- Loading branch information
1 parent
e902eb9
commit b71a90f
Showing
10 changed files
with
187 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
36 changes: 36 additions & 0 deletions
36
packages/otelbin-validation/test/assets/config-env-interpolation.yaml
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,36 @@ | ||
# Learn more about the OpenTelemetry Collector via | ||
# https://opentelemetry.io/docs/collector/ | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
otlp: | ||
endpoint: ${OTLP_ENDPOINT} | ||
|
||
extensions: | ||
health_check: | ||
pprof: | ||
zpages: | ||
|
||
service: | ||
extensions: [health_check, pprof, zpages] | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [otlp] | ||
metrics: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [otlp] | ||
logs: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [otlp] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.