Skip to content

Commit

Permalink
draft for serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
cbehera-newrelic committed Dec 23, 2024
1 parent 437092a commit 67a5fc3
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Based on the type of instrumentation, the following runtimes are supported.

<DocTiles>
<DocTile title="Install and configure Lambda monitoring" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/configure-serverless-aws-monitoring" >Get started with instrumentation and configuration for your Lambda functions. </DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own" >Learn how to use New Relic to monitor your AWS Lambda functions.</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/ui-data/understand-lambda-monitoring-ui/" >Learn how to use New Relic to monitor your AWS Lambda functions.</DocTile>

Check notice on line 143 in src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring.mdx#L143

[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.
Raw output
{"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring.mdx", "range": {"start": {"line": 143, "column": 170}}}, "severity": "INFO"}
</DocTiles>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,25 @@ Based on the requirement of your Lambda function, select one of the following in

<Tabs>
<TabsBar>
<TabsBarItem id="containerized-instrumentation">Containerized instrumentation</TabsBarItem>

<TabsBarItem id="layered-instrumentation">Layered instrumentation</TabsBarItem>
<TabsBarItem id="sdk-based-instrumentation">SDK based instrumentation</TabsBarItem>
<TabsBarItem id="containerized-instrumentation">Containerized instrumentation</TabsBarItem>
</TabsBar>

<TabsPages>
<TabsPageItem id="containerized-instrumentation">
Use this method if your Lambda function runs inside a container. Containers provide a consistent, isolated execution environment for your applications. New Relic provides a pre-built Docker image that includes the New Relic Lambda layer, the New Relic Lambda extension, and the New Relic agent. For more information, refer to [Containerized instrumentation](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/containerized-images/) documentation.

</TabsPageItem>

<TabsPageItem id="layered-instrumentation">
Use this method if your Lambda function is packaged as a Zip file and you can add layers. Layers are distribution mechanism for libraries, custom runtimes, and other dependencies. For more information, refer to [Layered instrumentation](/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own/) documentation.
</TabsPageItem>
<TabsPageItem id="sdk-based-instrumentation">
Use this method if your Lambda function can't use layers, ensuring quick deployment without the necessity to modify layers. For more information, refer to [SDK based instrumentation](/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/sdk-based-instrumentation/) documentation.
</TabsPageItem>
<TabsPageItem id="containerized-instrumentation">
Use this method if your Lambda function runs inside a container. Containers provide a consistent, isolated execution environment for your applications. New Relic provides a pre-built Docker image that includes the New Relic Lambda layer, the New Relic Lambda extension, and the New Relic agent. For more information, refer to [Containerized instrumentation](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/containerized-images/) documentation.

</TabsPageItem>

</TabsPages>
</Tabs>

Expand Down Expand Up @@ -131,7 +134,7 @@ You can also learn how to instrument distributed tracing into a non-trivial serv

<DocTiles>
<DocTile title="Compatibility and requirement" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring">Learn more about supported runtimes and prerequisites.</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own" >Learn how to use New Relic to monitor your AWS Lambda functions.</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/ui-data/understand-lambda-monitoring-ui/" >Learn how to use New Relic to monitor your AWS Lambda functions.</DocTile>

Check notice on line 137 in src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/configure-serverless-aws-monitoring.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/configure-serverless-aws-monitoring.mdx#L137

[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.
Raw output
{"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/configure-serverless-aws-monitoring.mdx", "range": {"start": {"line": 137, "column": 170}}}, "severity": "INFO"}
<DocTile title="Troubleshooting" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/troubleshooting" >Learn how to troubleshoot installation related issues.</DocTile>

</DocTiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Here's a guide to adding our pre-built layer to your code.

<DocTiles>
<DocTile title="Compatibility and requirement" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring">Learn more about supported runtimes and prerequisites</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own" >Learn how to use New Relic to monitor your AWS Lambda functions</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/ui-data/understand-lambda-monitoring-ui/" >Learn how to use New Relic to monitor your AWS Lambda functions</DocTile>

Check notice on line 208 in src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/containerized-images.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/containerized-images.mdx#L208

[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.
Raw output
{"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/containerized-images.mdx", "range": {"start": {"line": 208, "column": 170}}}, "severity": "INFO"}
<DocTile title="Troubleshooting" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/troubleshooting" >Learn how to troubleshoot installation related issues</DocTile>
</DocTiles>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ Based on your runtime, you can set the following environment variables to furthe
<td>`NEW_RELIC_USE_ESM`</td>
<td>`false`</td>
<td>`true`, `false`</td>
<td>**Required**:Enable ESM functions that use async/await and not callbacks by setting this to `true`</td>
<td>**Required**: Enable ESM functions that use async/await and not callbacks by setting this to `true`</td>
</tr>
<tr>
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Disable distributed tracing by setting this to `true`</td>
<td>Disable distributed tracing by setting this to `false`</td>
</tr>
<tr>
<td>`NEW_RELIC_NO_CONFIG_FILE`</td>
Expand Down Expand Up @@ -137,7 +137,7 @@ You can find more environment variables in our [Node.js configuration documentat
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Disable distributed tracing (Java excluded) by setting this to `false`</td>
<td>Disable distributed tracing by setting this to `false`</td>
</tr>
<tr>
<td>`NEW_RELIC_NO_CONFIG_FILE`</td>
Expand Down Expand Up @@ -227,7 +227,7 @@ You can find more environment variables in our [Python configuration documentati
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Enable distributed tracing by setting this to `false`</td>
<td>Disable distributed tracing by setting this to `false`</td>
</tr>
</tbody>
</table>
Expand All @@ -247,7 +247,7 @@ You can find more environment variables in our [Python configuration documentati
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Enable distributed tracing by setting this to `false`</td>
<td>Disable distributed tracing by setting this to `false`</td>
</tr>
</tbody>
</table>
Expand All @@ -267,32 +267,32 @@ You can find more environment variables in our [Python configuration documentati
<td>`CORECLR_ENABLE_PROFILING`</td>
<td>`0`</td>
<td>`0`, `1`</td>
<td>Enable profiling by setting this to `1`</td>
<td>**Required**: Enable profiling by setting this to `1`</td>
</tr>
<tr>
<td>`CORECLR_PROFILER`</td>
<td></td>
<td>`{36032161-FFC0-4B61-B559-F6C5D41BAE5A}`</td>
<td>Set this to `{36032161-FFC0-4B61-B559-F6C5D41BAE5A}` to enable the .NET agent</td>
<td>**Required**: Set this to `{36032161-FFC0-4B61-B559-F6C5D41BAE5A}` to enable the .NET agent</td>
</tr>
<tr>
<td>`CORECLR_NEWRELIC_HOME`</td>
<td></td>
<td>`/opt/lib/newrelic-dotnet-agent`</td>
<td>Set this to `/opt/lib/newrelic-dotnet-agent` to enable the .NET agent</td>
<td>**Required**: Set this to `/opt/lib/newrelic-dotnet-agent` to enable the .NET agent</td>
</tr>
<tr>
<td>`CORECLR_PROFILER_PATH`</td>
<td></td>
<td>`/opt/lib/newrelic-dotnet-agent/libNewRelicProfiler.so`</td>
<td>Set this to `/opt/lib/newrelic-dotnet-agent/libNewRelicProfiler.so` to enable the .NET agent</td>
<td>**Required**: Set this to `/opt/lib/newrelic-dotnet-agent/libNewRelicProfiler.so` to enable the .NET agent</td>
</tr>

<tr>
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Enable distributed tracing by setting this to `false`</td>
<td>Disable distributed tracing by setting this to `false`</td>
</tr>

<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,6 @@ Depending on your needs, you can choose to either bypass the extension and only

<DocTiles>
<DocTile title="Compatibility and requirement" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring">Learn more about supported runtimes and prerequisites</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own" >Learn how to use New Relic to monitor your AWS Lambda functions</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/ui-data/understand-lambda-monitoring-ui/" >Learn how to use New Relic to monitor your AWS Lambda functions</DocTile>

Check notice on line 262 in src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own.mdx#L262

[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.
Raw output
{"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own.mdx", "range": {"start": {"line": 262, "column": 170}}}, "severity": "INFO"}
<DocTile title="Troubleshooting" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/troubleshooting" >Learn how to troubleshoot installation related issues</DocTile>
</DocTiles>
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ If you use our [newrelic-lambda-extension](https://github.com/newrelic/newrelic-
<DocTiles>
<DocTile title="Compatibility and requirement" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/compatibility-requirement-lambda-monitoring">Learn more about supported runtimes and prerequisites</DocTile>
<DocTile title="Install and configure Lambda monitoring" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/configure-serverless-aws-monitoring" >Get started with instrumentation and configuration for your Lambda functions</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/instrument-your-own" >Learn how to use New Relic to monitor your AWS Lambda functions</DocTile>
<DocTile title="Data and UI" path="/docs/serverless-function-monitoring/aws-lambda-monitoring/ui-data/understand-lambda-monitoring-ui/" >Learn how to use New Relic to monitor your AWS Lambda functions</DocTile>

Check notice on line 48 in src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/introduction-lambda.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/introduction-lambda.mdx#L48

[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.
Raw output
{"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/introduction-lambda.mdx", "range": {"start": {"line": 48, "column": 170}}}, "severity": "INFO"}
</DocTiles>
Loading

0 comments on commit 67a5fc3

Please sign in to comment.