Skip to content

Add JAX-RS 2 client body capture#159

Merged
pavolloffay merged 9 commits intohypertrace:mainfrom
pavolloffay:jax-rs-client
Dec 9, 2020
Merged

Add JAX-RS 2 client body capture#159
pavolloffay merged 9 commits intohypertrace:mainfrom
pavolloffay:jax-rs-client

Conversation

@pavolloffay
Copy link
Copy Markdown
Member

Signed-off-by: Pavol Loffay p.loffay@gmail.com

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
.getAttributes()
.get(HypertraceSemanticAttributes.httpResponseHeader("test-response-header")));
Assertions.assertEquals(
"{key1=[value1], key2=[value2]}",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@davexroth this is the attribute value for the request body with URL encoded content type. Should it be captured in some other form e.g. foo=bar&baz=bar?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

changed to foo=bar&baz=bar that is supported by the platform.

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
return entity;
}

if (currentSpan.isRecording()) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@davexroth @buchi-busireddy

another example when client span is finished before the response entity is available. Related to hypertrace/hypertrace-ingester#81

@pavolloffay pavolloffay merged commit 935c770 into hypertrace:main Dec 9, 2020
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.

1 participant