-
Notifications
You must be signed in to change notification settings - Fork 172
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
Add new IPC tags #1168
base: main
Are you sure you want to change the base?
Add new IPC tags #1168
Conversation
spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcMetric.java
Outdated
Show resolved
Hide resolved
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.
Should the IpcLogEntry be creating the api.{client,server}.call
metrics?
/** | ||
* Set the method used for this request. | ||
*/ | ||
public IpcLogEntry withMethod(String method) { |
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.
Do we need both a string and enum version? That tends to work against consistency. As one example the enum uses lower case values for method, but if setting it with a string using some thing like request.getMethod()
for some API it would often be upper cased. Ideally we would just have the enum and not allow arbitrary values.
@@ -899,6 +925,7 @@ public String toString() { | |||
.addField("protocol", protocol) | |||
.addField("uri", uri) | |||
.addField("path", path) | |||
.addField("method", method) |
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.
Source and method should also get updated in reset()
and perhaps populateMDC()
so it will be available for logs.
Added new IPC tags as per the V2 spec:
Extended from #1155 with amendments.