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

false WARN messages after extension upgrade #393

Open
Vladikamira opened this issue Sep 12, 2024 · 5 comments
Open

false WARN messages after extension upgrade #393

Vladikamira opened this issue Sep 12, 2024 · 5 comments

Comments

@Vladikamira
Copy link

Hi, as I mentioned here after an upgrade the datadog lambda extension to version v64 we got weird messages popped up in the logs

2024-09-11 15:09:38 UTC | DD_EXTENSION | WARN | config key flare_stripped_keys is unknown
2024-09-11 15:09:38 UTC | DD_EXTENSION | WARN | failed to get configuration value for key "flare_stripped_keys": unable to cast <nil> of type <nil> to []string
2024-09-11 15:09:38 UTC | DD_EXTENSION | WARN | config key scrubber.additional_keys is unknown
2024-09-11 15:09:38 UTC | DD_EXTENSION | WARN | failed to get configuration value for key "scrubber.additional_keys": unable to cast <nil> of type <nil> to []string

we don't have any of these configurations configured, therefore I assume it's a bug

here is our config:

apm_config:
  enabled: true

site: datadoghq.eu

use_dogstatsd: false

cloud_provider_metadata:
  - "aws"

# https://docs.datadoghq.com/opentelemetry/otlp_ingest_in_the_agent/?tab=host
otlp_config:
  receiver:
    protocols:
      grpc:
        endpoint: 127.0.0.1:50052
  metrics:
    enabled: true
    resource_attributes_as_tags: true
    tag_cardinality: low
  traces:
    enabled: true
    span_name_remappings:
      go.opentelemetry.io_contrib_instrumentation_google.golang.org_grpc_otelgrpc.server: grpc.server
      go.opentelemetry.io_contrib_instrumentation_google.golang.org_grpc_otelgrpc.client: grpc.client
      go.opentelemetry.io_contrib_instrumentation_net_http_otelhttp.client: http.client
      go.opentelemetry.io_contrib_instrumentation_net_http_otelhttp.server: http.server
      observability_lambda.server: aws.lambda
      aws.lambda.internal: aws.lambda

logs_enabled: true
logs_config:
  processing_rules:
    - type: exclude_at_match
      name: exclude_start_and_end_logs
      pattern: (START|END|REPORT)\s

I did tried to add empty list to the config

scrubber:
  additional_keys: []

but it didn't solve the problem

@duncanista
Copy link
Contributor

Hey @Vladikamira,

Is this on v64? If so, could you try upgrading to v65?
If the problem persist, let me know!

@Vladikamira
Copy link
Author

v65 has the same issue
Screenshot 2024-09-13 at 10 54 00

@duncanista
Copy link
Contributor

Is it the only one? If so, does removing

I did tried to add empty list to the config

scrubber:
  additional_keys: []

This from your config file solves it?

@Vladikamira
Copy link
Author

no, nothing is solving these messages. Here is what I have on v64/v65

2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | config key fleet_policies_dir is unknown
2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | failed to get configuration value for key "scrubber.additional_keys": unable to cast <nil> of type <nil> to []string
2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | failed to get configuration value for key "flare_stripped_keys": unable to cast <nil> of type <nil> to []string
2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | failed to get configuration value for key "scrubber.additional_keys": unable to cast <nil> of type <nil> to []string
2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | config key scrubber.additional_keys is unknown
2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | failed to get configuration value for key "flare_stripped_keys": unable to cast <nil> of type <nil> to []string
2024-09-16 07:34:40 UTC | DD_EXTENSION | WARN | config key flare_stripped_keys is unknown

@duncanista
Copy link
Contributor

Thanks @Vladikamira will look more into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants