opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

Failure to export from collector to backend (GO Lambda Layer)

Open itaybaror opened this issue 2 years ago • 6 comments

I have been attempting to instrument lambdas using the docs on the ADOT website. I have successfully instrumented some python lambdas, where they send the data to the collector, and then exports the data to lightstep (my backend). However when i try to instrument in go, i do see the logs in cloudwatch (i configured the collector to send data to lightstep and to logs) but when it tries to export the data to lightstep (and i have tried other backends) i am usually greeted with some sort of grpc or timeout error, and i do not see the data in the backend.

I have attached pictures with the errors i receive. Keep in mind that with my working python implementation i am using the same collector config file.

Errors: Screen Shot 2022-07-25 at 10 04 16 AM

Screen Shot 2022-07-25 at 10 12 26 AM

My collector config file: Screen Shot 2022-07-25 at 10 11 41 AM

itaybaror avatar Jul 25 '22 15:07 itaybaror

I think the error log is pretty clear.

dialing dial tcp 35.222.202.121:443: i/o timeout 

Can you check the network configuration of your collector? For example login to the collector's container or machine, and run

ping 35.222.202.121

or

telnet 35.222.202.121 443

fatsheep9146 avatar Jul 26 '22 05:07 fatsheep9146

That is not always the error, not it is this: Screen Shot 2022-07-26 at 2 40 00 PM

itaybaror avatar Jul 26 '22 18:07 itaybaror

@carlosalberto @jmacd @tedsuo can you look into this?

@itaybaror can you confirm that this was not a transient error on the backend?

bogdandrutu avatar Jul 29 '22 17:07 bogdandrutu

For the record: the same issue in another project - https://github.com/aws-observability/aws-otel-lambda/issues/271#issuecomment-1195804948

jangaraj avatar Jul 29 '22 19:07 jangaraj

Are there any updates to this issue? I'm experiencing something similar where my lambda functions work fine with otel lambda layers (Java, Node.js, Python) but fails to export traces with the Go lambda layer

stephenhong avatar Sep 07 '22 16:09 stephenhong

@MrAlias any idea?

bogdandrutu avatar Sep 13 '22 00:09 bogdandrutu

Hmm, I'm not 100% sure what the issue is here.

The authentication issue seems relevant. I'm guessing either the network connection is being setup without TLS but the server expects this, or the Lightstep authentication token is somehow blocking the connection.

@MadVikingGod thoughts?

MrAlias avatar Sep 27 '22 15:09 MrAlias

@bogdandrutu definitely not an issue with the backend, tried with multiple. Also same configuration file works in python lambdas.

itaybaror avatar Sep 27 '22 18:09 itaybaror

@MadVikingGod @codeboten @paivagustavo any idea?

bogdandrutu avatar Dec 14 '22 22:12 bogdandrutu

@itaybaror can you reproduce this issue using the collector outside of the lambda layer? This could at least remove some of the moving pieces here.

codeboten avatar Jan 03 '23 17:01 codeboten

Closing as stale since this is 'waiting for author' and we have not heard back since January. Feel free to comment to reopen :)

mx-psi avatar Nov 24 '23 10:11 mx-psi