-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: include agent info into polling #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, you can also remove
- the class
NotificationCallback
- the method
createStartNotification()
inNotificationFactory
.../src/main/java/rocks/inspectit/gepard/agent/configuration/http/HttpConfigurationFactory.java
Outdated
Show resolved
Hide resolved
.../src/main/java/rocks/inspectit/gepard/agent/configuration/http/HttpConfigurationFactory.java
Outdated
Show resolved
Hide resolved
...src/main/java/rocks/inspectit/gepard/agent/configuration/http/HttpConfigurationCallback.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
|
||
headers.forEach(requestBuilder::addHeader); | ||
agent | ||
.getAttributes() | ||
.forEach((key, value) -> requestBuilder.addHeader("X-Gepard-Attribute-" + key, value)); | ||
.forEach((key, value) -> requestBuilder.addHeader(X_GEPARD_ATTRIBUTE + key, value)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @EddeCCC, @binarycoded,
Quick note: I changed the headers to lower-case, since the apache http client automatically lowercases them, when sending.
According to the http-specs, header names are case-insensitive (https://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive). That might be the reason.
Long Story Short: On the the other side (config-server) you still need to check for lower-cased headers.
Was pretty painful to find that out while debugging.
No description provided.