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

fix(config): keep the lookup value as passed #4901

Closed
wants to merge 3 commits into from

Conversation

blemoine
Copy link
Contributor

The previous version was transforming the lookup
parameter to a string.

What does this PR do?

Prevent the erroneous transformation of lookup parameter into a string. It must be kept as a function

Motivation

The bug described in #4894 : nodejs throws an error if lookup is transformed into a string

Closes #4894

The previous version was transforming the lookup
parameter to a string.

Closes DataDog#4894
@blemoine blemoine requested a review from a team as a code owner November 18, 2024 13:54
@simon-id
Copy link
Member

Thank you for the contribution. I've shared this PR to the relevant people, hopefully it'll get some attention!

@blemoine
Copy link
Contributor Author

blemoine commented Feb 8, 2025

It doesn't seem to have any appetite to merge it because the v4 branch is too old. I'm closing this.

@blemoine blemoine closed this Feb 8, 2025
@tlhunter tlhunter reopened this Feb 11, 2025
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.09%. Comparing base (b8c03bd) to head (27e2772).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4901      +/-   ##
==========================================
+ Coverage   80.85%   81.09%   +0.23%     
==========================================
  Files         474      480       +6     
  Lines       21165    21438     +273     
==========================================
+ Hits        17114    17386     +272     
- Misses       4051     4052       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tlhunter
Copy link
Member

Remaking this PR in #5244 so CI runs

@tlhunter tlhunter closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lookup function throws The "options.lookup" property must be of type function. Received type string in 4.49.0
3 participants