ahmarsuhail opened a new pull request, #7723:
URL: https://github.com/apache/hadoop/pull/7723
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Relevant AAL PR: https://github.com/awslabs/analytics-accelerator-s3/pull/280
* S3A will pass in the span_id and operation_name when opening the stream
with AAL.
* AAL will attach these per request as executionAttributes.
* When the `modifyHttpRequest` executionInterceptor in the LoggingAuditor
called, these are now available in the `ExecutionAttributes` and can be used
for logging.
* Referrer header is updated by updating the spanId and operation in the
builder.
Example logs:
```
// FIRST HEAD
2025-06-04 16:04:16,414 [s3a-transfer-noaa-cors-pds-unbounded-pool5-t1]
DEBUG impl.LoggingAuditor (LoggingAuditor.java:modifyHttpRequest(429)) - [33]
ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009 Executing op_open with
{action_http_head_request 'raw/2023/017/ohfh/OHFH017d.23_.gz' size=0,
mutating=false};
https://audit.example.org/hadoop/1/op_open/ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009/?op=op_open&p1=raw/2023/017/ohfh/OHFH017d.23_.gz&pr=ahmarsu&ps=6d6c1b1f-5677-4ed6-9706-10b4d5bf8284&id=ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009&t0=33&fs=ad10d217-5092-4323-ba27-d24ca0e8a0f7&t1=33&ts=1749049456399
// FIRST GET
2025-06-04 16:04:18,335 [setup] DEBUG impl.LoggingAuditor
(LoggingAuditor.java:modifyHttpRequest(429)) - [15]
ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009 Executing op_open with
{action_http_get_request 'raw/2023/017/ohfh/OHFH017d.23_.gz' size=8388607,
mutating=false};
https://audit.example.org/hadoop/1/op_open/ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009/?op=op_open&p1=noaa-cors-pds&pr=ahmarsu&ps=6d6c1b1f-5677-4ed6-9706-10b4d5bf8284&rg=5-8388612&id=ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009&t0=15&fs=ad10d217-5092-4323-ba27-d24ca0e8a0f7&t1=15&ts=1749049456389
// SECOND GET
2025-06-04 16:04:18,359 [setup] DEBUG impl.LoggingAuditor
(LoggingAuditor.java:modifyHttpRequest(429)) - [15]
ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009 Executing op_open with
{action_http_get_request 'raw/2023/017/ohfh/OHFH017d.23_.gz' size=8388607,
mutating=false};
https://audit.example.org/hadoop/1/op_open/ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009/?op=op_open&p1=noaa-cors-pds&pr=ahmarsu&ps=6d6c1b1f-5677-4ed6-9706-10b4d5bf8284&rg=8388613-16777220&id=ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009&t0=15&fs=ad10d217-5092-4323-ba27-d24ca0e8a0f7&t1=15&ts=1749049456389
// THIRD GET
2025-06-04 16:04:18,361 [setup] DEBUG impl.LoggingAuditor
(LoggingAuditor.java:modifyHttpRequest(429)) - [15]
ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009 Executing op_open with
{action_http_get_request 'raw/2023/017/ohfh/OHFH017d.23_.gz' size=4733952,
mutating=false};
https://audit.example.org/hadoop/1/op_open/ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009/?op=op_open&p1=noaa-cors-pds&pr=ahmarsu&ps=6d6c1b1f-5677-4ed6-9706-10b4d5bf8284&rg=16777221-21511173&id=ad10d217-5092-4323-ba27-d24ca0e8a0f7-00000009&t0=15&fs=ad10d217-5092-4323-ba27-d24ca0e8a0f7&t1=15&ts=1749049456389
```
Pending release of new AAL version which attaches the execution attributes.
### How was this patch tested?
Testing in progress.
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]