Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTel Lambda Error: failed to force a flush #1550

Open
droger88 opened this issue Oct 8, 2024 · 0 comments
Open

OTel Lambda Error: failed to force a flush #1550

droger88 opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@droger88
Copy link

droger88 commented Oct 8, 2024

Describe the bug
We are using lambda golang with provided.al2 runtime. The collector starts without any problem however getting following error when collector tries to flush.

OTel Lambda Error: failed to force a flush, lambda may freeze before instrumentation exported:  traces export: context deadline exceeded: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"

We are trying to send the data to newrelic, the errors seem to complain about the tls connection, not sure if this is something wrong the collector configuration or from the newrelic perspective.

Steps to reproduce
Collector configuration

receivers:
  otlp:
    protocols:
      grpc:
        # endpoint: 'http://localhost:4317'
      http:
        # endpoint: 'http://localhost:4318'

exporters:
  debug:
    verbosity: detailed
  otlphttp:
    endpoint: ${NEW_RELIC_OPENTELEMETRY_ENDPOINT}
    headers:
      api-key: ${NEW_RELIC_LICENSE_KEY}
service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [debug, otlphttp]
    metrics:
      receivers: [otlp]
      exporters: [debug, otlphttp]
    # logs:
    #   receivers: [otlp]
    #   exporters: [otlp]

What did you expect to see?
Metrics are successfully sent to newrelic

What did you see instead?
collector seems timeout when sending data to exporter

What version of collector/language SDK version did you use?
Layer version:arn:aws:lambda:ca-central-1:184161586896:layer:opentelemetry-collector-amd64-0_11_0:1

What language layer did you use?
amd64

@droger88 droger88 added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant