generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.
Description
Describe the feature
Hi all!
We have a feature request on vector to allow setting the x-amzn-logs-format
HTTP header to json/emf
when publishing events to CloudWatch Logs via PutLogEvents
to send embedded metrics.
I found an example of doing it with the Java SDK:
PutLogEventsRequest putLogEventsRequest = PutLogEventsRequest.builder()
.overrideConfiguration(builder ->
// provide the log-format header of json/emf
builder.headers(Collections.singletonMap("x-amzn-logs-format", Collections.singletonList("json/emf"))))
.logEvents(Collections.singletonList(inputLogEvent))
.logGroupName(logGroupName)
.logStreamName(logStreamName)
.sequenceToken(sequenceToken)
.build();
But I don't see a similar sort of method for overriding request headers for the Rust SDK. Am I missing something? Or would this be a feature request?
Use Case
Overriding request headers on a per API call-basis.
Proposed Solution
Add a method to all fluent builders that allows overriding request configuration including headers.
Here is what the Java SDK seems to support overriding:
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
A note for the community
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment
hencrice
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.
Type
Projects
Status
Done