Skip to content

Commit

Permalink
add 512mb of ram warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Oct 3, 2023
1 parent 6723f99 commit 16aee97
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 3 deletions.
73 changes: 71 additions & 2 deletions retype.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "3.0.3",
"created": "2023-09-14T11:15:56Z",
"version": "3.1.0",
"created": "2023-09-25T09:02:22Z",
"files": [
{
"path": ".nojekyll"
Expand All @@ -17,6 +17,15 @@
{
"path": "analysing-data/baselime-ai/index.html"
},
{
"path": "analysing-data/errors/index.html"
},
{
"path": "analysing-data/home/index.html"
},
{
"path": "analysing-data/overview/index.html"
},
{
"path": "analysing-data/queries/index.html"
},
Expand All @@ -41,6 +50,63 @@
{
"path": "assets/images/illustrations/analyzing-data/baselime-ai.png"
},
{
"path": "assets/images/illustrations/analyzing-data/errors/details.png"
},
{
"path": "assets/images/illustrations/analyzing-data/errors/errors.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/errors.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/events.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/inventory.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/request-logs.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/requests-filters.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/requests.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/summary.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/trace-logs.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/trace-timeline.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/trace.png"
},
{
"path": "assets/images/illustrations/analyzing-data/home/traces.png"
},
{
"path": "assets/images/illustrations/analyzing-data/overview/filter.png"
},
{
"path": "assets/images/illustrations/analyzing-data/overview/logs.png"
},
{
"path": "assets/images/illustrations/analyzing-data/overview/query.png"
},
{
"path": "assets/images/illustrations/analyzing-data/overview/search.png"
},
{
"path": "assets/images/illustrations/analyzing-data/overview/trace-timeline.png"
},
{
"path": "assets/images/illustrations/analyzing-data/overview/trace.png"
},
{
"path": "assets/images/illustrations/analyzing-data/service-list.png"
},
Expand Down Expand Up @@ -221,6 +287,9 @@
{
"path": "assets/images/logos/s3_flat3x.png"
},
{
"path": "assets/images/logos/vercel.png"
},
{
"path": "assets/templates/cf.yaml"
},
Expand Down
24 changes: 23 additions & 1 deletion sending-data/aws/lambda-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,28 @@ Where the `BASELIME_KEY` is your Baselime API Key and the
`BASELIME_LAMBDA_LAYER_ARN` is the ARN of the Baselime Layer in your region.

```javascript
`arn:aws:lambda:${region}:097948374213:layer:baselime-extension-${'x86_64' || 'arm64'}:1`
`arn:aws:lambda:${region}:097948374213:layer:baselime-extension-${'x86_64' || 'arm64'}:8`
```

## Configuration

Logs can be toggled on and off by changing the `BASELIME_SUPPRESS_EXTENSION_LOGS` environment variable. The default setup for our OpenTelemetry integration is to suppress logs.

To disable Cloudwatch logs you need to add an explicit deny iam policy that blocks the creation of log streams and log events for this function.

```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "*"
}
]
}
```

4 changes: 4 additions & 0 deletions sending-data/opentelemetry/aws-lambda/node.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ That's all you are all set with OpenTelemetry on Node.js AWS Lambda functions.
OpenTelemetry automatic instrumentation is available only once you have connected your AWS Account to Baselime. Adding the tag to AWS Lambda functions in an AWS Account not connected to Baselime will not have any effect.
!!!
!!!
It is recommended to have at least 512mb of ram configured. If your memory usage is lower you may see additional latency when sending traces to the extension
!!!
!!!
To remove the OpenTelemetry instrumentation from your AWS Lambda functions, remove the `baselime:tracing=true` tag from the function and Baselime will revert the function to un-instrumentate state.
!!!
Expand Down

0 comments on commit 16aee97

Please sign in to comment.