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

Make the client compatible with AF 4.9. #27

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Make the client compatible with AF 4.9. #27

merged 2 commits into from
Oct 6, 2023

Conversation

gklijs
Copy link

@gklijs gklijs commented Oct 5, 2023

Make the client compatible with 4.9, and also make it configurable for when the spans were customized.
Most work is done by the SpanMatcher enum, which provides an abstraction to determine, based on the name of the span, if the span factory should do certain things. This makes it both compatible with framework version before 4.9 as well as versions from 4.9.
It also adds an createChildHandlerSpan overwrite to the span factory in order to properly handle the 4.9 default way of setting the spans in a streaming event processor.
It was tested with a gift card app, where all the messages show up. It might still miss things through.
It contains a few formatting changes, I'm not sure why through, as the EditorConfig plugin is enabled.

Copy link
Collaborator

@CodeDrivenMitch CodeDrivenMitch left a comment

Choose a reason for hiding this comment

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

One comment, but I am pre-approving.

We will need a troubleshooting section that includes this as tuning. We should integrate that into console web. I will make an issue.

@sonarcloud
Copy link

sonarcloud bot commented Oct 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 6 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@gklijs gklijs merged commit 1c438c5 into main Oct 6, 2023
5 of 6 checks passed
@gklijs gklijs deleted the 4_9_compatibel branch October 6, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants