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

Add new IPC tags #1168

Merged
merged 13 commits into from
Feb 6, 2025
Merged

Add new IPC tags #1168

merged 13 commits into from
Feb 6, 2025

Conversation

ayangster
Copy link
Contributor

@ayangster ayangster commented Nov 11, 2024

Added new IPC tags as per the V2 spec:

  • ipc.source
  • ipc.method

Extended from #1155 with amendments.

@ayangster ayangster marked this pull request as ready for review November 12, 2024 22:50
@brharrington brharrington added this to the 1.8.3 milestone Nov 13, 2024
@brharrington brharrington modified the milestones: 1.8.3, backlog Jan 5, 2025
Copy link
Contributor

@brharrington brharrington left a 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) {
Copy link
Contributor

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)
Copy link
Contributor

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.

@brharrington brharrington merged commit 22d4fba into main Feb 6, 2025
1 check passed
@brharrington brharrington deleted the ayangster/new-ipc-tags branch February 6, 2025 23:33
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.

3 participants