-
Couldn't load subscription status.
- Fork 223
Description
Hi,
I'll preface this by saying this is likely something I'm doing wrong, but basically the issue is I'm never able to receive traces from Lambda. If I don't use a collector, I see the metrics endpoint invoked from (presumably) the auto-instrumentation coming in via the open telemetry node layer. My lambda isn't even really code- it's just the default example Amazon provides:
export const handler = async (event, _context) => {
// TODO implement
const response = {
statusCode: 200,
body: JSON.stringify('Hello from Lambda!'),
};
return response;
};
And I've added the layers opentelemetry-nodejs-0_10_0 and opentelemetry-collector-amd64-0_11_0, as per the directions. I've setup only these two environment variables:
AWS_LAMBDA_EXEC_WRAPPER=/opt/otel-handler
OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/config.yaml
And then my config.yaml is configured as follows:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch:
decouple:
exporters:
otlphttp:
traces_endpoint: "http://<myipaddressandport>/v1/traces"
compression: none
debug:
verbosity: detailed
service:
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp, debug]
processors: [decouple]
(Yes I realize I'm not using batch, but I was trying it out at one point and it made no difference that I could tell)
I am not seeing anything from the collector coming in at all. As I mentioned, if I don't use the collector, I do see the v1/metrics endpoint get invoked, but never the v1/traces endpoint. I've tried many permutations of the above configuration but none of them seem to make any difference. I've spent several days trying out different things and nothing is working. I'm at a total loss at this point.
The local software running that receives the traces is functioning properly, because if I run a standard node auto-instrumented app I see the data coming in. I can confirm that I can get external traffic from the address and port that are open.
Any help or advice that can be provided would be appreciated. Thanks so much!