Skip to content

[exporter/datadog] Error while validaing API key: i/o timeout in serverless #18238

@RangelReale

Description

@RangelReale

Component(s)

exporter/datadog

What happened?

Description

Error while validaing API key: i/o timeout in serverless

Steps to Reproduce

Collector initialization in lambda/cloudrun frequently have timeouts on initialization trying to validate the api key, this may take a lot of time and times out the function initialization.

Expected Result

Have an option for not doing this check on serverless environments. We can't depend on a external service responding on each function startup.

Actual Result

Collector version

0.64.0

Environment information

Environment

OS: Docker Distroless
Compiler(if manually compiled): go 1.17

OpenTelemetry Collector configuration

No response

Log output

023-02-01T01:27:36.162Z	warn	Error while validating API key	{"kind": "exporter", "data_type": "metrics", "name": "datadog", "error": "Get \"https://api.datadoghq.com/api/v1/validate\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexporter/datadogDatadog componentsneeds triageNew item requiring triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions