Skip to content

Conversation

@marcingrzejszczak
Copy link
Contributor

without this change we've managed to successfully parse the request and create baggage entries, however they got then lost when new scopes were opened with this change we're using the native Brave mechanism for BaggageField creation however we're updating the existing BaggageFields values when using the BravePropagator

without this change we've managed to successfully parse the request and create baggage entries, however they got then lost when new scopes were opened
with this change we're using the native Brave mechanism for BaggageField creation however we're updating the existing BaggageFields values when using the BravePropagator
}

@Override
public boolean equals(Object o) {
Copy link

Choose a reason for hiding this comment

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

EqualsGetClass: Prefer instanceof to getClass when implementing Object#equals.


Suggested change
public boolean equals(Object o) {
if (!(o instanceof BraveBaggageFields)) {

ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

}

private void updateExistingBaggageFieldsWithUpdatedValues(TraceContextOrSamplingFlags extract) {
List<Object> extra = extract.context().extra();
Copy link

Choose a reason for hiding this comment

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

NULL_DEREFERENCE: object returned by extract.context() could be null and is dereferenced at line 69.


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@marcingrzejszczak marcingrzejszczak merged commit c140ff4 into main Sep 22, 2022
@marcingrzejszczak marcingrzejszczak deleted the fixesInvalidW3CBaggagePropagationWithBrave branch September 23, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants