---
title: Troubleshoot Lambda function not showing as instrumented
source: https://docs.newrelic.com/docs/serverless-function-monitoring/aws-lambda-monitoring/troubleshooting/troubleshoot-not-instrumented-lambda-function
---

## Problem

You've instrumented your Lambda function but it is not showing as instrumented in the **Amazon Web Services -> Lambda functions** section of New Relic.

## Solution

You've linked both an [API polling](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/connect/connect-aws-new-relic-infrastructure-monitoring/) and [Metric Streams](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/connect/aws-metric-stream/) integration to your New Relic account manually in the UI.

In this scenario with two integrations for the same AWS account in one New Relic account, a race condition will occur when instrumented payloads are received from the instrumented Lambda function at the New Relic [cloud-collector endpoint](https://github.com/newrelic/newrelic-lambda-extension/blob/54ccfd44765feb4b3da77ae606323c18d9db7593/telemetry/client.go#L18-L19). The payload will be randomly assigned to one of the two integrations. If assigned to the integration not linked to your function entity, the payload will be dropped and the function will not show as instrumented. Only functions that have received at least one payload in the last 30 days to the `AwsLambdaInvocation` event will show as instrumented.

````sql
FROM AwsLambdaInvocation
SELECT count (*)
SINCE 30 days ago
WHERE entityGuid = 'ENTITY_GUID'
LIMIT 1
```

To prevent creating two integrations for the same AWS account, we recommend you use the `newrelic-lambda` CLI, as mentioned above, because it will detect an existing integration and use it.

If two integrations have already been created, choose one to keep and unlink the other by clicking <DNT>**Unlink this account**</DNT> at <DNT>**Infrastructure > AWS**</DNT> in New Relic.

<Callout variant="tip">
There are some [limitations to Metric Streams integrations](/docs/infrastructure/amazon-integrations/connect/aws-metric-stream/#integrations-not-replaced-streams) that should be considered before unlinking an API polling integration. There are also some [limitations to Infrastructure Dimensional metrics queries](/docs/query-your-data/nrql-new-relic-query-language/nrql-query-tutorials/query-infrastructure-dimensional-metrics-nrql/#known-limitations) which should be considered before fully committing to a Metric Streams integration.
</Callout>

export const _frontmatter = {"title":"Troubleshoot Lambda function not showing as instrumented","type":"troubleshooting","tags":["Serverless function monitoring","AWS Lambda monitoring","Troubleshooting"],"metaDescription":"Troubleshooting steps if data does not appear in your app for AWS Lambda.","freshnessValidatedDate":"never"}
````
