ウェブフックの recording_metadata の送信可否を設定できるようにする #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
変更履歴
exclude_webhook_recording_metadata
を追加し、report ファイルアップロード後のウェブフックにrecording_metadata
を含めるかどうか設定できるようにするfalse
でrecording_metadata
を送信するウェブフックに含めるtrue
を設定するとレポートファイルにrecording_metadata
またはmetadata
が含まれていてもウェブフックには含めないThis pull request introduces a new configuration option to control the inclusion of
recording_metadata
in webhook payloads after a report file upload. The key changes involve adding this configuration to relevant files and updating the logic to respect the new setting.Configuration Updates:
config.go
: AddedExcludeWebhookRecordingMetadata
to theConfig
struct to allow users to configure the exclusion ofrecording_metadata
in webhook payloads.config_example.ini
: Provided an example configuration entry forexclude_webhook_recording_metadata
to guide users on how to set this option.Logic Updates:
uploader.go
: Updated thehandleReport
function to check the newExcludeWebhookRecordingMetadata
setting and conditionally includerecording_metadata
in the webhook payload.Documentation:
CHANGES.md
: Documented the newexclude_webhook_recording_metadata
configuration option, explaining its default behavior and how to configure it.