Skip to content

Commit 9212329

Browse files
authored
DRIVERS-2830 - Record both FaaS and container metadata when both are present (#1673)
1 parent c84488c commit 9212329

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/mongodb-handshake/handshake.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ is populated.
338338

339339
If no fields of `client.env.container` would be populated, `client.env.container` MUST be entirely omitted.
340340

341+
If the runtime environment has both FaaS and container information, both must have their metadata included in
342+
`client.env`.
343+
341344
### Speculative Authentication
342345

343346
- Since: 4.4
@@ -511,6 +514,16 @@ the following sets of environment variables:
511514
| -------------------- | ----- |
512515
| `AWS_EXECUTION_ENV` | `EC2` |
513516

517+
9. Valid container and FaaS provider. This test MUST verify that both the container metadata and the AWS Lambda metadata
518+
is present in `client.env`.
519+
520+
| Environment Variable | Value |
521+
| --------------------------------- | ------------------ |
522+
| `AWS_EXECUTION_ENV` | `AWS_Lambda_java8` |
523+
| `AWS_REGION` | `us-east-2` |
524+
| `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` | `1024` |
525+
| `KUBERNETES_SERVICE_HOST` | `1` |
526+
514527
## Motivation For Change
515528

516529
Being able to annotate individual connections with custom data will allow users and sysadmins to easily correlate events
@@ -593,6 +606,7 @@ support the `hello` command, the `helloOk: true` argument is ignored and the leg
593606

594607
## Changelog
595608

609+
- 2024-10-09: Clarify that FaaS and container metadata must both be populated when both are present.
596610
- 2024-08-16: Migrated from reStructuredText to Markdown.
597611
- 2019-11-13: Added section about supporting wrapping libraries
598612
- 2020-02-12: Added section about speculative authentication

0 commit comments

Comments
 (0)