Skip to content

added mechanism to set log group via env var - #273

Merged
willarmiros merged 2 commits into
aws:masterfrom
willarmiros:log-group-env
Apr 6, 2021
Merged

added mechanism to set log group via env var#273
willarmiros merged 2 commits into
aws:masterfrom
willarmiros:log-group-env

Conversation

@willarmiros

Copy link
Copy Markdown
Contributor

Description of changes:
Simple addition to allow customers to set a custom value for a log group via the AWS_LOG_GROUP environment variable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@willarmiros
willarmiros requested a review from anuraaga as a code owner April 6, 2021 06:18
logger.info("Recording log group " + logGroupFromEnv + " from environment variable.");
AWSLogReference logReference = new AWSLogReference();
logReference.setLogGroup(logGroupFromEnv);
Set<AWSLogReference> logReferences = new HashSet<>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think you can use something like Collections.singleton

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #273 (356b4f8) into master (d242a93) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #273      +/-   ##
============================================
+ Coverage     59.46%   59.52%   +0.06%     
- Complexity     1207     1210       +3     
============================================
  Files           131      131              
  Lines          5040     5048       +8     
  Branches        585      586       +1     
============================================
+ Hits           2997     3005       +8     
  Misses         1770     1770              
  Partials        273      273              
Impacted Files Coverage Δ Complexity Δ
...ava/com/amazonaws/xray/AWSXRayRecorderBuilder.java 69.82% <100.00%> (+2.23%) 30.00 <0.00> (+1.00)
...va/com/amazonaws/xray/entities/SubsegmentImpl.java 70.58% <0.00%> (-4.42%) 15.00% <0.00%> (ø%)
.../main/java/com/amazonaws/xray/AWSXRayRecorder.java 63.74% <0.00%> (+0.90%) 69.00% <0.00%> (+2.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d242a93...356b4f8. Read the comment docs.

@willarmiros
willarmiros merged commit 299510e into aws:master Apr 6, 2021
@willarmiros
willarmiros deleted the log-group-env branch April 6, 2021 16:01
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.63%. Comparing base (d242a93) to head (197d17b).
⚠️ Report is 108 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #273      +/-   ##
============================================
+ Coverage     59.46%   59.63%   +0.16%     
- Complexity     1207     1210       +3     
============================================
  Files           131      131              
  Lines          5040     5046       +6     
  Branches        585      586       +1     
============================================
+ Hits           2997     3009      +12     
+ Misses         1770     1764       -6     
  Partials        273      273              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

4 participants