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

added mechanism to set log group via env var #273

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

willarmiros
Copy link
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.

logger.info("Recording log group " + logGroupFromEnv + " from environment variable.");
AWSLogReference logReference = new AWSLogReference();
logReference.setLogGroup(logGroupFromEnv);
Set<AWSLogReference> logReferences = new HashSet<>();
Copy link
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

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
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.

None yet

3 participants