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

Enable customization of default dimensions and properties #54

Open
Dunedan opened this issue Aug 28, 2020 · 0 comments
Open

Enable customization of default dimensions and properties #54

Dunedan opened this issue Aug 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Dunedan
Copy link
Contributor

Dunedan commented Aug 28, 2020

Log records by default already contain several dimensions ("LogGroup", "ServiceName"and "ServiceType") and properties (in case of the AWS Lambda environment "executionEnvironment", "memorySize", "functionVersion", "logStreamId" and "traceId"). While I believe that these dimensions and properties are great defaults, they make resulting log records already pretty large. Especially for applications which log many metrics, resulting in a huge number of log records, that might result in higher than necessary cost for CloudWatch Logs, if these dimensions and properties aren't valued.

While it's currently possible to use MetricsLogger().set_dimensions() to remove the default dimensions on a per-scope basis, I haven't found a similar way for properties. Also the need to replace the defaults per metrics scope is pretty repetitive, so I'd prefer a global option to customize the default dimensions and properties instead.

@jaredcnance jaredcnance added the enhancement New feature or request label Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants