Skip to content

Enhance boto3 instrumentation to capture HTTP headers in all four flavours#499

Merged
Ferenc- merged 12 commits into
masterfrom
enhance-boto3-instrumentation
Feb 7, 2024
Merged

Enhance boto3 instrumentation to capture HTTP headers in all four flavours#499
Ferenc- merged 12 commits into
masterfrom
enhance-boto3-instrumentation

Conversation

@GSVarsha

Copy link
Copy Markdown
Contributor

What

Enhance boto3 instrumentation to capture HTTP headers in all four flavours

Signed-off-by: Varsha GS varsha.gs@ibm.com

References

Why

According to our spec, tracers SHOULD capture all four flavours of HTTP headers.

Comment thread tests/clients/boto3/test_boto3_s3.py Outdated
Comment thread tests/clients/boto3/test_boto3_s3.py Outdated
Comment thread tests/clients/boto3/test_boto3_s3.py Outdated
Comment thread tests/clients/boto3/test_boto3_s3.py Outdated
Comment thread instana/instrumentation/boto3_inst.py Outdated

@Ferenc- Ferenc- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The request header extraction should either focus on headers that paricipate in the HTTP call, or should be omitted.

@GSVarsha GSVarsha requested a review from Ferenc- January 31, 2024 11:17
Comment thread tests/clients/boto3/test_boto3_s3.py Outdated
Comment thread instana/instrumentation/boto3_inst.py Outdated

@Ferenc- Ferenc- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we want pursue the extraction from request headers, then we should ensure that it works when the headers are added with event_system.register_first('before-sign.s3.CreateBucket', _add_header).

Comment thread tests/clients/boto3/test_boto3_s3.py Outdated

@Ferenc- Ferenc- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very well done! Hats off.

@GSVarsha GSVarsha marked this pull request as ready for review February 6, 2024 12:03
@GSVarsha GSVarsha closed this Feb 6, 2024
@GSVarsha GSVarsha reopened this Feb 6, 2024
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
…ssert statements

Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
@GSVarsha GSVarsha force-pushed the enhance-boto3-instrumentation branch from 89d519c to 06268d2 Compare February 6, 2024 12:29
@GSVarsha GSVarsha requested a review from Ferenc- February 6, 2024 12:49
Comment thread tests/clients/boto3/test_boto3_lambda.py Outdated
Comment thread instana/instrumentation/boto3_inst.py Outdated
Comment thread tests/clients/boto3/test_boto3_lambda.py
Comment thread tests/clients/boto3/test_boto3_lambda.py
Comment thread tests/clients/boto3/test_boto3_lambda.py
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
@Ferenc- Ferenc- merged commit fa2e561 into master Feb 7, 2024
@Ferenc- Ferenc- deleted the enhance-boto3-instrumentation branch February 7, 2024 10:39
@GSVarsha GSVarsha removed the WIP work in progress label Feb 7, 2024
@GSVarsha GSVarsha added this to the H1-2024 milestone Feb 27, 2024
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