-
Notifications
You must be signed in to change notification settings - Fork 387
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
Revert Enhanced metrics changes #687
Conversation
What's the reason for this revert @RaphaelAllier ? |
@magnetikonline Updated PR description to explain the change |
Thanks @RaphaelAllier for that. That does clear things up - but the fact still remains, until
Does this apply only to Python Lambda functions? All in all, a little confused now - I might have to deploy one of these new releases and see how our metrics look. |
Infact - you've gone backwards now @RaphaelAllier 😄 aws-dd-forwarder-3.77.0...aws-dd-forwarder-3.83.0 So now:
So you've introduced a bug again? |
Yes, I've gone backward to try and address the issue. |
@magnetikonline I'm the person calling out for the revert and the original contributor to the forwarder. The missed historical context here is that The recent changes (to be reverted) was overloading this env var's behavior to also control whether to generate enhanced metrics from logs for other lambda functions. As @RaphaelAllier already mentioned, the original behavior was a bit confusing, but it had no real customer impact (the generated metrics are free of charge). One alternative solution I can think of is to define a new env var say That said, I don't see a perfect solution here, and reverting to the original behavior (no real issue for anyone since day 1) is probably the safest action. @RaphaelAllier if you don't mind, perhaps you could help add a comment to explain this next to
|
Hey @RaphaelAllier / @tianchu - thanks so much for the detailed responses. That now all finally clicks as to they why and where 👍
Makes perfect sense - and 100% agree - so The function
yeah being purely selfish - having the log forwarder generating enhanced metrics isn't something I would need/use. agreed. All understood - thanks again for the clarification! 👍 |
We've been asked to revert the changes made to
DD_ENHANCED_METRICS
for a few reasons.Automatically generated enhanced metrics may be confusing but they are free of charge (since metrics starts with
aws.
, then don't count towards metric billing)People only get billed for Datadog Serverless by
aws.lambda.enhanced.invocations
metric, which isn't generated by the forwarder (it's generated by our datadog-lambda library when a function gets instrumented. This behavior isn't ideal, but it has no real customer impact (all free), and it's inevitable, because the forwarder has no way to know if the logs' origin lambda function is instrumented or not (aka, whether ppl expect the forwarder to generate enhanced metrics or not). That's why we landed in that slightly confusing, yet no harm behavior.The forwarder reuses datadog-lambda library (which would generate
aws.lambda.enhanced.invocations
) under the hood, therefore DD_ENHANCED_METRICS was originally default to false to prevent the forwarder from generatingaws.lambda.enhanced.invocations
for the forwarder itself.To avoid potential regressions we decided along w/ our Serverless team to revert to the original behavior